[PATCH] Fix tree-opt/22024, seg fault in tree-ssa-reassoc.c

Daniel Berlin dberlin@dberlin.org
Sun Jun 12 14:11:00 GMT 2005


On Sun, 2005-06-12 at 10:04 -0400, Andrew Pinski wrote:
> The problem here is that we don't give the chain decl a rank.  Since 
> this decl
> is PARM decl, we crash as we assume that all PARM decls have a rank for 
> the
> decl's default definition.  This patch fixes by giving the chain decl a 
> distinct
> rank, just like we do for all other arguments.
> 
> OK? Bootstrapped and tested on powerpc-darwin with no regressions.
> 
> Thanks,
> Andrew Pinski
> 
> ChangeLog:
> 	* tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
> 	rank.
> 
> 

Don't forget to put the PR number in the chnagelog :)

(I can't approve this patch, but it looks like the right fix)




More information about the Gcc-patches mailing list