aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2015-04-03 09:00:53 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2015-04-03 09:00:53 +0000
commita115251c2b89d7effa0f61bc8fd5d8225f0af913 (patch)
treea066ef19e36a03a0e5f9da01e441cc2a0c8a2386
parentfad71ff5e7497d9b94fcab47e15856114421f7ec (diff)
downloadgcc-a115251c2b89d7effa0f61bc8fd5d8225f0af913.zip
gcc-a115251c2b89d7effa0f61bc8fd5d8225f0af913.tar.gz
gcc-a115251c2b89d7effa0f61bc8fd5d8225f0af913.tar.bz2
cgraphunit.c (cgraph_node::expand_thunk): Don't expand instrumentation thunks.
* cgraphunit.c (cgraph_node::expand_thunk): Don't expand instrumentation thunks. From-SVN: r221852
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraphunit.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b37e15d..fee8cb5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
+ * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
+ instrumentation thunks.
+
+2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
+
* config/i386/i386.c (ix86_expand_call): Avoid nested
PARALLEL in returned call value.
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 8ac92e1..77ef9ed 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,