]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/41046 (decNumber leaves printf call in libgcc)
authorJanis Johnson <janis187@us.ibm.com>
Thu, 13 Aug 2009 17:00:49 +0000 (17:00 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Thu, 13 Aug 2009 17:00:49 +0000 (17:00 +0000)
PR c/41046
* decCommon.c ( decFloatShow): Define function only for DECCHECK
or DECTRACE.

From-SVN: r150722

libdecnumber/ChangeLog
libdecnumber/decCommon.c

index 67b54ddb9d6003ae3ff9979436c786bbfadcd1d9..ad827c856d9e2568322d7a23f9fb32208564bed3 100644 (file)
@@ -1,3 +1,9 @@
+2009-08-13  Janis Johnson  <janis187@us.ibm.com>
+
+       PR c/41046
+       * decCommon.c ( decFloatShow): Define function only for DECCHECK
+       or DECTRACE.
+
 2009-08-04  Release Manager
 
        * GCC 4.3.4 released.
index fa16e792e668058f37129685c06f72502f3426af..41327c7623feb65add3cd1d2a603ad6425c2a349 100644 (file)
@@ -1094,6 +1094,7 @@ uInt decFloatRadix(const decFloat *df) {
   return 10;
   } /* decFloatRadix */
 
+#if (DECCHECK || DECTRACE)
 /* ------------------------------------------------------------------ */
 /* decFloatShow -- printf a decFloat in hexadecimal and decimal              */
 /*   df         is the decFloat to show                                      */
@@ -1120,6 +1121,7 @@ void decFloatShow(const decFloat *df, const char *tag) {
   printf(">%s> %s [big-endian] %s\n", tag, hexbuf, buff);
   return;
   } /* decFloatShow */
+#endif
 
 /* ------------------------------------------------------------------ */
 /* decFloatToBCD -- get sign, exponent, and BCD8 from a decFloat      */