[PATCH TESTSUITE]: Fix gcc.dg/inline-33.c when using -fpic/-fPIC
Janis Johnson
janis187@us.ibm.com
Mon Mar 30 17:43:00 GMT 2009
On Mon, 2009-03-23 at 19:21 -0400, Kaveh R. GHAZI wrote:
> This relatively new testcase fails when adding -fpic or -fPIC to the
> testsuite pass. I believe it needs functions to bind locally for the
> optimization it checks for to occur.
> E.g.: http://gcc.gnu.org/ml/gcc-testresults/2009-03/msg02354.html
>
> Fixed by ading -fpie when pic. Patch tested via c-only "make check" with
> -fpic/-fPIC extra passes in RUNTESTFLAGS. The testcase now gets PASS in
> all situations.
>
> Okay for 4.4 mainline?
OK. (Sorry for the delay, I was on vacation.)
Janis
> 2009-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * gcc.dg/inline-33.c: Fix when pic.
>
> diff -rup orig/egcc-SVN20090323/gcc/testsuite/gcc.dg/inline-33.c egcc-SVN20090323/gcc/testsuite/gcc.dg/inline-33.c
> --- orig/egcc-SVN20090323/gcc/testsuite/gcc.dg/inline-33.c 2009-03-12 02:02:46.000000000 +0100
> +++ egcc-SVN20090323/gcc/testsuite/gcc.dg/inline-33.c 2009-03-23 23:48:29.000000000 +0100
> @@ -1,5 +1,6 @@
> /* { dg-do compile } */
> /* { dg-options "-O3 -fdump-tree-optimized" } */
> +/* { dg-options "-O3 -fdump-tree-optimized -fpie" { target { ! nonpic } } } */
>
> int i;
>
More information about the Gcc-patches
mailing list