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: Fix for regression in gcc.c-torture/execute/20011114-1.c


On Nov 30, 2001, Richard Henderson <rth@redhat.com> wrote:

> 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.

Does it fix c-torture/execute/930603-1.c too?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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