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: law at cygnus dot com
- Subject: Re: PATCH to implement `restrict' in C
- From: Andi Kleen <ak at muc dot de>
- Date: 20 Oct 1998 13:52:15 +0200
- Cc: mark at markmitchell dot com, egcs-patches at cygnus dot com
- References: <17225.908849307@upchuck>
In article <17225.908849307@upchuck>,
Jeffrey A Law <law@cygnus.com> writes:
>> OK. I'll change the spelling of -frestrict to -fisoc9x, and alter the
>> documentation accordingly. If there are other c9x features (like
>> _Pragma) implemented, they can go under this flag.
> I'd make it a -lang-c9x to be consistent with other options which control
> language dialects.
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.
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 semantics @)
-Andi