This is the mail archive of the 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]

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

Using the -g flag to gcc, the following program compiles but fails to link.
The error message is

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

Contents of test.c is

int main(){
    return 0;
void test(double *b)
    register double a = 0.0;
    int k;
    for (k = 0; k < 1; k++) {
        *b = a;

Removing the 'register' keywork or switching off the debug option 'fixes'
the problem. This bug seems specific to cygwin. gcc 3.2 on [intel] linux
works ok.

Version information: gcc version 3.2 20020927 (prerelease)


This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.

Unsubscribe info:
Problem reports:

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