optimization/4490

Reichelt reichelt@igpm.rwth-aachen.de
Mon Oct 8 06:30:00 GMT 2001


Hi,

the problem can be reduced to the following testcase:

void f()
{
  unsigned long long ull;
  double d=ull;
}

I get a seg-fault when I try to compile this with
  "gcc -m128bit-long-double -c <filename>"
using gcc 3.0 on an i686-pc-linux-gnu.
The problem seems to be the cast from "unsigned long long"
to "double" with "-m128bit-long-double" enabled
(so it's probably not an optimization issue).

In the original testcase this leads into trouble with the last
"printf" statement in the function "compress".

Greetings,
Volker Reichelt

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4490&database=gcc




More information about the Gcc-bugs mailing list