This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: testsuite fixes for loadpre5.c/loadpre8.c with -fpic/-fPIC
- From: "Daniel Berlin" <dberlin at dberlin dot org>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, janis187 at us dot ibm dot com
- Date: Fri, 11 Jan 2008 07:41:13 -0500
- Subject: Re: [PATCH]: testsuite fixes for loadpre5.c/loadpre8.c with -fpic/-fPIC
- References: <Pine.GSO.4.58.0801102354210.2662@caipclassic.rutgers.edu>
On Jan 10, 2008 11:57 PM, Kaveh R. GHAZI <ghazi@caip.rutgers.edu> wrote:
> Hi Dan,
>
> It looks like you wrote these two testcases. They fail with -fpic/-fPIC.
On which platform?
At least on mine (i686-darwin), they work fine with -fPIC/-fpic.
> The patch below fixes them, but I wanted to double check whether adding
> "static" changes the nature of the testcase or not. If you have another
> approach, please let me know.
For loadpre5.c:
If adding static is causing it to inline the calls to a, then it would
change the nature of the testcase.
If it is not eliminating the calls to a, then i have no problem with it.
Similarly for loadpre8.c