Fixes are available
May 2012 PTF for XL C/C++ for AIX, V10.1
January 2013 PTF for XL C for AIX, V10.1
January 2013 PTF for XL C/C++ for AIX, V10.1
XL C/C++ for AIX Fix Pack 18 (July 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 19 (October 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 21 (October 2015 PTF) for 10.1
XL C for AIX Fix Pack 21 (October 2015 PTF) for 10.1
May 2011 PTF for XL C/C++ for AIX, V10.1
May 2011 PTF for XL C for AIX, V10.1
October 2011 PTF for XL C/C++ for AIX, V10.1
October 2011 PTF for XL C for AIX, V10.1
February 2012 PTF for XL C for AIX, V10.1
February 2012 PTF for XL C/C++ for AIX, V10.1
May 2012 PTF for XL C for AIX, V10.1
September 2012 PTF for XL C for AIX, V10.1
September 2012 PTF for XL C/C++ for AIX, V10.1
XL C for AIX Fix Pack 18 (July 2013 PTF) for 10.1
XL C for AIX Fix Pack 19 (October 2013 PTF) for 10.1
XL C for AIX Fix Pack 20 (October 2014 PTF) for 10.1
XL C/C++ for AIX Fix Pack 20 (October 2014 PTF) for 10.1
APAR status
Closed as program error.
Error description
The following test case demonstrates the inocorrect output: $cat test.c #include <stdio.h> int c; int cia(); int check1(); int check2(); int foo() { unsigned g1=0, g2=0; if (check1()) { g1=1;} if (check2()) { g2=1;} unsigned char f1 = cia(); if ((( (c?1:0) || g1 || g2) && (f1 ))) return 1; return 0; } int cia() { return 1; } int check1() { return 0;} int check2() { return 0;} int main() { c=1; printf("foo = %d\n", foo()); return 0; } ======ACTUAL OUTPUT: $xlc -+ test.c -q64 -qhot -qlist -qnoinline ; ./a.out foo = 0 $ ======EXPECTED OUTPUT: $./a.out foo = 1
Local fix
n/a
Problem summary
USERS AFFECTED: Users compiling the applications with ipa maybe affected by this issue. PROBLEM DESCRIPTION: A specific internal branching optimization was not merging the branches correctly while handling the first jump label.
Problem conclusion
The fix was to check if there is any jump to the label from outside of the predicate group when grouping the predicates with branch collapsing.
Temporary fix
Comments
APAR Information
APAR number
IZ97868
Reported component name
XL C AIX
Reported component ID
5724U8000
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-03-31
Closed date
2011-03-31
Last modified date
2011-03-31
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 AIX
Fixed component ID
5724U8000
Applicable component levels
Document Information
Modified date:
06 October 2021