On Tue, May 16, 2006 at 12:49:13PM -0400, Andrew MacLeod wrote:
> 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

I have

[EMAIL PROTECTED] prev-gcc]$ readelf -s print-rtl.o| grep flag_dump_unnumbered
    24: 0000000000000000     4 OBJECT  GLOBAL DEFAULT    5 flag_dump_unnumbered
[EMAIL PROTECTED] prev-gcc]$ readelf -s options.o| grep flag_dump_unnumbered
   181: 0000000000000004     4 OBJECT  GLOBAL DEFAULT  COM flag_dump_unnumbered

Does this work on your platform?

[EMAIL PROTECTED] tmp]$ cat x.c
int x = 1;
[EMAIL PROTECTED] tmp]$ gcc -c x.c
[EMAIL PROTECTED] tmp]$ cat y.c
int x;
[EMAIL PROTECTED] tmp]$ gcc -c y.c
[EMAIL PROTECTED] tmp]$ ld -r x.o y.o
[EMAIL PROTECTED] tmp]$ ld -r y.o x.o


H.J.

Reply via email to