Fixes are available
APAR status
Closed as program error.
Error description
The inlining of a specific user function causes incorrect output at runtime. ===== ACTUAL OUTPUT: The following snippet of code evaluates incorrectly due to inlining: if(put_call_exe(exePath, argv[0], argv, outName, &status, (mode & ERROR) ? EXITCODE : 0) == -1) ===== EXPECTED OUTPUT: The above snippet of code should evaluate correctly.
Local fix
-qinline-<functtion_name> can be used as a workaround to prevent the affected function from being inlined.
Problem summary
USERS AFFECTED: Users who have header file functions that are inlined into main programs maybe affected by this issue. PROBLEM DESCRIPTION: An internal compiler optimization was incorrectly folding an internal variable leading to incorrect inlining results.
Problem conclusion
The compiler has been fixed to handle the above mentioned case.
Temporary fix
Comments
APAR Information
APAR number
IJ04413
Reported component name
XL C/C++ FOR AI
Reported component ID
5725C7200
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-03-01
Closed date
2018-04-23
Last modified date
2018-04-23
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
XL C FOR AIX
Fixed component ID
5725C7100
Applicable component levels
RC10 PSY
UP
[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1"}]
Document Information
Modified date:
14 September 2021