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 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: Organization: Systematic Software MIME-version: 1.0 X-Mailer: Forte Agent 1.93/32.576 English (American) Content-type: text/plain; charset=us-ascii References: <200501091459 DOT j09ExiLO022171 AT speedy DOT ludd DOT ltu DOT se> <01c4f9af$Blat.v2.2.2$7b8dcc60 AT zahav DOT net DOT il> Content-Transfer-Encoding: 8bit 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 Precedence: bulk On Thu, 13 Jan 2005 22:34:53 +0200, Eli Zaretskii wrote: >> Date: Wed, 12 Jan 2005 21:51:10 -0700 >> From: Brian Inglis >> >> 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