If the +check=bounds:pointer is on, +check=uninit will check pointer access for uninitialized memory read (UMR). To enable checking, the runtime system will initialize the heap objects and stack variables with a special pattern. If the pointer accesses an area containing the specified pattern for the specified length, then it assumes the read is UMR. To minimize UMR false positive, the user may change the special pattern and number of bytes to check by using RTC_UMR environment variable:
RTC_UMR=[INIT=0xnn][:CHECK_SIZE=sz]
where:
•INIT specifies the char type value used to initialize heap/local objects. The default pattern is 0xDE.
•CHECK_SIZE specifies the minimum number of bytes used to check for UMR. The default number is 2.
Also see the +Oinitcheck option to enable
Standards Related Options
The compiler accepts the following options related to the ANSI/ISO
The
The default is on for C++, but off for C. Refer to the
The
The
Usage:
The standard features enabled by
NOTE:
•This option is not supported in legacy HP C. This option is ignored with warnings in
•This option will be removed in a future version of the compiler. Use the equivalent option +std=c++98 to ensure that your builds do not break in future.
NOTE: This option was deprecated earlier and is obsolete in this release.
82