* config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>
Fri, 11 Feb 2000 04:59:58 +0000 (04:59 +0000)
committerMichael Hayes <m.hayes@gcc.gnu.org>
Fri, 11 Feb 2000 04:59:58 +0000 (04:59 +0000)
From-SVN: r31910

gcc/ChangeLog
gcc/config/c4x/c4x.c

index cfbed1d5c2b4c8032ba6e26d2464707a37a81c39..8ef3ce207054a07fd0dbc8a9792862e7de5b3f73 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
+       
+       * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
+
 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
@@ -6,9 +10,9 @@
        (ASM_FILE_END): Use c4x_file_end.
        * config/c4x/c4x.c (c4x_global_label): New function.
        (c4x_external_ref, c4x_file_end): Likewise.
+
        * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
        (c4x_external_ref, c4x_end_file): Likewise.
-       
 
 2000-02-10  Zack Weinberg  <zack@wolery.cumb.org>
 
index 07b8b51b45f64816231c0894f69b07d285a958a8..e5189c995c40c2c4dbb16f8bc38c60ec66a4be2e 100644 (file)
@@ -2779,6 +2779,8 @@ fp_zero_operand (op, mode)
 {
   REAL_VALUE_TYPE r;
 
+  if (GET_CODE (op) != CONST_DOUBLE)
+    return 0;
   REAL_VALUE_FROM_CONST_DOUBLE (r, op);
   return REAL_VALUES_EQUAL (r, dconst0);
 }