diff options
author | Jan Hubicka <jh@suse.cz> | 2004-01-14 23:54:50 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-01-14 22:54:50 +0000 |
commit | 95c755e90f94c5fbeed8cf58896d114989f9c771 (patch) | |
tree | 8b1b7c30c31af7eeaa57d8ea5898e75bae608347 /gcc/cgraph.c | |
parent | 092b50e2d7faa1cf0441da77a0d2d72a983276b1 (diff) | |
download | gcc-95c755e90f94c5fbeed8cf58896d114989f9c771.zip gcc-95c755e90f94c5fbeed8cf58896d114989f9c771.tar.gz gcc-95c755e90f94c5fbeed8cf58896d114989f9c771.tar.bz2 |
cgraph.c (create_edge): Use local.redefined_extern_inline.
* 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.
From-SVN: r75890
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 73a420e..ec3bcca 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 |