diff options
| author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-11 07:43:33 +0000 |
|---|---|---|
| committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-11 07:43:33 +0000 |
| commit | ea538e0692ec5ff2e6a1e983b72092eedfd3ad84 (patch) | |
| tree | f6f5dc84a45d9b06258f48a271e815daa13c0b41 /gcc | |
| parent | 646a1d63d9cd9a3827b40a0fad6959127def8c46 (diff) | |
| download | ppe42-gcc-ea538e0692ec5ff2e6a1e983b72092eedfd3ad84.tar.gz ppe42-gcc-ea538e0692ec5ff2e6a1e983b72092eedfd3ad84.zip | |
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@99566 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/fold-const.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f9e5d1498a2..1621f15b3e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 0f3c8dd29e7..dc8d417a0c9 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; |

