This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix tree-opt/22024, seg fault in tree-ssa-reassoc.c
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 12 Jun 2005 10:10:59 -0400
- Subject: Re: [PATCH] Fix tree-opt/22024, seg fault in tree-ssa-reassoc.c
- References: <dde0f621016598561df2264fc7566069@physics.uc.edu>
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)