aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2009-11-30 21:50:19 +0000
committerDJ Delorie <dj@redhat.com>2009-11-30 21:50:19 +0000
commitbc7c46946a39109bab837271ee45e33e60bce404 (patch)
treed79dae75d6a9f0c59a4bc38673bd37de9a87ccab
parent3388710e183210d7e86b0fb8d0688c0808df7bde (diff)
downloadgdb-bc7c46946a39109bab837271ee45e33e60bce404.zip
gdb-bc7c46946a39109bab837271ee45e33e60bce404.tar.gz
gdb-bc7c46946a39109bab837271ee45e33e60bce404.tar.bz2
merge from gcc
-rw-r--r--libdecnumber/ChangeLog5
-rw-r--r--libdecnumber/decContext.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog
index b64e561..88df3a4 100644
--- a/libdecnumber/ChangeLog
+++ b/libdecnumber/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-28 Jakub Jelinek <jakub@redhat.com>
+
+ * decContext.c (decContextTestEndian): Move adj definition into
+ #if DECCHECK guarded code.
+
2009-09-09 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.
diff --git a/libdecnumber/decContext.c b/libdecnumber/decContext.c
index 1756dcb..aa81959 100644
--- a/libdecnumber/decContext.c
+++ b/libdecnumber/decContext.c
@@ -393,11 +393,11 @@ Int decContextTestEndian(Flag quiet) {
if (dle>1) dle=1; /* ensure 0 or 1 */
if (LITEND!=DECLITEND) {
- const char *adj;
if (!quiet) {
+#if DECCHECK
+ const char *adj;
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