summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-03 09:00:53 +0000
committerienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-03 09:00:53 +0000
commite4436fffc7bb99ffa564b8b9f52ac3041b5b03ee (patch)
treea066ef19e36a03a0e5f9da01e441cc2a0c8a2386 /gcc/cgraphunit.c
parent307bb9d5a09e9c5f80df016d0733a037d492d028 (diff)
downloadgcc-e4436fffc7bb99ffa564b8b9f52ac3041b5b03ee.tar.gz
* cgraphunit.c (cgraph_node::expand_thunk): Don't expand
instrumentation thunks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221852 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 8ac92e1c0c8..77ef9edba4a 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1508,6 +1508,10 @@ cgraph_node::expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)
tree thunk_fndecl = decl;
tree a;
+ /* Instrumentation thunk is the same function with
+ a different signature. Never need to expand it. */
+ if (thunk.add_pointer_bounds_args)
+ return false;
if (!force_gimple_thunk && this_adjusting
&& targetm.asm_out.can_output_mi_thunk (thunk_fndecl, fixed_offset,