On Tue, 2006-05-16 at 11:50 -0400, Andrew MacLeod wrote:
> I *just* checked out mainline, and it is failing to build like so:
> 
> (x86 with checking enabled)
> 
> libbackend.a(print-rtl.o): In function `print_decl_name':
> /src/gcc/2006-05-16/gcc/gcc/print-rtl.c:73: multiple definition of 
> `flag_dump_unnumbered'
> libbackend.a(options.o):(.bss+0x1ac): first defined here
> libbackend.a(rtlanal.o): In function `rtx_unstable_p':
> /src/gcc/2006-05-16/gcc/gcc/rtlanal.c:94: multiple definition of 
> `target_flags'
> libbackend.a(options.o):(.bss+0x28): first defined here
> libbackend.a(toplev.o): In function `set_src_pwd':
> /src/gcc/2006-05-16/gcc/gcc/toplev.c:408: multiple definition of 
> `flag_pcc_struct_return'
> libbackend.a(options.o):(.bss+0x25c): first defined here
> libbackend.a(toplev.o): In function `set_src_pwd':
> /src/gcc/2006-05-16/gcc/gcc/toplev.c:411: multiple definition of 
> `flag_var_tracking'
> libbackend.a(options.o):(.bss+0x350): first defined here
> collect2: ld returned 1 exit status
> make[3]: *** [cc1-dummy] Error 1
> rm fsf-funding.pod gcov.pod gfdl.pod cpp.pod gpl.pod gcc.pod
> make[3]: Leaving directory `/build/gcc/2006-05-16/gcc'
> make[2]: *** [all-stage1-gcc] Error 2
> make[2]: Leaving directory `/build/gcc/2006-05-16'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/build/gcc/2006-05-16'
> make: *** [all] Error 2


Compilation appears to be find if I back out the latest change:
Andrew


2006-05-16  H.J. Lu  <[EMAIL PROTECTED]>

        PR driver/26885
        * Makefile.in (GCC_OBJS): New.
        (OBJS-common): Add opts-common.o.
        (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
        (cpp$(exeext)): Likewise.
        (gcc.o): Also depend on opts.h.
        (opts-common.o): New.

        * common.opt (gcoff): Add Negative(gdwarf-2).
        (gdwarf-2): Add Negative(gstabs).
        (gstabs): Add Negative(gstabs+).
        (gstabs+): Add Negative(gvms).
        (gvms): Add Negative(gxcoff).
        (gxcoff): Add Negative(gxcoff+).
        (gxcoff+): Add Negative(gcoff).
        * config/i386/i386.opt (m32): Add Negative(m64).
        (m64): Add Negative(m32).

        * doc/options.texi: Document the Negative option.

        * gcc.c: Include "opts.h".
        (main): Call prune_options after expandargv.

        * optc-gen.awk: Generate common declarations for all flag
        variables in options.c. Output the neg_index field.

        * opts.c (find_opt): Moved to ...
        * opts-common.c: Here. New file.

        * opts.h (cl_option): Add a neg_index field.
        (find_opt): New.
        (prune_options): Likewise.



Reply via email to