[PATCH,testsuite] fix gcc.dg/tree-ssa/wholeprogram-1.c for -fPIC

Kaveh R. GHAZI ghazi@caip.rutgers.edu
Thu Jul 26 21:13:00 GMT 2007


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.



More information about the Gcc-patches mailing list