Bugs in gcc or binutils 2.7?
Robert.Wilhelm@Physik.TU-Muenchen.DE
Robert.Wilhelm@Physik.TU-Muenchen.DE
Thu Jul 18 10:42:00 GMT 1996
> 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 2.6.0.2 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
foo()
{}
$ gcc -S tt.c
$ cat tt.s
.file "tt.c"
.version "01.01"
gcc2_compiled.:
.text
.align 16
.globl foo
.type foo,@function
foo:
pushl %ebp
movl %esp,%ebp
.L1:
movl %ebp,%esp
popl %ebp
ret
.Lfe1:
.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 2.6.0.2
tt.s: Assembler messages:
tt.s:17: Warning: foo already declared as global
$ as.new -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 rwilhelm@physik.tu-muenchen.de robert@gaston.camelot.de
More information about the Gas2
mailing list