HP aC++/HP C A.06.25 Release Notes

Table Of Contents
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 level, the more messages are generated. Level 1 emits only the most important
messages, while level 4 emits all the messages. If the optional level is not specified, it
defaults to 2.
New Features in Version A.06.15 29