This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/10979] [3.4 regression] g++ ICEs in subst_stack_regs_pat with -O -ffast-math and atan2
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2003 02:21:45 -0000
- Subject: [Bug target/10979] [3.4 regression] g++ ICEs in subst_stack_regs_pat with -O -ffast-math and atan2
- References: <20030526105943.10979.martin@mpa-garching.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10979
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|optimization |target
Last reconfirmed|2003-06-22 03:27:10 |2003-06-23 02:21:43
date| |
Summary|[3.4 regression] g++ ICEs on|[3.4 regression] g++ ICEs in
|legal code in |subst_stack_regs_pat with -O
|subst_stack_regs_pat() (reg-|-ffast-math and atan2
|stack.c), with -O -ffast- |
|math |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-23 02:21 -------
This looks like it is caused by Roger Sayle <roger@eyesopen.com>'s patches to make
atan2 a builtin and a pattern for i386, he fixed log but it looks like atan2 is not fixed.
Here is a smaller example (also a C example):
void t(double);
double atan2(double,double);
void temp(double *c)
{
double c2 = 8;
double s2 = 0;
*c = atan2(s2,c2);
t(1/s2);
}