------- Additional Comments From oakad at yahoo dot com  2005-06-27 13:43 
-------
I also have this bug with gcc-4.0.0 (powerpc-eabi on cygwin). It always happens 
when msdata flag is present (eabi or sysv - same result). It is caused by the 
attempt to initialize a global float/double variable with a constant, like this:
//----
float a;
void foo() { a=0; } - gcc crashes
//----
I worked round this problem for now with a code:
//----
float f_zero=0; //putting "const float" here will make gcc crash
float a;
void foo() { a=f_zero; }
//----

I consider this a severe bug. It does not depends on optimization level or on 
other options as far as I checked (only on msdata).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21571

Reply via email to