[Bug c/19031] [4.0 Regression] #pragma weak handling changes in 4.0.0
aj at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 17 10:30:00 GMT 2004
------- Additional Comments From aj at gcc dot gnu dot org 2004-12-17 10:30 -------
Further testing showed that this is a fallout from unit-at-a-time:
aj@reger:~/tmp> /opt/gcc/4.0-devel/bin/gcc -c test.c
aj@reger:~/tmp> nm test.o
0000000000000000 r bar
0000000000000000 V foo
aj@reger:~/tmp> /opt/gcc/4.0-devel/bin/gcc -c test.c -O2
aj@reger:~/tmp> nm test.o
U bar
aj@reger:~/tmp> /opt/gcc/4.0-devel/bin/gcc -c test.c -O2 -fno-unit-at-a-time
aj@reger:~/tmp> nm test.o
0000000000000000 r bar
0000000000000000 V foo
The question still remains, what are the symantics? Do we have to declare
the variable as extern or not?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jh at suse dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19031
More information about the Gcc-bugs
mailing list