projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7566949
)
fold-const.c (fold): Do not return early when optimizing COMPONENT_REF and constant.
author
Jan Hubicka
<hubicka@gcc.gnu.org>
Mon, 24 Nov 2003 00:50:31 +0000
(
00:50
+0000)
committer
Jan Hubicka
<hubicka@gcc.gnu.org>
Mon, 24 Nov 2003 00:50:31 +0000
(
00:50
+0000)
* fold-const.c (fold): Do not return early when optimizing COMPONENT_REF
and constant.
From-SVN: r73870
gcc/fold-const.c
patch
|
blob
|
history
diff --git
a/gcc/fold-const.c
b/gcc/fold-const.c
index 3787915021e3c99b25c73fcdc347b1695175060f..aea2e080183819e000b353cacbddd5f9c9b0a15b 100644
(file)
--- a/
gcc/fold-const.c
+++ b/
gcc/fold-const.c
@@
-7718,7
+7718,8
@@
fold (tree expr)
&& (optimize || TREE_CODE (arg1) == INTEGER_CST))
{
t1 = optimize_bit_field_compare (code, type, arg0, arg1);
- return t1 ? t1 : t;
+ if (t1)
+ return t1;
}
/* If this is a comparison of complex values and either or both sides