This commit is contained in:
Ralf Corsepius
2007-07-30 08:16:53 +00:00
parent f29163ab49
commit edc4bbd4c1
2 changed files with 9 additions and 6 deletions
+5
View File
@@ -1,3 +1,8 @@
2007-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/log.c: Activate SPLIT_SNPRINTF for gcc <= 4.2.1 and
coldfire.
2007-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/log.c: Add preliminary version of SPLIT_SNPRINTF to
+4 -6
View File
@@ -61,19 +61,17 @@ elog(int flags, struct conn *c, const char *fmt, ...)
exit(EXIT_FAILURE);
}
/* HACK: m68k-gcc <= 4.2.1 ICEs on the snprintf below for some
/*
* HACK: m68k-gcc <= 4.2.1 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
*/
#if defined(__GNUC__) && \
( (__GNUC__ < 4 ) || \
( (__GNUC__ == 4 ) && (__GNUC_MINOR__ < 2 ) ) || \
( (__GNUC__ == 4 ) && (__GNUC_MINOR__ == 2 ) && (__GNUC_PATCHLEVEL__ <= 1 ) ) )
#if defined(__mcf528x__)
//# define SPLIT_SNPRINTF 1
#endif /* __mcf528x__ */
#if defined(__mcf5200__)
#endif /* __mcf5200__ */
#if defined(__mcoldfire__)
#define SPLIT_SNPRINTF 1
#endif /* __mcoldfire__ */
#endif /* __GNUC__ */