delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/14/14:41:30

Message-ID: <B0000030103@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: Michel JULIER <julier AT GES DOT univ-montp2 DOT fr>
Date: Thu, 14 May 1998 21:40:39 +0300
MIME-Version: 1.0
Subject: Re: BUG in gcc ?
CC: djgpp AT delorie DOT com
In-reply-to: <1.5.4.16.19980514164848.2e2ff3da@um2gess0>

Date sent:      	Thu, 14 May 1998 16:48:25 GMT
To:             	djgpp AT delorie DOT com
Subject:        	BUG in gcc ?

> Thanks to Hans-Bernhard Broeker for helping me resolve my problem
> (about which I wrote a few hours ago). Here's my problem:
> 
> When I compile this very simple "program":
> 
>         void a(void){
>           void b(void){}
>         }
>         int b;
> 
> with  gcc -g program.c
> I get the following message:
>   d:/djgpp/tmp/RH1aaaaa/ccbag1ji: Assembler messages:
>   d:/djgpp/tmp/RH1aaaaa/ccbag1ji:33: Fatal error: C_EFCN symbol out of scope
> 
> I get that with gcc2.7.2.1 or gcc2.8.1, with as2.7.2.1 or as2.8.1, for
> DJGPP with MS-DOS 6.20 + Win3.11.
> 
> I believe that nested functions are allowed, and shouldn't conflict with
> variables that are outside the main function. And  gcc -Wall  doesn't
> make any warning.
> 
> Anyway, you don't get this message:
>   -if you don't use the "-g" flag (and then, the program runs perfectly).
>   -if you use gcc2.7.2 for sparc-sun-solaris2.5 or
>               gcc2.7.2 for sparc-sun-sunos4.1.3
>   -if you use (gcc-2.7.2,binutils-2.6.0.14) for Linux (according to HB Broeker)
> 
> So, I believe that this is a real bug. Am I the only one to see it?

I'm getting it when I'm trying to compile with gcc-2.8.1 (DJGPP v2.8.1)
with option '-g'. With '-gstabs' error message does not appear.
Under Linux when I built gcc-2.8.1 ./configure set option to use always
stabs debugging, so I cannot check more now, I didn't get error there. 
I also have newer binutils in Linux (2.9.1.0.4).

 Andris


- Raw text -


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