HP C B.11.11.16 Release Notes
HP C/ANSI C Release Notes
New Features in Version B.11.11.08
Chapter 1 15
__typeof__ (*x) y[4];
This declares y as an array of pointers to characters:
__typeof__(__typeof__(char *)[4]) y;
__restrict__ Keyword
This keyword can be used to indicate to the optimizer that the associated variable declared
with this qualifier will not have aliases (using pointers). This will help in better code
optimization.
NOTE __restrict__ qualifier can only be used with pointers.
Examples:
int a = 10;
int *__restrict__ b = &a;
__volatile__ Keyword
This is equivalent to the volatile keyword.
Usage:
__volatile__ int var;
C99 Mode with -AC99 Option
This option needs to be used in order to use the C99 specific features. For example, it enables
keywords like restrict, and typeof to be recognized. (Without this option, the keywords
__restrict__ and __typeof__ need to be used).
+We[n1,n2,...,nN] Option to Flag Warnings as Errors
Using this option causes the compiler warnings n1, n2, ..., nN to be converted into error
messages. If no numbers are specified, then most warnings, except a selected few, are
converted into errors.