bug: gcc - use of register keyword and undefined reference to `LC0'

Shankar Unni shankar@cotagesoft.com
Tue Jun 24 20:26:00 GMT 2003


mark.a.robson@jpmorgan.com wrote:

> 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.
--
Shankar.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list