This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21571] ICE in rs6000.c with -msdata=default.
- From: "oakad at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2005 13:43:34 -0000
- Subject: [Bug target/21571] ICE in rs6000.c with -msdata=default.
- References: <20050514170038.21571.osv@javad.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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