Mail Archives: djgpp/1998/05/14/14:41:30
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 -