This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mainline Regression in gcc.target/i386/pr32268.c
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- Cc: ubizjak at gmail dot com, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 16 Feb 2008 19:30:49 +0100
- Subject: Re: Mainline Regression in gcc.target/i386/pr32268.c
- References: <Pine.GSO.4.58.0802161239220.9160@caipclassic.rutgers.edu>
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;
> }
>