projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00c5c72
)
(default_conversion): Don't replace iterator with its initial value.
author
Richard Stallman
<rms@gnu.org>
Fri, 14 May 1993 17:14:17 +0000
(17:14 +0000)
committer
Richard Stallman
<rms@gnu.org>
Fri, 14 May 1993 17:14:17 +0000
(17:14 +0000)
From-SVN: r4452
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 2e3b0185553609077f82e318b9e27164e6f9a0ba..0989b6906016b0957126a62a76e64131163d23d2 100644
(file)
--- 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);