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 fixes for loadpre5.c/loadpre8.c with -fpic/-fPIC


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


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