diff options
| author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-06 19:16:59 +0000 |
|---|---|---|
| committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-06 19:16:59 +0000 |
| commit | 0dedabfaac4baaa09de374801c32ca402d4c1d69 (patch) | |
| tree | 18d4db7d94a72a005e9573b5fdcc75f34cd59b0f | |
| parent | e96c173eb60dc450a8df12a9a2da27d1e6bc7d3a (diff) | |
| download | ppe42-gcc-0dedabfaac4baaa09de374801c32ca402d4c1d69.tar.gz ppe42-gcc-0dedabfaac4baaa09de374801c32ca402d4c1d69.zip | |
* fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
if we are in GIMPLE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90187 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/fold-const.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00d25f18f9c..76bab59a888 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-06 Kazu Hirata <kazu@cs.umass.edu> + + * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR + if we are in GIMPLE. + 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com> PR rtl-optimization/17933 diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 01054d192bd..00840205979 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -1978,6 +1978,11 @@ fold_convert (tree type, tree arg) tree non_lvalue (tree x) { + /* While we are in GIMPLE, NON_LVALUE_EXPR doesn't mean anything to + us. */ + if (in_gimple_form) + return x; + /* We only need to wrap lvalue tree codes. */ switch (TREE_CODE (x)) { |

