summaryrefslogtreecommitdiffstats
path: root/libdecnumber/decContext.c
diff options
context:
space:
mode:
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-13 16:54:28 +0000
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-13 16:54:28 +0000
commit8b3449d42cf07c92c29111fd43a7088a3bf5a9fd (patch)
tree8fe9638d21e7a9d77c2ce6ecfd31fd0503112473 /libdecnumber/decContext.c
parent323c8f71f916ec56e45ebc3aa62d4f76a4a18afc (diff)
downloadppe42-gcc-8b3449d42cf07c92c29111fd43a7088a3bf5a9fd.tar.gz
ppe42-gcc-8b3449d42cf07c92c29111fd43a7088a3bf5a9fd.zip
PR c/41046
* 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
Diffstat (limited to 'libdecnumber/decContext.c')
-rw-r--r--libdecnumber/decContext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdecnumber/decContext.c b/libdecnumber/decContext.c
index 28bbdbb4929..1756dcb2522 100644
--- a/libdecnumber/decContext.c
+++ b/libdecnumber/decContext.c
@@ -31,7 +31,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* ------------------------------------------------------------------ */
#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. */
@@ -395,8 +397,10 @@ Int decContextTestEndian(Flag quiet) {
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;
}
OpenPOWER on IntegriCloud