This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, TESTSUITE]: Fix extra testsuite failures with -fpic/-fPIC.
- From: Richard Henderson <rth at redhat dot com>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- Cc: janis187 at us dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Aug 2009 11:59:27 -0700
- Subject: Re: [PATCH, TESTSUITE]: Fix extra testsuite failures with -fpic/-fPIC.
- References: <Pine.GSO.4.58.0908211250190.2362@caipclassic.rutgers.edu>
On 08/21/2009 09:52 AM, Kaveh R. GHAZI wrote:
I get several extra "failures" when running the testsuite with
-fpic/-fPIC. They're all fixed by adding -fpie so that functions bind
locally and/or the necessarily optimizations can occur.
...
* gcc.dg/tree-ssa/inline-3.c: Add -fpie when pic.
* gcc.dg/tree-ssa/local-pure-const.c: Likewise.
* gfortran.dg/whole_file_5.f90: Likewise.
For the C test cases, at least, why not fix this instead
by making the functions static? If the tests really rely
on local binding, that is...
r~