diff options
author | Seongbae Park <seongbae.park@gmail.com> | 2007-07-05 23:44:44 +0000 |
---|---|---|
committer | Seongbae Park <spark@gcc.gnu.org> | 2007-07-05 23:44:44 +0000 |
commit | 47220f037b15e41c272d9ddf92443ddb84c94d41 (patch) | |
tree | 28228c38feeee42fd8a1f3ffb190fb8e777dcee4 | |
parent | 8e39e9afe08cb675620db0024d5eae9dc9aba777 (diff) | |
download | gcc-47220f037b15e41c272d9ddf92443ddb84c94d41.zip gcc-47220f037b15e41c272d9ddf92443ddb84c94d41.tar.gz gcc-47220f037b15e41c272d9ddf92443ddb84c94d41.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/df-scan.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eca91d6..b610717 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/gcc/df-scan.c b/gcc/df-scan.c index 61147be..4a8a1be 100644 --- a/gcc/df-scan.c +++ b/gcc/df-scan.c @@ -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); } |