Re: regex_internal.h modification lead to GCC crash

2005-09-20 Thread Derek Price
Paul Eggert wrote: >How about if we do this instead? The basic idea is to shut off >__attribute__ entirely for GCC before 3.1. There's little point to > > This patch works fine on BSD 1.6.1, one of the offending systems and I expect it will work fine on the rest. I've installed it in CVS CVS

Re: regex_internal.h modification lead to GCC crash

2005-09-19 Thread Paul Eggert
This is getting a bit complicated and I suspect we will run into further problems like this How about if we do this instead? The basic idea is to shut off __attribute__ entirely for GCC before 3.1. There's little point to figuring out exactly when each attribute was added. We can simply pic

Re: regex_internal.h modification lead to GCC crash

2005-09-19 Thread Ben Pfaff
Derek Price <[EMAIL PROTECTED]> writes: > I can reproduce this on some half-dozen platforms. It has to do with > calling __attribute() without arguments with gcc 2.95.4 or so. They all > seg-fault but one, which manages to print an error. > > I've attached a patch, which defines attribute_always

Re: regex_internal.h modification lead to GCC crash

2005-09-19 Thread Derek Price
Yoann Vandoorselaere wrote: >Hi list, > >Recently introduced modification to regex_internal.h lead to a crash >when compiling GnuLib regex module under FreeBSD-4.11 GCC-2.95.4. > >The same module is reported to compile successfully under FreeBSD-5.4, >GCC-3.4.2. >The GCC crash was traced down to

regex_internal.h modification lead to GCC crash

2005-09-19 Thread Yoann Vandoorselaere
Hi list, Recently introduced modification to regex_internal.h lead to a crash when compiling GnuLib regex module under FreeBSD-4.11 GCC-2.95.4. The same module is reported to compile successfully under FreeBSD-5.4, GCC-3.4.2. The GCC crash was traced down to the following addition: +#if !__GNUC