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]
Other format: [Raw text]

[Bug c/19031] [4.0 Regression] #pragma weak handling changes in 4.0.0


------- 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


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