IBM Support

IV62893: STATIC/GLOBAL VARIABLE VALUE PROPAGATED PAST FUNCTION CALL WITH -QIPA

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A global or static variable's value is not changed after a call
    to an external library function that modifies the value.  The
    variable's value previous to the external function call is
    propagated past the call, and used in later operations.
    
    
        ==== EXAMPLE ====
    
      test_val = 999;              // SET test_val IN MAIN()
    
      <some_external_function>();  // CALL EXTERNAL FUNCTION
                                   // SETS test_val TO 1
    
      char *temp;
      if(test_flg==1)        temp="OK";
      else if(test_flg==999) temp="WRONG";
                                   // AFTER IPA OPTIMIZATION, 999 IS
                                      PROPAGATED PAST EXTERNAL
                                      FUNCTION CALL, AND IF
                                      STATEMENT FAILS
    

Local fix

  • Do not use -qipa optimization.
    

Problem summary

  • PROBLEM DESCRIPTION:
    Incorrect variable aliasing can lead to invalid optimizations
    being performed.
    
    USERS AFFECTED:
    Any using ipa link with indirect calls to/from functions in
    shared libraries or object files that were not compiled with
    -qipa.
    

Problem conclusion

  • Disabled the optimization that was causing the bad aliasing.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV62893

  • 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

  • Submitted date

    2014-07-24

  • Closed date

    2014-10-23

  • Last modified date

    2014-10-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IV67981 LI78462

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

[{"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:
13 September 2021