This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/21571] ICE in rs6000.c with -msdata=default.


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]