Command line:
gcc -Os -ffast-math testcase.c
or
gcc -Os -fno-math-errno -funsafe-math-optimizations testcase.c
crashes with -m32 as well

-------- testcase.c --------
extern int ilogbl(long double);
int foo(long double x)
{
  return ilogbl(x);
}
----------------------------
(reduced from testsuite/gcc.dg/builtins-38.c)

Tested revisions:
trunk r157161 - crash
trunk r153685 - crash
4.4 r157120 - crash (checking)
4.4 r155365 - crash (release checking)

Output:
$ /mnt/svn/gcc-trunk/binary-157161/bin/gcc -Os -ffast-math testcase.c
testcase.c: In function 'foo':
testcase.c:4:3: internal compiler error: in emit_unop_insn, at optabs.c:3838


-- 
           Summary: ICE: in emit_unop_insn, at optabs.c:3838 with -Os -
                    ffast-math and ilogbl()
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86(_64)-pc-linux-gnu


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

Reply via email to