diff options
| author | Janis Johnson <janis187@us.ibm.com> | 2009-08-13 16:54:28 +0000 |
|---|---|---|
| committer | Janis Johnson <janis@gcc.gnu.org> | 2009-08-13 16:54:28 +0000 |
| commit | 0ca73d34ae37bdf76a6111bba28b83973d32dc87 (patch) | |
| tree | 8fe9638d21e7a9d77c2ce6ecfd31fd0503112473 /libdecnumber/decCommon.c | |
| parent | 241547bbe5135b37a8b99bcb806000280b63970b (diff) | |
re PR c/41046 (decNumber leaves printf call in libgcc)
PR c/41046
* decContext.c (decContextTestEndian): Call printf only if DECCHECK.
* decCommon.c ( decFloatShow): Define function only for DECCHECK
or DECTRACE.
From-SVN: r150720
Diffstat (limited to 'libdecnumber/decCommon.c')
| -rw-r--r-- | libdecnumber/decCommon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdecnumber/decCommon.c b/libdecnumber/decCommon.c index 192b5cf02f9..add1f2ed716 100644 --- a/libdecnumber/decCommon.c +++ b/libdecnumber/decCommon.c @@ -1157,6 +1157,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 */ @@ -1183,6 +1184,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 */ |
