delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/30/17:09:40

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
From: swamp-dog AT ntlworld DOT com (Guy Harrison)
To: <cygwin AT cygwin DOT com>
Subject: Re: gcc -gcoff 2nd try
Date: Fri, 30 Aug 2002 21:08:04 GMT
Message-ID: <3d72d645.918355845@smtp.ntlworld.com>
References: <akilfm$jhn$1 AT main DOT gmane DOT org> <4 DOT 3 DOT 1 DOT 2 DOT 20020828102235 DOT 022a5c80 AT pop DOT rcn DOT com> <akinno$1l6$1 AT main DOT gmane DOT org> <ako6qp$mvn$1 AT main DOT gmane DOT org>
In-Reply-To: <ako6qp$mvn$1@main.gmane.org>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g7UL9dD05195

On Fri, 30 Aug 2002 09:36:01 -0700, "Hans Horn" <hannes AT 2horns DOT com>
wrote:

>Guy Harrison wrote :
>
>>> On Wed, 28 Aug 2002 07:47:42 -0700, "Hans Horn" <hannes AT 2horns DOT com>
>wrote:
>
>>>>...my gcc version is 2.95.3-5.
>
>>> Ditto. You may need to post tst.c - the symbol C_EFCN did not crop up in
>>> my trivial "hello world" test app (ie compiled ok).
>
>Guy, List,
>
>here's tst.c (several flavors of it, that is):
>
>// ************ version 1 ***********************
>// foreward decl of foo()
>// gcc -gcoff barfs with "C_EFCN symbol out of scope"
>void foo();
>int main(int argc, char **argv) {
>  foo(); // gcc -gcoff does not barf when this call is commented out
>  return 0;
>}
>void foo() {}
>
>// ************ version 2 ***********************
>// gcc -gcoff behaves
>void foo() {}
>int main(int argc, char **argv) {
>  foo();
>  return 0;
>}
>
>Note: there's no change in behaviour when I rename tst.c into tst.cpp!

Hmm, looks like you've found a (non-cygwin specific) bug...

http://groups.google.com/groups?q=C_EFCN&ie=ISO-8859-1&hl=en&btnG=Google+Search

...not that it'll help much. FWIW the same fault crops up with gcc303
(compiled by me) and also fwiw "[gcc | gcc303] -c -gcoff -S tst.c"
followed by a subsequent "as -o tst.o tst.s" emits the same error ("as
-Z" won't force it). Both compilers use the same assembler - GNU
assembler version 2.12.90 (i686-pc-cygwin) using BFD version 2.12.90
20020706.

You'll notice it seems to be related/triggered by the forward reference.
This appears to be the only immediate work-around.


-- 
swamp-dog AT ntlworld DOT com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019