This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Strange behaviour of Cygwin's gcc
- From: fabrizio_ge-wolit at tiscali dot it
- To: gcc at gcc dot gnu dot org
- Date: Tue, 24 Dec 2002 00:27:02 +0100
- Subject: Strange behaviour of Cygwin's gcc
Can somebody explain why Cygwin version of gcc (version 3.2 20020927) does
this when native-compiling?
Type this simple C program
void func(void){
struct {unsigned char data[3985];}var;
}
and compile with
gcc -c filename.c
Then type
nm filename.o
The output is
00000000 b .bss
00000000 d .data
00000000 t .text
U __alloca
00000000 T _func
What on earth is the symbol __alloca doing there?
Just change the program to
void func(void){
struct {unsigned char data[3984];}var;
}
and compile it. This time, nm's output is
00000000 b .bss
00000000 d .data
00000000 t .text
00000000 T _func
as it should. Is there a reason why the symbol __alloca appears?
__________________________________________________________________
Tiscali ADSL. Scopri la fantastica promozione di Natale: tutto Gratis fino
al 9 gennaio!
Abbonati ora: prima ti abboni, pił risparmi!
http://point.tiscali.it/adsl/index.shtml