On Thu, Nov 3, 2011 at 3:22 PM, Richard Guenther <[email protected]> wrote: > On Thu, Nov 3, 2011 at 3:20 PM, Dominique Dhumieres <[email protected]> > wrote: >> Revision 180821 breaks bootstrap on x86_64-apple-darwin10: >> >> ../../work/gcc/collect2.c: In function 'int main(int, char**)': >> ../../work/gcc/collect2.c:1094:7: error: unused variable 'object_nbr' >> [-Werror=unused-variable] >> cc1plus: all warnings being treated as errors >> >> Note that I did not find any entry for this revision in >> [email protected]. > > I suppuse on all non-AIX platforms even ...
Fixed as follows, committed as obvious. Richard. 2011-11-03 Richard Guenther <[email protected]> * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION. Index: gcc/collect2.c =================================================================== --- gcc/collect2.c (revision 180821) +++ gcc/collect2.c (working copy) @@ -1091,7 +1091,9 @@ main (int argc, char **argv) const char **ld2; char **object_lst; const char **object; +#ifdef TARGET_AIX_VERSION int object_nbr = argc; +#endif int first_file; int num_c_args; char **old_argv; >> TIA >> >> Dominique >> >> >
