OSDN Git Service

PR bootstrap/40430
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jun 2009 17:45:57 +0000 (17:45 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jun 2009 17:45:57 +0000 (17:45 +0000)
* collect2.c (main): Use CONST_CAST2 in code inside #if
LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148434 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/collect2.c

index de0d2ce..93a0e89 100644 (file)
@@ -1,3 +1,9 @@
+2009-06-12  Ian Lance Taylor  <iant@google.com>
+
+       PR bootstrap/40430
+       * collect2.c (main): Use CONST_CAST2 in code inside #if
+       LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
+
 2009-06-12  Joey Ye  <joey.ye@intel.com>
 
        PR middle-end/39146
index 9848b90..efb0087 100644 (file)
@@ -1167,7 +1167,9 @@ main (int argc, char **argv)
 #else
 #if LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
            case 'L':
-             if (is_in_args (arg, (const char **) ld1_argv, ld1-1))
+             if (is_in_args (arg,
+                             CONST_CAST2 (const char **, char **, ld1_argv),
+                             ld1 - 1))
                --ld1;
              break;
 #endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */