This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23828] local calling convention not used when using -fwhole-program --combine
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2005 22:41:57 -0000
- Subject: [Bug middle-end/23828] local calling convention not used when using -fwhole-program --combine
- References: <20050912014301.23828.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at physics dot uc dot edu 2005-09-13 22:41 -------
Subject: Re: local calling convention not used when using -fwhole-program --combine
On Sep 13, 2005, at 6:36 PM, dann at godzilla dot ics dot uci dot edu
wrote:
>
> But the above just fixes the symptoms, it's probably not the correct
> way to test for a nested function.
DECL_NO_STATIC_CHAIN (decl) should be true for this function but
why is it not?
/* In a FUNCTION_DECL with a nonzero DECL_CONTEXT, indicates that a
static chain is not needed. */
#define DECL_NO_STATIC_CHAIN(NODE) \
(FUNCTION_DECL_CHECK (NODE)->function_decl.regdecl_flag)
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23828