Commit a944a4eb by Jim Wilson Committed by Jim Wilson

Fix O32 -p bug reported by Ralf Baechle.

	* mips/mips.c (compute_frame_size): Not a leaf function if
	profile_flag set.

From-SVN: r16110
parent f0a9fa6c
Mon Oct 20 14:15:02 1997 Jim Wilson <wilson@cygnus.com>
* mips/mips.c (compute_frame_size): Not a leaf function if
profile_flag set.
Mon Oct 20 14:16:38 1997 Geoffrey KEATING <geoffk@ozemail.com.au> Mon Oct 20 14:16:38 1997 Geoffrey KEATING <geoffk@ozemail.com.au>
* rs6000/t-ppccomm: Use -msdata=none for crtstuff. * rs6000/t-ppccomm: Use -msdata=none for crtstuff.
......
...@@ -4855,8 +4855,10 @@ compute_frame_size (size) ...@@ -4855,8 +4855,10 @@ compute_frame_size (size)
/* The gp reg is caller saved in the 32 bit ABI, so there is no need /* The gp reg is caller saved in the 32 bit ABI, so there is no need
for leaf routines (total_size == extra_size) to save the gp reg. for leaf routines (total_size == extra_size) to save the gp reg.
The gp reg is callee saved in the 64 bit ABI, so all routines must The gp reg is callee saved in the 64 bit ABI, so all routines must
save the gp reg. */ save the gp reg. This is not a leaf routine if -p, because of the
if (total_size == extra_size && (mips_abi == ABI_32 || mips_abi == ABI_EABI)) call to mcount. */
if (total_size == extra_size && (mips_abi == ABI_32 || mips_abi == ABI_EABI)
&& ! profile_flag)
total_size = extra_size = 0; total_size = extra_size = 0;
else if (TARGET_ABICALLS) else if (TARGET_ABICALLS)
{ {
......
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