]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
revert: fold-const.c (fold_indirect_ref_1): Avoid removing NOP_EXPRs with type qualif...
authorRichard Guenther <rguenth@gcc.gnu.org>
Sat, 14 May 2005 15:42:01 +0000 (15:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 14 May 2005 15:42:01 +0000 (15:42 +0000)
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.

From-SVN: r99699

gcc/ChangeLog
gcc/fold-const.c

index 42b8984b1c8a79c599010c1666fc064ec3c61537..e9273956ae4a6b6443f0cd120a24170ee098c7f4 100644 (file)
@@ -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:
index b19dd85ed66c8429e761b2702d01c3c1a64bd2cc..deb8780b8d5641b94a86d04220101aca12192af5 100644 (file)
@@ -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;