www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Subject: | bug: gcc - use of register keyword and undefined reference to `LC0' |
To: | cygwin AT cygwin DOT com |
Message-ID: | <OFC242EAD1.FAE60F04-ON80256D4F.0034CCBD@ny.jpmorgan.com> |
From: | mark DOT a DOT robson AT jpmorgan DOT com |
Date: | Tue, 24 Jun 2003 10:47:04 +0100 |
MIME-Version: | 1.0 |
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) Mark. 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: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |