This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to implement `restrict' in C
In article <199810201606.JAA11689@smtp.earthlink.net>,
Mark Mitchell <mark@markmitchell.com> writes:
Andi> There is one problem with that: once restrict is ported to
Andi> g++ it will need an own option for it. -flang-c9x doesn't
> Nope. There will be no `restrict' in g++; only `__restrict__'. If at
> some point a new C++ standard introduces `restrict' in C++, we will
> have a name for all the other new features introduced by that standard,
> like -flang-cxx2005. We can use `__restrict__' since it is reserved
> for the implementation.
That will be incompatible with the EDG based compilers which have restrict.
And -frestrict looks a bit nicer than -Drestrict=__restrict__ in this case @)
-Andi