------- Comment #12 from steven at gcc dot gnu dot org  2006-02-27 22:36 -------
With "GNU C version 4.1.0 20060222 (prerelease) (powerpc-unknown-linux-gnuspe)"
I get a different ICE:

$ ./cc1 -O2 -fno-inline t.c
 foo
t.c: In function 'foo':
t.c:9: warning: incompatible implicit declaration of built-in function 'ldexp'

Analyzing compilation unitPerforming intraprocedural optimizations
Assembling functions:
 foo
t.c: In function 'foo':
t.c:12: error: unrecognizable insn:
(insn 77 60 32 2 (set (subreg:DF (reg:DI 3 3 [128]) 0)
        (mem/u/c/i:DF (reg/f:SI 9 9 [126]) [3 S8 A64])) -1 (nil)
    (expr_list:REG_DEAD (reg/f:SI 9 9 [126])
        (nil)))
t.c:12: internal compiler error: in extract_insn, at recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.


$ cat t.c
void
foo (long exponent, double *to)
{
  double dto;

  dto = 0.0;

  if (!exponent)
    dto = ldexp (1.0, exponent);

  *to = dto;
}


-- 


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

Reply via email to