This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/21716] [3.4/4.0/4.1 Regression] ICE in reg-stack.c's swap_rtx_condition


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-05-23 16:39 -------
Here's a reduced testcase that might be appropriate for the testsuite:

======================================================================
/* PR target/21716 */
/* { dg-do compile } */
/* { dg-options "-march=i386 -m32 -O2 -ffast-math" { i?86-*-* } } */

double atan (double);

void foo()
{
   double x, y;

   do
     {
       goto L2;
     L1:
       if (x) goto L1;
     L2:
       x += atan (y);
       goto L1;
     }
   while (1);
}
======================================================================

For me the original testcase and the reduced one only crash with the
3.4 branch on a native i686-pc-linux-gnu box.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]