------- 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: 
 
[EMAIL PROTECTED]:~/tmp> /opt/gcc/4.0-devel/bin/gcc -c test.c 
[EMAIL PROTECTED]:~/tmp> nm test.o 
0000000000000000 r bar 
0000000000000000 V foo 
[EMAIL PROTECTED]:~/tmp> /opt/gcc/4.0-devel/bin/gcc -c test.c -O2 
[EMAIL PROTECTED]:~/tmp> nm test.o 
                 U bar 
[EMAIL PROTECTED]:~/tmp> /opt/gcc/4.0-devel/bin/gcc -c test.c -O2 
-fno-unit-at-a-time 
[EMAIL PROTECTED]:~/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

Reply via email to