aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2001-01-15 12:03:36 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2001-01-15 12:03:36 +0000
commit998a298e1e8829e25fc97c9dc6563a6bb592ef0e (patch)
tree5c5ddc34f4a9a817ca7fd59691cb2417b8a4e8df /gcc
parentdb3f4e4eff2e986f8bac9c9fdfe5d8cb21f4b0e5 (diff)
downloadgcc-998a298e1e8829e25fc97c9dc6563a6bb592ef0e.zip
gcc-998a298e1e8829e25fc97c9dc6563a6bb592ef0e.tar.gz
gcc-998a298e1e8829e25fc97c9dc6563a6bb592ef0e.tar.bz2
* expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
From-SVN: r39035
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/expr.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a13862f..18db676 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-14 Geoffrey Keating <geoffk@redhat.com>
+
+ * expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
+
2001-01-14 Ralf Baechle <ralf@gnu.org>
* config/mips/linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change
diff --git a/gcc/expr.c b/gcc/expr.c
index 49b1c3e7..a4637ab 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -9771,7 +9771,9 @@ do_jump (exp, if_false_label, if_true_label)
/* Do any postincrements in the expression that was tested. */
emit_queue ();
- if (GET_CODE (temp) == CONST_INT || GET_CODE (temp) == LABEL_REF)
+ if (GET_CODE (temp) == CONST_INT
+ || (GET_CODE (temp) == CONST_DOUBLE && GET_MODE (temp) == VOIDmode)
+ || GET_CODE (temp) == LABEL_REF)
{
rtx target = temp == const0_rtx ? if_false_label : if_true_label;
if (target)