This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: bug: gcc - use of register keyword and undefined reference to`LC0'


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/


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