Commit 47220f03 by Seongbae Park Committed by Seongbae Park

re PR rtl-optimization/32475 (function with asm() does not setup stack frame)

2007-07-05  Seongbae Park  <seongbae.park@gmail.com>

	PR rtl-optimization/32475
	* df-scan.c (df_def_record_1): Add a use of the stack pointer
	for every definition of the stack pointer.

From-SVN: r126391
parent 8e39e9af
2007-07-05 Seongbae Park <seongbae.park@gmail.com>
PR rtl-optimization/32475
* df-scan.c (df_def_record_1): Add a use of the stack pointer
for every definition of the stack pointer.
2007-07-05 Richard Earnshaw <rearnsha@arm.com>
* arm.c (vfp3_const_double_index): Copy signed results of
......
......@@ -2763,6 +2763,12 @@ df_def_record_1 (struct df_collection_rec *collection_rec,
|| (GET_CODE (dst) == SUBREG && REG_P (SUBREG_REG (dst))))
df_ref_record (collection_rec,
dst, loc, bb, insn, DF_REF_REG_DEF, flags);
/* We want to keep sp alive everywhere - by making all
writes to sp also use of sp. */
if (REG_P (dst) && REGNO (dst) == STACK_POINTER_REGNUM)
df_ref_record (collection_rec,
dst, NULL, bb, insn, DF_REF_REG_USE, flags);
}
......
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