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]

[trunk][patch] Avoid sharing DECL_ARGUMENTS


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  <espindola@google.com>

        * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
        share the argument list.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047


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