use of register keyword gives undefined reference to `LC0'
Jim Wilson
wilson@tuliptree.org
Wed Jun 25 21:40:00 GMT 2003
mark.a.robson@jpmorgan.com wrote:
> [This was originally posted on the cygwin mailing list - I was asked to
> post it to gcc-bugs]
Actually, you were pointed at documentation that recommended submitting
the bug into bugzilla. Mail to gcc-bugs is likely to be lost, ignored,
or misplaced.
> gcc -g test.c
> /cygdrive/c/TEMP/ccJVVXiI.o(.stab+0x1c4): In function `test':
> /support/crbrb.c:11: undefined reference to `LC0'
> collect2: ld returned 1 exit status
This is fixed in gcc-3.3.
> Removing the 'register' keywork or switching off the debug option 'fixes'
> the problem. This bug seems platform specific eg gcc 3.2 on [intel] linux
> works ok.
It depends on the debug info. linux is using dwarf, cygwin is using
stabs. You can reproduce it with the linux compiler by using -gstabs
instead of -g.
Jim
More information about the Gcc-bugs
mailing list