diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-14 17:14:17 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-14 17:14:17 +0000 |
commit | ec193993f9d1ac17f5489056059c37a7cfb2788e (patch) | |
tree | 26c3e7255f6a8b5f5feef04241109198e34f158a /gcc | |
parent | 00c5c72e465d92e69f2fd99ba3eda58ac3dc9715 (diff) | |
download | gcc-ec193993f9d1ac17f5489056059c37a7cfb2788e.zip gcc-ec193993f9d1ac17f5489056059c37a7cfb2788e.tar.gz gcc-ec193993f9d1ac17f5489056059c37a7cfb2788e.tar.bz2 |
(default_conversion): Don't replace iterator with its initial value.
From-SVN: r4452
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-typeck.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 2e3b018..0989b69 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -920,6 +920,8 @@ default_conversion (exp) else if (optimize && TREE_CODE (exp) == VAR_DECL && TREE_READONLY (exp) + /* But not for iterators! */ + && !ITERATOR_P (exp) && DECL_MODE (exp) != BLKmode) { exp = decl_constant_value (exp); |