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
- To: Andi Kleen <ak at muc dot de>
- Subject: Re: PATCH to implement `restrict' in C
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 20 Oct 1998 09:16:14 -0600
- cc: mark at markmitchell dot com, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <k23e8jsb68.fsf@zero.aec.at>you write:
> There is one problem with that: once restrict is ported to g++ it will
> need an own option for it. -flang-c9x doesn't make sense for a C++ compiler
> (and a new C++ standard including it is unlikely to appear anytime soon)
> So an -frestrict is needed anyways, and it would be inconsistent to have
> it for g++, but not for gcc. So I propose to keep -frestrict, but to have
> -flang-c9x imply it.
Actually I'd prefer "-lang-c9x", not "-flang-c9x". Again, consistency with
existing language variant options.
For C++, I would recommend using __restrict__ until it appears in a C++
standard of some sort.
> On a related topic is anyone working on implementing other C9x extensions
> like statement declarations in gcc? It should be easy compared to more
> tricky bits like migrating gcc complex semantics to C9x complex semantis
Nobody that I'm aware of.
jeff