summaryrefslogtreecommitdiff
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-03-07 18:58:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-03-07 18:58:39 +0000
commitad62077db9adb5bfc83519e8ff1c88d96db45678 (patch)
treedad68092e390ee3582af565f5f23407ff482a40e /cpukit
parent789c49080b54e2c902c8019528195794b1453035 (diff)
2008-03-07 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1280/tools * shttpd/log.c: Broaden logic so all gcc versions < 4.3.0 will enable work around.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/shttpd/log.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 2ef2c6c1ba..45900634a4 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-07 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ PR 1280/tools
+ * shttpd/log.c: Broaden logic so all gcc versions < 4.3.0 will enable
+ work around.
+
2008-02-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/motorola/mc68230.h: Prefix defines with
diff --git a/cpukit/shttpd/log.c b/cpukit/shttpd/log.c
index 1c11404484..5862c1b3ed 100644
--- a/cpukit/shttpd/log.c
+++ b/cpukit/shttpd/log.c
@@ -62,14 +62,14 @@ elog(int flags, struct conn *c, const char *fmt, ...)
}
/*
- * HACK: m68k-gcc <= 4.2.1 ICEs on the snprintf below for some
+ * HACK: m68k-gcc <= 4.2.3 ICEs on the snprintf below for some
* coldfire variants for yet unknown reasons.
* C.f.: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32307
+ * Fixed in gcc 4.3.x and unlikely ever to be fixed in 4.2 and older.
*/
#if defined(__GNUC__) && \
- ( (__GNUC__ < 4 ) || \
- ( (__GNUC__ == 4 ) && (__GNUC_MINOR__ < 2 ) ) || \
- ( (__GNUC__ == 4 ) && (__GNUC_MINOR__ == 2 ) && (__GNUC_PATCHLEVEL__ <= 1 ) ) )
+ (__GNUC__ < 4 ) || \
+ ( (__GNUC__ == 4 ) && (__GNUC_MINOR__ <= 2 ) )
#if defined(__mcoldfire__)
#define SPLIT_SNPRINTF 1
#endif /* __mcoldfire__ */