http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47193

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-22 
15:54:35 UTC ---
Seems to work for me now.  Probably fixed with other aliasing changes.

jh@gcc10:~/trunk/build/gcc$ cat >weak2.c
typedef int vtype;
static vtype Wv10a __attribute__((weakref ("Wv10b")));
static vtype Wv10b __attribute__((weakref ("Wv10c")));
static vtype Wv10c __attribute__((weakref ("Wv10d")));
static vtype Wv10d __attribute__((weakref ("wv10")));
extern vtype wv10;
jh@gcc10:~/trunk/build/gcc$ ./xgcc -B ./  weak2.c
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
jh@gcc10:~/trunk/build/gcc$ cat >weak3.c
static int i __attribute__ ((weakref ("j")));
static int j __attribute__ ((weakref ("k")));
jh@gcc10:~/trunk/build/gcc$ ./xgcc -B ./  weak3.c
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

Reply via email to