Thu Jan 14 22:38:41 1999 Jeffrey A Law (law@cygnus.com)
+ * pa.c (hppa_expand_epilogue): Save and restore the static chain
+ around the call to mcount.
+
* h8300.h (ASM_OUTPUT_LABELREF): Use asm_fprintf, not fprintf.
* stmt.c (expand_end_case): Use emit_cmp_and_jump_insns to avoid
hp_profile_label_rtx = gen_rtx_SYMBOL_REF (SImode, hp_profile_label_name);
if (current_function_returns_struct)
store_reg (STRUCT_VALUE_REGNUM, - 12 - offsetadj, basereg);
+ if (current_function_needs_context)
+ store_reg (STATIC_CHAIN_REGNUM, - 16 - offsetadj, basereg);
for (i = 26, arg_offset = -36 - offsetadj; i >= 23; i--, arg_offset -= 4)
if (regs_ever_live [i])
if (current_function_returns_struct)
load_reg (STRUCT_VALUE_REGNUM, -12 - offsetadj, basereg);
+ if (current_function_needs_context)
+ load_reg (STATIC_CHAIN_REGNUM, -16 - offsetadj, basereg);
}
/* Normal register save.