diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-14 22:54:50 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-14 22:54:50 +0000 |
commit | 69435b7ff5e5a474296bf13e72507f00d97a6eb9 (patch) | |
tree | 8b1b7c30c31af7eeaa57d8ea5898e75bae608347 /gcc/cgraph.c | |
parent | d69affc26ace1de66e37f03bc9d9afabc1bfd1a6 (diff) | |
download | gcc-69435b7ff5e5a474296bf13e72507f00d97a6eb9.tar.gz |
* cgraph.c (create_edge): Use local.redefined_extern_inline.
* cgraph.h (cgraph_local_info): Sort fields by size; add
redefined_extern_inline
(cgraph_global_info): Sort fields by size.
(cgraph_node): Likewise.
* cgraphunit.c (cgraph_finalize_function): Se
local.redefined_extern_inline on redefinition.
(cgraph_analyze_function): Use it; fix formating.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 73a420e6e7c..ec3bcca34e7 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -159,6 +159,9 @@ create_edge (struct cgraph_node *caller, struct cgraph_node *callee) if (!DECL_SAVED_TREE (callee->decl)) edge->inline_failed = N_("function body not available"); + else if (callee->local.redefined_extern_inline) + edge->inline_failed = N_("redefined extern inline functions are not " + "considered for inlining"); else if (callee->local.inlinable) edge->inline_failed = N_("function not considered for inlining"); else |