Re: c++ compiler allocates uninitialized global variable in .data section

2001-11-20 Thread Warner Losh
In message <[EMAIL PROTECTED]> [EMAIL PROTECTED] writes: : I found that c++ compiler (4.4-RELEASE) allocates uninitialized global : variable in the data section instead of the bss section. Here is my : code sample (b.cpp): I think this is a minor bug. FreeBSD will move to 3.0 (or newer) for 5.0

c++ compiler allocates uninitialized global variable in .data section

2001-11-20 Thread freebsd
I found that c++ compiler (4.4-RELEASE) allocates uninitialized global variable in the data section instead of the bss section. Here is my code sample (b.cpp): char aa[1024*1024*10]; void f(void) { } after c++ -c b.cpp I get a nearly 10MB object file, whereas on linux (RedHat 7.2, gcc-2.96-98)