This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,testsuite] fix gcc.dg/tree-ssa/wholeprogram-1.c for -fPIC
On Wed, 25 Jul 2007, Nathan Froyd wrote:
> On Wed, Jul 25, 2007 at 02:09:13PM -0400, Kaveh R. GHAZI wrote:
> > > The attached patch resolves a problem with
> > > gcc.dg/tree-ssa/wholeprogram-1.c and testing with -fPIC.
> >
> > This is PR25445. Can you address Andrew's comment in the PR? He seem to
> > say that this is a compiler bug, not a testsuite bug.
>
> Ah, so it is. This patch seems like it fixes the problem.
>
> Bootstrapped and lightly tested (tree-ssa.exp=wholeprogram-1.c) on
> powerpc-wrs-vxworks. Does this look sound? If so, I will bootstrap and
> ensure no regressions on a more conventional platform.
> -Nathan
Thanks for addressing this. Looks sound to me but that's not my area, and
I don't have approval rights.
--Kaveh
>
> gcc/
> 2007-07-25 Nathan Froyd <froydnj@codesourcery.com>
>
> PR/25445
> * varasm.c (default_binds_local_p_1): Consult flag_whole_program
> if we are compiling with -fPIC.