HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
Programs compiled with the +Oautopar option require the libcps, libomp, and
libpthreads runtime support libraries to be present at both compilation and runtime. When
linking with the HP-UX B.11.61 linker, compiling with the +Oautoparoption causes them
to be automatically included. Older linkers require those libraries to be specified explicitly
or by compiling with +Oopenmp.
The +Oautopar option is supported when compiling C, C++, or Fortran files. Specifying
+Oautopar implies the -mt option.
The default is +Onoautopar, which disables automatic parallelization of loops.
+tls=[static|dynamic]
+tls=[static|dynamic]
The +tls option specifies whether references to thread local data items are to be
performed according to the mode.
Usage:
+tls=mode
The defined values of mode are:
static This is a more efficient mode in which only thread local data in the program
startup set can be accessed.
dynamic This is a less efficient mode in which thread local data outside the program
startup set can be accessed as well. This is the default.
Translation units compiled with different settings of this option may be freely mixed, even
within the same load module.
+wlock
+wlock
The +wlock option enables compile-time diagnostic messages for potential errors in
using lock/unlock calls in programs that use pthread-library-based lock/unlock functions.
Warnings are emitted for acquiring an already acquired lock, releasing an already
released lock, and unconditionally releasing a lock that has been conditionally acquired.
This diagnostic checking is based on cross-module analysis performed by the compiler.
Therefore, the +wlockoption implicitly enables a limited form of cross-module analysis,
even if -ipo or+O4 options are not specified. This can lead to a significant increase in
the compile time compared to a build without the +wlock option. Using this option could
result in the compiler invoking optimizations other than those that are part of the
user-specified optimization level. If +wlock is used in addition to -ipo or +O4, the
generated code is not affected, and the compile time does not increase much.
82 Command-Line Options