This is the mail archive of the mailing list for the gas2 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bugs in gcc or binutils 2.7?

> The assembler has issued this warning for over a year, including the
> 2.6 release.  I recently (July 5) changed the warning into an error.
> Do you receive a warning when you use an earlier version of the
> binutils?

gas 2.5.2linux   no message
gas      warning
gas 2.7          error

BTW: The current gcc snapshot (ss-960707) produces the same asm-output as
gcc 2.7.2.

$ cat tt.c

#pragma weak foo


$ gcc  -S tt.c
$ cat tt.s
        .file   "tt.c"
        .version        "01.01"
        .align 16
.globl foo
        .type    foo,@function
        pushl %ebp
        movl %esp,%ebp
        movl %ebp,%esp
        popl %ebp
        .size    foo,.Lfe1-foo
        .weak   foo
        .ident  "GCC: (GNU) 2.7.2"

$ as -v tt.s
GNU assembler version cygnus/linux-2.5.2l.15 (i486-linux), using BFD version cygnus/linux-2.5.2l.11
$ as2 -v tt.s
GNU assembler version 2.6 (i586-unknown-linux), using BFD version
tt.s: Assembler messages:
tt.s:17: Warning: foo already declared as global
$ -v tt.s
GNU assembler version 2.7 (i486-unknown-linux), using BFD version 2.7
tt.s: Assembler messages:
tt.s:17: Error: foo already declared as global

Robert Wilhelm