Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: From: mark DOT a DOT robson AT jpmorgan DOT com Date: Tue, 24 Jun 2003 10:47:04 +0100 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii 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/