]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2007 08:45:29 +0000 (08:45 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2007 08:45:29 +0000 (08:45 +0000)
* genemit.c (main): Print include statement for dfp.h.
* dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
is not available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123054 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dfp.h
gcc/genemit.c

index 42982894d1bba7f12f8282141551f0261b819d8b..93c6d7ef4b10cc8af37b9664be675f6436b9bc6e 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
+
+       * genemit.c (main): Print include statement for dfp.h.
+       * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
+       is not available.
+
 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
 
        * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
index fd28d40816d932fc8e0be78af9a486b1098e9102..81b4cb6eb8b6b4bdbcaaaa8150d7766f37cc7efe 100644 (file)
--- a/gcc/dfp.h
+++ b/gcc/dfp.h
@@ -38,10 +38,13 @@ void decimal_round_for_format (const struct real_format *, REAL_VALUE_TYPE *);
 void decimal_real_convert (REAL_VALUE_TYPE *, enum machine_mode, const REAL_VALUE_TYPE *);
 void decimal_real_to_decimal (char *, const REAL_VALUE_TYPE *, size_t, size_t, int);
 void decimal_do_fix_trunc (REAL_VALUE_TYPE *, const REAL_VALUE_TYPE *);
-bool decimal_real_arithmetic (REAL_VALUE_TYPE *, enum tree_code, const REAL_VALUE_TYPE *,
-                             const REAL_VALUE_TYPE *);
 void decimal_real_maxval (REAL_VALUE_TYPE *, int, enum machine_mode);
 void decimal_real_to_integer2 (HOST_WIDE_INT *, HOST_WIDE_INT *, const REAL_VALUE_TYPE *);
 HOST_WIDE_INT decimal_real_to_integer (const REAL_VALUE_TYPE *);
 
+#ifdef TREE_CODE
+bool decimal_real_arithmetic (REAL_VALUE_TYPE *, enum tree_code, const REAL_VALUE_TYPE *,
+                             const REAL_VALUE_TYPE *);
+#endif
+
 #endif /* GCC_DFP_H */
index b0dd23498ba65c0f9ba3cfd074abdeebcdcffb73..a367f46a8ccbf0029f97cdee6de243e8e92a944d 100644 (file)
@@ -845,6 +845,7 @@ from the machine description file `md'.  */\n\n");
   printf ("#include \"expr.h\"\n");
   printf ("#include \"optabs.h\"\n");
   printf ("#include \"real.h\"\n");
+  printf ("#include \"dfp.h\"\n");
   printf ("#include \"flags.h\"\n");
   printf ("#include \"output.h\"\n");
   printf ("#include \"insn-config.h\"\n");