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] Fix tree-opt/22024, seg fault in tree-ssa-reassoc.c


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)



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