Commit 0b73ca18 by Richard Kenner

(profile_function): Save the static chain register around the call to

the profiler function.

From-SVN: r13865
parent 9886e013
...@@ -1058,7 +1058,6 @@ profile_function (file) ...@@ -1058,7 +1058,6 @@ profile_function (file)
#endif #endif
#endif #endif
#if 0
#ifdef STATIC_CHAIN_INCOMING_REGNUM #ifdef STATIC_CHAIN_INCOMING_REGNUM
if (cxt) if (cxt)
ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_INCOMING_REGNUM); ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_INCOMING_REGNUM);
...@@ -1068,11 +1067,9 @@ profile_function (file) ...@@ -1068,11 +1067,9 @@ profile_function (file)
ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_REGNUM); ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_REGNUM);
#endif #endif
#endif #endif
#endif /* 0 */
FUNCTION_PROFILER (file, profile_label_no); FUNCTION_PROFILER (file, profile_label_no);
#if 0
#ifdef STATIC_CHAIN_INCOMING_REGNUM #ifdef STATIC_CHAIN_INCOMING_REGNUM
if (cxt) if (cxt)
ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_INCOMING_REGNUM); ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_INCOMING_REGNUM);
...@@ -1082,7 +1079,6 @@ profile_function (file) ...@@ -1082,7 +1079,6 @@ profile_function (file)
ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_REGNUM); ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_REGNUM);
#endif #endif
#endif #endif
#endif /* 0 */
#ifdef STRUCT_VALUE_INCOMING_REGNUM #ifdef STRUCT_VALUE_INCOMING_REGNUM
if (sval) if (sval)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment