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]

Re: use of register keyword gives undefined reference to `LC0'


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


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