Mail Archives: djgpp/1998/05/14/10:54:22
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?
----------
Michel JULIER, CNRS-Université Montpellier II, Montpellier, France
- Raw text -