diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/genattrtab.c | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b22693a..cebde31 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-26 Kaz Kojima <kkojima@gcc.gnu.org> + + * genattrtab.c (write_test_expr): Put a unsigned cast before + the first operand for GEU, GTU, LEU and LTU. + 2004-06-26 Kazu Hirata <kazu@cs.umass.edu> * c-typeck.c, cfgexpand.c, ddg.c, ddg.h, df.c, fold-const.c, diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 245c655..d894253 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -4571,9 +4571,14 @@ write_test_expr (rtx exp, int flags) switch (code) { /* Binary operators. */ + case GEU: case GTU: + case LEU: case LTU: + printf ("(unsigned) "); + /* Fall through. */ + case EQ: case NE: - case GE: case GT: case GEU: case GTU: - case LE: case LT: case LEU: case LTU: + case GE: case GT: + case LE: case LT: comparison_operator = 1; case PLUS: case MINUS: case MULT: case DIV: case MOD: |