Fixes are available
XL C/C++ for Linux Fix Pack 9 (August 2013 Update) for 11.1
April 2011 Update for XL C/C++ for Linux, V11.1
July 2011 Update for XL C/C++ for Linux, V11.1
October 2011 Update for XL C/C++ for Linux, V11.1
June 2012 Update for XL C/C++ for Linux, V11.1
October 2012 Update for XL C/C++ for Linux, V11.1
XL C/C++ for Linux Fix Pack 8 (June 2013 Update) for 11.1
APAR status
Closed as program error.
Error description
When compiling with -qipa, data initialization seems to drop for the following test case: 589: TEST>cat init.c int A = 0; 590: TEST>cat test.c#include <stdio.h> extern int A; struct s { int a; int b:20; int c:32; }; struct s S1 = { A,1,2}; struct s S2 = { A,1,2); int main() { printf("S1=%d %d %d\n",S1.a, S1.b, S1.c); printf("S2=%d %d %d\n",S2.a, S2.b, S2.c); } ======ACTUAL OUTPUT: $xlc -+ init.c test.c -qipa init.c: test.c: $./a.out S1=0 1 2 S2=0 0 0 ======EXPECTED OUTPUT: $./a.out S1=0 1 2 S2=0 1 2
Local fix
n/a
Problem summary
USERS AFFECTED: C++ users of IPA may be affected by this issue. PROBLEM DESCRIPTION: When using options that invoke IPA, the static initializationn for bitfields disappear.
Problem conclusion
The compiler has been fixed to ensures that the static bitfields are properly initialized in all cases.
Temporary fix
Comments
APAR Information
APAR number
LI76148
Reported component name
XL C/C++ FOR LI
Reported component ID
5724X1400
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2011-04-27
Closed date
2011-04-27
Last modified date
2011-04-27
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/C++ FOR LI
Fixed component ID
5724X1400
Applicable component levels
RB10 PSN IZ95841
UP06/09/13
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B10","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
17 October 2021