summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-01 03:04:15 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-01 03:04:15 +0000
commit4bd8d9a1a924797535d769011914e1aeb85cb6d7 (patch)
tree7d5e9acd966756e167738745c34ee1d17544888f /gcc/varasm.c
parent6fb8d5e4a1c1b8aa9515abcbdb7d778a0147f87e (diff)
downloadgcc-4bd8d9a1a924797535d769011914e1aeb85cb6d7.tar.gz
Fix IA-64 enable-checking glibc ICE.
* varasm.c (output_constant_pool_1): In LABEL_REF check, use tmp consistently. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133783 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index f4607b49eea..73110497c8b 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -3685,17 +3685,17 @@ output_constant_pool_1 (struct constant_descriptor_rtx *desc,
functioning even with INSN_DELETED_P and friends. */
tmp = x;
- switch (GET_CODE (x))
+ switch (GET_CODE (tmp))
{
case CONST:
- if (GET_CODE (XEXP (x, 0)) != PLUS
- || GET_CODE (XEXP (XEXP (x, 0), 0)) != LABEL_REF)
+ if (GET_CODE (XEXP (tmp, 0)) != PLUS
+ || GET_CODE (XEXP (XEXP (tmp, 0), 0)) != LABEL_REF)
break;
- tmp = XEXP (XEXP (x, 0), 0);
+ tmp = XEXP (XEXP (tmp, 0), 0);
/* FALLTHRU */
case LABEL_REF:
- tmp = XEXP (x, 0);
+ tmp = XEXP (tmp, 0);
gcc_assert (!INSN_DELETED_P (tmp));
gcc_assert (!NOTE_P (tmp)
|| NOTE_KIND (tmp) != NOTE_INSN_DELETED);