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]

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


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.


Attachment: t.diff.txt
Description: Text document


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