-qpriority (C++ only)
In IBM® XL C/C++ for AIX® 16.1.0 or earlier releases, the -qpriority option specifies the priority level for the initialization of static objects.
IBM Open XL C/C++ for AIX 17.1.3
does not support a functionally equivalent option to -qpriority, nor does it
support pragma priority
. IBM Open XL C/C++ for AIX 17.1.3 supports the
__attribute__((init_priority))
attribute that provides a similar function to
-qpriority, with which you can specify non-default priorities for initialization
in source code. The default priority between IBM XL C/C++ for AIX
16.1.0 and
IBM Open XL C/C++ for AIX 17.1.3 is
the same. However, the value range of the priority level in
__attribute__((init_priority))
is different from that of
-qpriority. As a result, there is no guarantee of relative ordering between the
objects compiled with IBM Open XL C/C++ for AIX 17.1.3 and the
objects compiled with IBM XL C/C++ for AIX
16.1.0 or earlier
releases.