public inbox for
help / color / mirror / Atom feed
Subject: optimization/10764: ICE when using log(), -fast-math and optimization
Date: Tue, 13 May 2003 03:56:00 -0000	[thread overview]
Message-ID: <> (raw)

>Number:         10764
>Category:       optimization
>Synopsis:       ICE when using log(), -fast-math and optimization
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue May 13 03:56:00 UTC 2003
>Release:        gcc version 3.4 20030513 (experimental)
GNU/linux x86
double log(double);

double ndtri(double y0)
  double x;

  x = log(y0);
  x = log(x);

  return x;

$ gcc -O1 -ffast-math gcc-3.4-error.c
gcc-3.4-error.c: In function `ndtri':
gcc-3.4-error.c:11: internal compiler error: in subst_stack_regs_pat, at reg-stack.c:1764

  regno = get_hard_regnum (&temp_stack, *src2);
  if (regno < 0)
    abort ();


replace prototype
double log(double);
#include <math.h>
or remove -O1 or remove --fast-math

             reply	other threads:[~2003-05-13  3:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-13  3:56 phil_e [this message]
2003-05-13  5:26 Dara Hazeghi
2003-05-14  6:26 Dara Hazeghi
2003-05-14  8:12 toon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).