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: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2005 22:57:15 -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 dann at godzilla dot ics dot uci dot edu 2005-09-13 22:57 -------
(In reply to comment #6)
> Maybe a better check would be check in the decl's function struct's
> field
> static_chain_decl is set.
I am not sure I understand what you mean here...
Maybe adding a test like this
TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL)
should work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23828