This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch committed: Fix PR bootstrap/40430
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Jun 2009 10:46:03 -0700
- Subject: Patch committed: Fix PR bootstrap/40430
I committed this patch to fix PR bootstrap/40430. This adds a
CONST_CAST2 requird by the new -Wc++-compat warnings in code which is
only used on mips-sgi-irix[56]*. Tested by building collect2.c.
Committed.
Ian
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.
Index: collect2.c
===================================================================
--- collect2.c (revision 148433)
+++ collect2.c (working copy)
@@ -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 */