diff options
author | Richard Guenther <rguenth@gcc.gnu.org> | 2005-05-11 07:43:33 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2005-05-11 07:43:33 +0000 |
commit | 8a29ce604bdb9588fa66aaabe27c92bf955cab3d (patch) | |
tree | f6f5dc84a45d9b06258f48a271e815daa13c0b41 /gcc/fold-const.c | |
parent | 317a9ac39e4be89ef37112202c1bc2a55280299d (diff) | |
download | gcc-8a29ce604bdb9588fa66aaabe27c92bf955cab3d.zip gcc-8a29ce604bdb9588fa66aaabe27c92bf955cab3d.tar.gz gcc-8a29ce604bdb9588fa66aaabe27c92bf955cab3d.tar.bz2 |
fold-const.c (fold_indirect_ref_1): Avoid removing NOP_EXPRs with type qualifiers like const.
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: r99566
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 0f3c8dd..dc8d417 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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; |