Mainline Regression in gcc.target/i386/pr32268.c

Richard Guenther richard.guenther@gmail.com
Sat Feb 16 18:39:00 GMT 2008


On Feb 16, 2008 6:50 PM, Kaveh R. GHAZI <ghazi@caip.rutgers.edu> wrote:
> Hi Uros,
>
> This broke on x86_64 in the last day or so, I thought maybe you might know
> what happened.  (You touched config/i386 FP stuff recently.)  I'm seeing a
> regression in gcc.target/i386/pr32268.c as seen here:
> http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg01108.html
>
> Right now the execute failures only appear with -fpic/-fPIC, however I
> believe this is because inlining is masking the problem and allowing
> things to get folded.  With -fpic/-fPIC the inlining is disabled and the
> abort occurs.
>
> You can trigger the bug in a regular pass by applying the following
> noinline patch to the testcase.  Thoughts?

How does it break?  It works for me with noinline and with -fPIC.

Richard.

>                 Thanks,
>                 --Kaveh
>
>
> diff -rup orig/egcc-SVN20080216/gcc/testsuite/gcc.target/i386/pr32268.c egcc-SVN20080216/gcc/testsuite/gcc.target/i386/pr32268.c
> --- orig/egcc-SVN20080216/gcc/testsuite/gcc.target/i386/pr32268.c       2007-12-31 19:11:58.000000000 +0100
> +++ egcc-SVN20080216/gcc/testsuite/gcc.target/i386/pr32268.c    2008-02-16 18:34:04.000000000 +0100
> @@ -4,12 +4,14 @@
>
>  extern void abort(void);
>
> -int test_lt(__float128 x, __float128 y)
> +int __attribute__ ((__noinline__))
> +test_lt(__float128 x, __float128 y)
>  {
>    return x < y;
>  }
>
> -int test_gt (__float128 x, __float128 y)
> +int __attribute__ ((__noinline__))
> +test_gt (__float128 x, __float128 y)
>  {
>    return x > y;
>  }
>



More information about the Gcc-patches mailing list