diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-09-20 11:16:12 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-09-20 05:16:12 -0600 |
commit | c479c2acdfe913a2130ee0a8d188448e6239e54a (patch) | |
tree | 2def3b798c7d6fd9140075fffd3787ee03ab34aa /gcc | |
parent | 6261669528dbbdcfa11dc079799e4990c6f8229e (diff) | |
download | gcc-c479c2acdfe913a2130ee0a8d188448e6239e54a.zip gcc-c479c2acdfe913a2130ee0a8d188448e6239e54a.tar.gz gcc-c479c2acdfe913a2130ee0a8d188448e6239e54a.tar.bz2 |
* fold-const.c (fold): Fix another type in COND_EXPR handling code.
From-SVN: r22499
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fold-const.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b9c59d..ffb1a6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 20 12:14:45 1998 Jeffrey A Law (law@cygnus.com) + + * fold-const.c (fold): Fix another type in COND_EXPR handling code. + 1998-09-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * configure.in: Add support for c4x targets. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 5eab656..b7037de 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -6014,7 +6014,8 @@ fold (expr) t = build (code, type, tem, TREE_OPERAND (t, 2), TREE_OPERAND (t, 1)); arg0 = tem; - arg1 = TREE_OPERAND (t, 2); + /* arg1 should be the first argument of the new T. */ + arg1 = TREE_OPERAND (t, 1); STRIP_NOPS (arg1); } } |