HP aC++ Release Notes Version A.03.95 (5900-1789; September 2011)

HP aC++ Release Notes
Compatibility Information
Chapter 172
A f(A const& x) {
A a(x);
return a; // Will not call the copy constructor if the
} // optimization is enabled.
This optimization will not be performed if the copy constructor was not declared by the programmer.
Although this optimization is allowed by the ISO/ANSI C++ standard, it may have noticeable side effects.
Example:
aCC +nrv app.C
Linker Compatibility Warnings
Beginning with the HP-UX 10.20 release, the linker generates compatibility warnings. These warnings
include HP 9000 architecture issues, as well as linker features that may change over time.
Compatibility warnings can be turned off with the +v[no]compatwarnings linker option. Also, detailed
warnings can be turned on with the +vallcompatwarnings linker option.
Link time compatibility warnings include the following:
Linking PA-RISC 2.0 Object Files on any System
PA-RISC 1.0 programs will run on 1.1 and 2.0 systems. PA-RISC 2.0 programs will not run on 1.1 or
1.0 systems.
Dynamic Linking with -A
If you do dynamic linking with -A, you should migrate to using the Shared Library Management
Routines. These routines are also described in the sh_load(3X) man page.
Procedure Call Parameter and Return Type Checking
The current linker checks the number of symbols, parameters, and procedure calls across object files. In
future, you should expect HP compilers to perform cross-module type checking, instead of the linker.
This impacts HP Fortran programs.
Duplicate Names Found for Code and Data Symbols
The current linker can create a program that has a code and data symbol with the same name. In future,
the linker will adopt a single name space for all symbols. This means that code and data symbols cannot
share the same name. Renaming the conflicting symbols solves this problem.
Unsatisfied Symbols Found when Linking to Archive Libraries
If you specify the -v option with the +vallcompatwarnings option and link to archive libraries, you
may see new warnings.