aboutsummaryrefslogtreecommitdiff
path: root/gcc/dse.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-04-20 14:19:51 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2012-04-20 14:19:51 +0200
commit757e8ba242c179e76379c617a417283a2e1f40f4 (patch)
tree3f6e41a7f11c3a0430801cc7cdfcbf3fcd38d567 /gcc/dse.c
parentfaaf273bb0591fe719fcdd18b6c0941f98aa342b (diff)
downloadgcc-757e8ba242c179e76379c617a417283a2e1f40f4.zip
gcc-757e8ba242c179e76379c617a417283a2e1f40f4.tar.gz
gcc-757e8ba242c179e76379c617a417283a2e1f40f4.tar.bz2
re PR bootstrap/53021 (bootstrap failure on Linux/ia32)
PR bootstrap/53021 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP, UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define. * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_* macros instead of constants. * dse.c (record_store): Check for SP ADDRESS by comparing XWINT to UNIQUE_BASE_VALUE_SP instead of expecting XEXP to be stack_pointer_rtx. From-SVN: r186623
Diffstat (limited to 'gcc/dse.c')
-rw-r--r--gcc/dse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/dse.c b/gcc/dse.c
index d6c8de7..9f57613 100644
--- a/gcc/dse.c
+++ b/gcc/dse.c
@@ -1,5 +1,5 @@
/* RTL dead store elimination.
- Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
Contributed by Richard Sandiford <rsandifor@codesourcery.com>
@@ -1503,7 +1503,7 @@ record_store (rtx body, bb_info_t bb_info)
if (!base_term
|| (GET_CODE (base_term) == ADDRESS
&& GET_MODE (base_term) == Pmode
- && XEXP (base_term, 0) == stack_pointer_rtx))
+ && XWINT (base_term, 0) == UNIQUE_BASE_VALUE_SP))
insn_info->stack_pointer_based = true;
insn_info->contains_cselib_groups = true;