[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
regex workaround for gcc 2.95.3 core dump
From: |
Paul Eggert |
Subject: |
regex workaround for gcc 2.95.3 core dump |
Date: |
Sat, 24 Sep 2005 16:05:04 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
I installed the following to work around a build failure of coreutils
CVS on OpenBSD 3.4. (For now I have resisted the temptation to enable
__attribute__ only for GCC 4.0 and later. :-)
2005-09-24 Paul Eggert <address@hidden>
* regex_internal.h (__attribute): Define to nothing for GCC 2.
This works around a core dump on OpenBSD 3.4, which has GCC
2.95.3, which dumps core when given __attribute__(()).
--- lib/regex_internal.h 23 Sep 2005 04:15:13 -0000 1.17
+++ lib/regex_internal.h 24 Sep 2005 23:01:17 -0000 1.18
@@ -131,7 +131,7 @@
# define attribute_hidden
#endif /* not _LIBC */
-#ifdef __GNUC__
+#if __GNUC__ >= 3
# define __attribute(arg) __attribute__ (arg)
#else
# define __attribute(arg)
- regex workaround for gcc 2.95.3 core dump,
Paul Eggert <=