From 0b058ffdda76a57956b520b72d80c5f6f99fff5c Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 6 Mar 2005 14:18:08 +0000 Subject: [PATCH] * fold-const.c (fold_binary): Use code instead of t. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95970 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 2 ++ gcc/fold-const.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c26c00824d14..4e8e1e8233a6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -4,6 +4,8 @@ (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle SUBREG and MEM, respectively. + * fold-const.c (fold_binary): Use code instead of t. + 2005-03-06 Kazu Hirata * fold-const.c (fold_binary): Avoid directly using the original diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 2577da2690e0..c6105dc8fa25 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -8727,7 +8727,7 @@ fold_binary (tree expr) /* If this is a comparison of two exprs that look like an ARRAY_REF of the same object, then we can fold this to a comparison of the two offsets. */ - if (COMPARISON_CLASS_P (t)) + if (TREE_CODE_CLASS (code) == tcc_comparison) { tree base0, offset0, base1, offset1; -- 2.47.3