summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-14 15:42:01 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-14 15:42:01 +0000
commite7b5ce74c8a9f593e1069634fc1547eed026b277 (patch)
tree565649879711e8a371c813e2dece3712a0e05880 /gcc
parent131837390c3bbae506b01dc0eeffc4d54cd7fe14 (diff)
downloadppe42-gcc-e7b5ce74c8a9f593e1069634fc1547eed026b277.tar.gz
ppe42-gcc-e7b5ce74c8a9f593e1069634fc1547eed026b277.zip
2005-05-14 Richard Guenther <rguenth@gcc.gnu.org>
Revert 2005-05-11 Richard Guenther <rguenth@gcc.gnu.org> * fold-const.c (fold_indirect_ref_1): Avoid removing NOP_EXPRs with type qualifiers like const. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99699 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/fold-const.c2
2 files changed, 8 insertions, 1 deletions
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 <rguenth@gcc.gnu.org>
+
+ Revert
+ 2005-05-11 Richard Guenther <rguenth@gcc.gnu.org>
+ * fold-const.c (fold_indirect_ref_1): Avoid removing
+ NOP_EXPRs with type qualifiers like const.
+
2005-05-14 Jan Hubicka <jh@suse.cz>
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;
OpenPOWER on IntegriCloud