delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/01/20/08:09:44

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Thu, 20 Jan 2005 06:09:16 -0700
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: Re: restrict keyword
In-reply-to: <01c4f9af$Blat.v2.2.2$7b8dcc60@zahav.net.il>
To: djgpp-workers AT delorie DOT com
Message-id: <umavu0pbrb0ll7paentlo27v8ihct40f2l@4ax.com>
Organization: Systematic Software
MIME-version: 1.0
X-Mailer: Forte Agent 1.93/32.576 English (American)
References: <q8cmt0p9e3ri4p17udh3lvk1gdrfoclb31 AT 4ax DOT com>
<200501091459 DOT j09ExiLO022171 AT speedy DOT ludd DOT ltu DOT se>
<po13u0d5utt13bu5po82aqt9ckvvfv1bne AT 4ax DOT com>
<cdvbu0t52me63clarhma3bq0blfitn46jr AT 4ax DOT com>
<01c4f9af$Blat.v2.2.2$7b8dcc60 AT zahav DOT net DOT il>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j0KD9L7k009143
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 13 Jan 2005 22:34:53 +0200, Eli Zaretskii <eliz AT gnu DOT org>
wrote:

>> Date: Wed, 12 Jan 2005 21:51:10 -0700
>> From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
>> 
>> Anyone know (how to find out) in which version of gcc the patch
>> in the message below was included?
>> http://gcc.gnu.org/ml/gcc-patches/1998-10/msg00356.html
>
>If no one answers, you could simply ask the GCC maintainers (via the
>gcc-patches mailing list).

Found the answer in one of your old postings:
http://gcc.gnu.org/ml/gcc-bugs/2000-04/msg00151.html

Original code by Claus Fischer:
> > #if __STDC_VERSION__ >= 199901
> > #elif defined (__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 91
> > #define restrict __restrict__
> > #else
> > #define restrict
> > #endif

but I'd invert this to dummy __restrict__:

#if __GNUC__ <= 2 && __GNUC_MINOR__ < 91
#define __restrict__
#endif

unless we really have to worry about gcc 1, in which case:

#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 91)
#define __restrict__
#endif


-- 
Thanks. Take care, Brian Inglis

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019