HP aC++/HP ANSI C Release Notes (B3901-90037; A.06.26; September 2011)
• __attribute__ ((visibility("default"|"protected"|"hidden")))
(New)
• __attribute__ ((warn_unused_result)) (New)
• Change in treatment of cv-qualified assignment operators
printf, fprintf optimization (New)
For optimization level+O2or above, printf and fprintf calls are now optimized into
fputc or fputs calls, in trivial cases. This optimization will only occur when both the
following are true
• A return value is not used for printf and fprintf. For example, use
(void)fprintf(...);
• The functions printf, fprintf, fputs, and fputc are declared in <stdio.h>
or <cstdio>.
To disable this feature for +O2and above, use: +Onolibcalls="fprintf" (or
"printf").
To have the compiler list the lines where the optimization was performed, use +Oinfo.
+Wmacro option (New)
+Wmacro:MACRONAME:d1,d2,...,dn
The +Wmacro option disables warning diagnostics d1,d2,...,dn in the expansion of
macro MACRONAME. If -1 is given as the warning number, then all warnings are
suppressed. This option is not applicable to warning numbers greater than 20000.
+Wmacro gets higher priority than the other diagnostic control command-line options
that are applicable to the whole source. Diagnostic control pragmas take priority based
on where they are placed.
+Wcontext_limit option (New)
+Wcontext_limit=num
This option limits the number of instantiation contexts output by the compiler for diagnostics
involving template instantiations. At most num outermost contexts and num innermost
contexts are shown. If there are more than 2 * num relevant contexts, the additional
contexts are omitted. Omitted contexts are replaced by a single line separating the
outermost num contexts from the innermost num contexts, and indicating the number of
contexts omitted. The default value for num is 5. A value of 0 removes the limit.
+wperfadvice option (New)
+wperfadvice[={1|2|3|4}]
This option enables performance advisory messages. The optional level 1, 2, 3, or 4
controls how verbosely the performance advisory messages are emitted. The higher the
New features in version A.06.15 33