HP aC++ Release Notes Version A.03.95 (5900-1789; September 2011)

HP aC++ Release Notes
New Features in Version A.03.33
Chapter 148
Initialized Thread Local Storage
Static link time initialization of thread private variables (PODs only) is now supported. Earlier versions of
the compiler supported only uninitialized thread private variables.
For example:
__thread int j = 2; // allowed with this release
int main()
j = 20;
}
Since thread private memory is allocated during runtime, virtual addresses of the thread private variables
should not be used in situations where compile time evaluation of the addresses is necessary. Following are
some of the sample incorrect usages:
Example 1:
__thread int tpv_1;
__thread int *ptr = &tpv_1; //incorrect
Example 2:
__thread int tpv_1;
int *ptr = &tpv_1; //incorrect
+O[no]inline=list Option
The list form is now available. It can contain the names of extern C functions or they must be mangled
names.
-I- Option Enhanced to Perform prefixinclude Search
The -I- option has been enhanced to do a prefixinclude search. The -I- option, by itself, is not sufficient to
handle the case involving a quoted include from a parent file which is not directly on the quoted or bracketed
search paths. Prefixinclude search provides additional support for the case where, due to use of directory
prefixes in #include directives in parent including files, the directory of the including file is no longer
directly on the include search list.
In the non -I- case, use of directory prefixes in parent #include directives causes the compiler to look in
some directory offset from the directory of the top-level source file. Analogously, in the -I- case, use of
directory prefixes in parent include files in effect define an offset relative to the directories on the search list.
This is equivalent to explicitly specifying the directory prefix explicitly in the child #include “...”
directive. In fact, modifying the source #include directive in this way would allow the intended included
file to be found without requiring prefixinclude support in the preprocessor.
Here’s an example of the problem: