This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add __GNUC_PATCHLEVEL__
Richard Henderson wrote:
>
> On Tue, Aug 24, 1999 at 03:21:15PM +0000, Jonathan Larmour wrote:
> > The problem is that the macro has to be available ubiquitously otherwise
> > people have to use a #ifdef test as well as a #if one.
>
> #if NOTDEF - 0 > 2
Okay, fair enough for that case. But this doesn't solve the problem that
code cannot detect whether it is using e.g. 2.95 or 2.95.1. Code may be able
to work around bugs in 2.95 that are fixed in 2.95.1. This is effectively
what happened in my code, but I had no way in the code to tell what patch
level was being used, so I had to enable brain-dead behaviour for both
patched and unpatched versions.
As I said, not everyone uses (or can use) autoconf, so that isn't the
answer.
Jifl
--
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762
"I used to have an open mind but || Get yer free open source RTOS's here...
my brains kept falling out." || http://sourceware.cygnus.com/ecos
Help fight spam! http://spam.abuse.net/ These opinions are all my own fault