HP C B.11.11.16 Release Notes

HP C/ANSI C Release Notes
New Features in Version B.11.11.08
Chapter 114
New Features in Version B.11.11.08
HP C compiler version B.11.11.08 supports the following new features:
restrict Keyword
__typeof__ Operator
__restrict__ Keyword
__volatile__ Keyword
C99 Mode with -AC99 Option
+We[n1,n2,...,nN] Option to Flag Warnings as Errors
Non-Constant Initializers for Aggregates
—include <file> Option
+O[no]clone Option
+Olit=[all|const|none] Option
+O[no]memory[=malloc] Option
Assigned goto Feature
__label__ Feature to Locally Declare Labels
HPC_DEBUG_COMPAT Environment Variable
restrict Keyword
This is a C99 feature. The restrict keyword tells the optimizer that variables declared as
restrict cannot have aliases (using pointers). Thus the optimizer can do better alias analysis.
As of the current release, only the keyword is supported without any accompanying
optimizations.
__typeof__ Operator
A typeof-construct can be used anywhere a typedef name is used. For example, you can use it
in a declaration, in a cast, or inside of sizeof or __typeof__. __typeof__ is another way to
refer to the type of an expression.
This example declares y as an array of type of what x points to.