2005-05-11 Richard Guenther <rguenth@gcc.gnu.org>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 May 2005 07:43:33 +0000 (07:43 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 May 2005 07:43:33 +0000 (07:43 +0000)
* 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@99566 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fold-const.c

index f9e5d14..1621f15 100644 (file)
@@ -1,3 +1,8 @@
+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-11  Richard Henderson  <rth@redhat.com>
 
        PR c/21502
index 0f3c8dd..dc8d417 100644 (file)
@@ -11356,7 +11356,7 @@ fold_indirect_ref_1 (tree t)
   tree sub = t;
   tree subtype;
 
-  STRIP_NOPS (sub);
+  STRIP_TYPE_NOPS (sub);
   subtype = TREE_TYPE (sub);
   if (!POINTER_TYPE_P (subtype))
     return NULL_TREE;