bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regex workaround for gcc 2.95.3 core dump


From: Derek Price
Subject: Re: regex workaround for gcc 2.95.3 core dump
Date: Sat, 24 Sep 2005 23:27:12 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Paul,

This is the same problem I ran into a few days ago on several platforms,
and you helped me come up with this patch:
<http://lists.gnu.org/archive/html/bug-gnulib/2005-09/msg00234.html>. 
The patch in that message also removes a little cruft and handles a
similar problem in a later GCC with always_inline, by ignoring
__attribute__ for GCC < 3.1.

Regards,

Derek


Paul Eggert wrote:

>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)
>
>
>_______________________________________________
>bug-gnulib mailing list
>address@hidden
>http://lists.gnu.org/mailman/listinfo/bug-gnulib
>  
>


-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]