revert: fold-const.c (fold_indirect_ref_1): Avoid removing NOP_EXPRs with type qualifiers like const.

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
This commit is contained in:
Richard Guenther 2005-05-14 15:42:01 +00:00 committed by Richard Biener
parent a8b3ba8b05
commit 6033ae2aeb
2 changed files with 8 additions and 1 deletions

View 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:

View 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;