[Bug target/10979] [3.4 regression] g++ ICEs in subst_stack_regs_pat with -O -ffast-math and atan2

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Mon Jun 23 02:22:00 GMT 2003


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);
}



More information about the Gcc-bugs mailing list