diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/expr.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 098f7f2..a7ef69c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-31 Igor Shevlyakov <igor@microunity.com> + + * expr.c (compare_from_rtx): Generate comparison between op0 and op1 + rather than cc0 and 0 in a case when HAVE_cc0 is not defined. + 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk> * gcc.c (cpp_unique_options): Remove "-d" options. @@ -10091,7 +10091,11 @@ compare_from_rtx (op0, op1, code, unsignedp, mode, size) emit_cmp_insn (op0, op1, code, size, mode, unsignedp); +#if HAVE_cc0 return gen_rtx_fmt_ee (code, VOIDmode, cc0_rtx, const0_rtx); +#else + return gen_rtx_fmt_ee (code, VOIDmode, op0, op1); +#endif } /* Like do_compare_and_jump but expects the values to compare as two rtx's. |