This is the mail archive of the gcc-patches@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]

Re: [PATCH, TESTSUITE]: Fix extra testsuite failures with -fpic/-fPIC.


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~



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