This is the mail archive of the
mailing list for the Cygwin project.
Re: bug: gcc - use of register keyword and undefined reference to`LC0'
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
Please report this via http://www.gnu.org/software/gcc/bugs.html. Your
bug report is short and precise, and will be appreciated.
Just FYI, this seems to be a problem with the .stabs entry for the
register variable "a".
> gcc 3.2 on [intel] linux works ok.
That's because the bug is (likely) related to generating COFF stabs
(Linux uses the ELF file format, and the DWARF debugging information
format, which may explain why it's not affected). Chances are any other
platform with the same combo of object file and debug formats will show
the same bug, though it's not a slam dunk.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html