This is the mail archive of the
mailing list for the GCC project.
Re: [trunk][patch] Avoid sharing DECL_ARGUMENTS
On Thu, Apr 2, 2009 at 11:19, Rafael Espindola <firstname.lastname@example.org> wrote:
> Now with the patch
> 2009/4/2 Rafael Espindola <email@example.com>:
>> Normally a function argument points back to the function DECL via
>> DECL_CONTEXT. If two FUNCTION_DECLs share DECL_ARGUMENTS, the
>> DECL_CONTEXT of the arguments must be incorrect for at least one of
>> the functions.
>> This patch fixes one case where this was happening.
>> 2009-04-02 ÂRafael Avila de Espindola Â<firstname.lastname@example.org>
>> Â Â Â Â* c-decl.c (merge_decls): Make sure newdecl and olddecl don't
>> Â Â Â Âshare the argument list.
Remember if there was a new test in the testsuite for this? (that
didn't use lto, of course).