This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

[Fwd: g77 (egcs-1.1.2): warning: multiple common of ...]


Harald,

Given the last sentence of your mail, I assume you'd rather have it sent
to the list, which I hereby do ...

[ No, I have no idea how to switch of -warn-common, unfortunately ]

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://gcc.gnu.org/onlinedocs/g77_news.html


On Mon, 18 Oct 1999, Toon Moene wrote:

> Harald Harders wrote:
> 
> $ g77 -v -Wl,-warn-common 1.o 2.o
> g77 version 2.95.2 19990906 (prerelease) (from FSF-g77 version 0.5.25
> 19990906 (prerelease))
> Driving: g77 -v -Wl,-warn-common 1.o 2.o -lg2c -lm
> Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
> gcc version 2.95.2 19990906 (prerelease)
>  /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/collect2 -m elf_i386
> -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/crtbegin.o
> -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2
> -L/usr/local/i686-pc-linux-gnu/lib -L/usr/local/lib -warn-common 1.o 2.o
> -lg2c -lm -lgcc -lc -lgcc
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/crtend.o /usr/lib/crtn.o
> 2.o: warning: multiple common of `abc_'
> 1.o: warning: previous common is here
> 
> So apparently SuSE thought it a bright idea to make -warn-common a
> default option when linking.  Perhaps it's good for something, but not
> for the unwary Fortran programmer.
> 
> Several SuSE engineers are on this list - what's the reason for
> including -warn-common in the default option list for collect2 ?

Thank you for the quick answere. But how can I switch off -warn-common?
The idea to use -no-warn-common did not help:

$ g77 -v -Wl,-no-warn-common two_files.o sub.o
g77 version egcs-2.91.66 19990314 (egcs-1.1.2 release) (from FSF-g77
version 0.5.24-19981002)
Driving: g77 -v -Wl,-no-warn-common two_files.o sub.o -lg2c -lm
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/collect2 -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/crtbegin.o
-L/usr/lib/gcc-lib/i486-linux/egcs-2.91.66 -L/usr/i486-linux/lib
-no-warn-common two_files.o sub.o -lg2c -lm -lgcc -warn-common -lc -lgcc
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/crtend.o /usr/lib/crtn.o
sub.o: warning: multiple common of `asdf_'
two_files.o: warning: previous common is here

The option -warn-common is still in the list after -no-warn-common. 
So can anybody tell me how I can switch of -warn-common?

Thanks
Harald

-- 
 __/|__  Harald Harders              Mail: harald.harders@dlr.de
/_/_/_/  DLR                         Tel.: (05 31) 2 95 - 26 78
  |/     Institut fuer Flugmechanik  Fax.: (05 31) 2 95 - 26 47
    DLR  Lilienthalplatz 7         http://www.fm.bs.dlr.de/flugmechanik/
         D-38108 Braunschweig      http://mbpc06.mb.ing.tu-bs.de/~harders/




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