aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-10-24 08:41:16 +0200
committerMartin Liska <mliska@suse.cz>2020-10-24 08:42:33 +0200
commita29ff9c53a77b6e208350d8c6db0f3e988f61d1f (patch)
tree78f21910dde4ee008a78cf947b1c2d1c897a8516
parentd0e2ffcca0ef6d526de8d221ba41567526b4cb40 (diff)
downloadgcc-a29ff9c53a77b6e208350d8c6db0f3e988f61d1f.zip
gcc-a29ff9c53a77b6e208350d8c6db0f3e988f61d1f.tar.gz
gcc-a29ff9c53a77b6e208350d8c6db0f3e988f61d1f.tar.bz2
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.
-rw-r--r--gcc/cgraph.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 9f31773..d1a773d 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"