From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert.Wilhelm@Physik.TU-Muenchen.DE To: ian@cygnus.com (Ian Lance Taylor) Cc: hjl@innovix.com, gcc2@cygnus.com, raeburn@cygnus.com, gas2@cygnus.com, rwilhelm@Physik.TU-Muenchen.DE (Robert Wilhelm) Subject: Re: Bugs in gcc or binutils 2.7? Date: Thu, 18 Jul 1996 10:42:00 -0000 Message-id: <9607181742.AA01549@nugget.cip.physik.tu-muenchen.de> References: <199607181553.LAA25878@sanguine.cygnus.com> X-SW-Source: 1996/msg00066.html > 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