diff options
author | Martin Liska <mliska@suse.cz> | 2020-10-24 08:41:16 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-10-24 08:42:33 +0200 |
commit | a29ff9c53a77b6e208350d8c6db0f3e988f61d1f (patch) | |
tree | 78f21910dde4ee008a78cf947b1c2d1c897a8516 /gcc/cgraph.c | |
parent | d0e2ffcca0ef6d526de8d221ba41567526b4cb40 (diff) | |
download | gcc-a29ff9c53a77b6e208350d8c6db0f3e988f61d1f.tar.gz |
cgraph: move former_thunk_p out of CHECKING_P macro.
This fixes the following failure:
ld: cgraph.o: in function `cgraph_edge::verify_corresponds_to_fndecl(tree_node*)':
gcc/cgraph.c:3067: undefined reference to `cgraph_node::former_thunk_p()'
ld: cgraph.o: in function `clone_of_p':
gcc/ChangeLog:
* cgraph.c (cgraph_node::former_thunk_p): Move out of CHECKING_P
macro.
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 9f317733c91..d1a773d386f 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -4098,6 +4098,21 @@ cgraph_node::check_calls_comdat_local_p () return false; } +/* Return true if this node represents a former, i.e. an expanded, thunk. */ + +bool +cgraph_node::former_thunk_p (void) +{ + if (thunk) + return false; + thunk_info *i = thunk_info::get (this); + if (!i) + return false; + gcc_checking_assert (i->fixed_offset || i->virtual_offset_p + || i->indirect_offset); + return true; +} + /* A stashed copy of "symtab" for use by selftest::symbol_table_test. This needs to be a global so that it can be a GC root, and thus prevent the stashed copy from being garbage-collected if the GC runs @@ -4162,21 +4177,6 @@ cgraph_c_tests () } // namespace selftest -/* Return true if this node represents a former, i.e. an expanded, thunk. */ - -bool -cgraph_node::former_thunk_p (void) -{ - if (thunk) - return false; - thunk_info *i = thunk_info::get (this); - if (!i) - return false; - gcc_checking_assert (i->fixed_offset || i->virtual_offset_p - || i->indirect_offset); - return true; -} - #endif /* CHECKING_P */ #include "gt-cgraph.h" |