From 6033ae2aeb16147a9eae7d7fdb81af73984e28ed Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Sat, 14 May 2005 15:42:01 +0000 Subject: [PATCH] revert: fold-const.c (fold_indirect_ref_1): Avoid removing NOP_EXPRs with type qualifiers like const. 2005-05-14 Richard Guenther Revert 2005-05-11 Richard Guenther * fold-const.c (fold_indirect_ref_1): Avoid removing NOP_EXPRs with type qualifiers like const. From-SVN: r99699 --- gcc/ChangeLog | 7 +++++++ gcc/fold-const.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 42b8984b1c8..e9273956ae4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-05-14 Richard Guenther + + Revert + 2005-05-11 Richard Guenther + * fold-const.c (fold_indirect_ref_1): Avoid removing + NOP_EXPRs with type qualifiers like const. + 2005-05-14 Jan Hubicka Patch by Richard Henderson: diff --git a/gcc/fold-const.c b/gcc/fold-const.c index b19dd85ed66..deb8780b8d5 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -11406,7 +11406,7 @@ fold_indirect_ref_1 (tree t) tree sub = t; tree subtype; - STRIP_TYPE_NOPS (sub); + STRIP_NOPS (sub); subtype = TREE_TYPE (sub); if (!POINTER_TYPE_P (subtype)) return NULL_TREE; -- 2.30.2