PATCH to implement `restrict' in C

Ulrich Drepper drepper@cygnus.com
Wed Oct 21 09:48:00 GMT 1998


nathan@acm.org (Nathan Sidwell) writes:

> Just a thought, should we (eventually) allow g++ to parse C9X header
> files?

This is not necessary.  If a header which uses ISO C 9x extensions is
used when compiling C++ the extension simply must be hidden.  E.g., in
glibc we have already __restrict in many prototypes.  If the headers
are used in C++ programs __restrict is simply defined to an empty
string.

The compiler should never have to be changed for this.  It's the
header which is wrong if an error occurs.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Gcc-patches mailing list