HP aC++/HP ANSI C Release Notes (B3901-90037; A.06.26; September 2011)
Example 3 Redirecting make-dependency to a file
aCC +Makef make_dependency_output_file source_file
aCC +Makef hello.make-dep hello.c
Support for initialization of Flexible Array Member
The compiler now supports the initialization of Flexible Array Member. Following are
the characteristics of this implementation:
• Flexible array members are written as contents[] without the 0.
• Flexible array members have incomplete type, and so the sizeof operator may
not be applied. As a side effect of the original implementation of zero-length arrays,
sizeof evaluates to zero for flexible array members.
• Flexible array members must appear as the last member of a struct that is otherwise
non-empty.
• A structure containing a flexible array member, or a union containing such a structure
(possibly recursively), must not be a member of a structure or an element of an array.
NOTE: These uses are permitted by GCC as extensions.
Example 4 Initialization of Flexible Array Member
struct test_vla_init_nums_st { int numCC; int nums[]; };
static struct test_vla_init_nums_st test_vla_init_nums ={3, {1,2,3}
Improved C++ Demangler
The C++ demangler c++filt has been improved to use better algorithms, which are
more robust and standard compliant. There are no changes to the external interface.
NOTE: __cxa_demangle has not changed in this release.
Deprecation and removal of options
The following options are deprecated:
• -AP
In order to enable future runtime library versions, the -AP option is being deprecated
and will be removed in a future version of aC++.
The default on Integrity servers is -AA, so the sources should be ported to -AA mode.
For more information, visit http://www.hp.com/go/aCC and click C++ runtime
environments (-AA and -AP) on HP-UX under HP aC++ Resources. Also refer
10 What’s new in this version