This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for regression in gcc.c-torture/execute/20011114-1.c
- From: Richard Henderson <rth at redhat dot com>
- To: Corey Minyard <minyard at acm dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Nov 2001 13:53:56 -0800
- Subject: Re: Fix for regression in gcc.c-torture/execute/20011114-1.c
- References: <3C07DCE0.3070709@acm.org>
On Fri, Nov 30, 2001 at 01:24:16PM -0600, Corey Minyard wrote:
> This regression as been annoying me, so I fixed it.
Heh. I worked on that one last night as well, but hadn't
gotten back to look at the overnight test results until now.
> if (! different_binding_level)
> - DECL_INITIAL (newdecl) = DECL_INITIAL (olddecl);
> + {
> + DECL_INITIAL (newdecl) = DECL_INITIAL (olddecl);
> + DECL_SAVED_TREE (newdecl) = DECL_SAVED_TREE (olddecl);
> + }
> DECL_SAVED_INSNS (newdecl) = DECL_SAVED_INSNS (olddecl);
I think it's more correct to copy DECL_SAVED_TREE along with
DECL_SAVED_INSNS, which is not conditionalized. Which is
exactly the patch that I have.
r~