aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-04-13 08:44:41 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-04-13 08:44:41 -0400
commit0b73ca18adc074b43cea72e7922cbcc3114bd50b (patch)
treea55a4ac4dfc51ef07018f5c72936226268f658b3
parent9886e013fda2899c1d80a23c87050b70dfd0c46d (diff)
downloadgcc-0b73ca18adc074b43cea72e7922cbcc3114bd50b.zip
gcc-0b73ca18adc074b43cea72e7922cbcc3114bd50b.tar.gz
gcc-0b73ca18adc074b43cea72e7922cbcc3114bd50b.tar.bz2
(profile_function): Save the static chain register around the call to
the profiler function. From-SVN: r13865
-rw-r--r--gcc/final.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 47cc2cc..162dec3 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1058,7 +1058,6 @@ profile_function (file)
#endif
#endif
-#if 0
#ifdef STATIC_CHAIN_INCOMING_REGNUM
if (cxt)
ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_INCOMING_REGNUM);
@@ -1068,11 +1067,9 @@ profile_function (file)
ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_REGNUM);
#endif
#endif
-#endif /* 0 */
FUNCTION_PROFILER (file, profile_label_no);
-#if 0
#ifdef STATIC_CHAIN_INCOMING_REGNUM
if (cxt)
ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_INCOMING_REGNUM);
@@ -1082,7 +1079,6 @@ profile_function (file)
ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_REGNUM);
#endif
#endif
-#endif /* 0 */
#ifdef STRUCT_VALUE_INCOMING_REGNUM
if (sval)