• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C language dialect and optimization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C language dialect and optimization


  • Subject: Re: C language dialect and optimization
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 26 Dec 2006 10:05:26 -0800


On Dec 26, 2006, at 9:28 AM, Andy O'Meara wrote:


As I understand it, the line in gcc w/ c99 on:

   char* __restrict foo;

should be equivalent to the line in CW:

   char* restrict foo;

Is this correct? I ask this because in one of my master headers, I basically have:

#if __GNUC__
	#define restrict __restrict
#endif

In other words, anyone know why when c99 is enabled in gcc why usage of 'restrict' emits errors.

In C99 mode IIRC it should understand restrict directly.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: C language dialect and optimization
      • From: "Andy O'Meara" <email@hidden>
References: 
 >C language dialect and optimization (From: Luigi Castelli <email@hidden>)
 >Re: C language dialect and optimization (From: Ladd Van Tol <email@hidden>)
 >Re: C language dialect and optimization (From: "Andy O'Meara" <email@hidden>)

  • Prev by Date: Re: C language dialect and optimization
  • Next by Date: Re: C language dialect and optimization
  • Previous by thread: Re: C language dialect and optimization
  • Next by thread: Re: C language dialect and optimization
  • Index(es):
    • Date
    • Thread