IBM Support

LI76148: DATA INITIALIZATION DROPPED WITH -QIPA

Subscribe

You can track all active APARs for this component.

 

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:

    IZ95841

  • 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

[{"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