This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH to implement `restrict' in C



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]