* decContext.c (decContextTestEndian): Call printf only if DECCHECK.
* decCommon.c ( decFloatShow): Define function only for DECCHECK
or DECTRACE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150720
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-08-13 Janis Johnson <janis187@us.ibm.com>
+
+ PR c/41046
+ * decContext.c (decContextTestEndian): Call printf only if DECCHECK.
+ * decCommon.c ( decFloatShow): Define function only for DECCHECK
+ or DECTRACE.
+
2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in (aclocal_deps): New variable.
return 10;
} /* decFloatRadix */
+#if (DECCHECK || DECTRACE)
/* ------------------------------------------------------------------ */
/* decFloatShow -- printf a decFloat in hexadecimal and decimal */
/* df is the decFloat to show */
printf(">%s> %s [big-endian] %s\n", tag, hexbuf, buff);
return;
} /* decFloatShow */
+#endif
/* ------------------------------------------------------------------ */
/* decFloatToBCD -- get sign, exponent, and BCD8 from a decFloat */
/* ------------------------------------------------------------------ */
#include <string.h> /* for strcmp */
+#ifdef DECCHECK
#include <stdio.h> /* for printf if DECCHECK */
+#endif
#include "dconfig.h" /* for GCC definitions */
#include "decContext.h" /* context and base types */
#include "decNumberLocal.h" /* decNumber local types, etc. */
if (!quiet) {
if (LITEND) adj="little";
else adj="big";
+#if DECCHECK
printf("Warning: DECLITEND is set to %d, but this computer appears to be %s-endian\n",
DECLITEND, adj);
+#endif
}
res=(Int)LITEND-dle;
}