IBM Support

IZ70099: Static variable not initialized to 0 with asm

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When test cases that involve inline asm are compiled at high opt
    (-O3 and higher), some static variables may not be initialized
    to 0 even if 'static int x = 0' has been defined.
    

Local fix

  • n/a
    

Problem summary

  • USER AFFECTED:
    Users that use the assembly output path (such as users who have
    gcc style inline assembly in their source) may be affected by
    this issue.
                   
    PROBLEM DESCRIPTION:
    Static data which is not initialized or is initialized to zero
    may not be zero as expected.
    

Problem conclusion

  • The compiler has been fixed so that the first name on the
    .lcomm statement
    declaring the variable is different from the second.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ70099

  • Reported component name

    XL C++ AIX

  • Reported component ID

    5724U8100

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-02-10

  • Closed date

    2010-02-24

  • Last modified date

    2010-03-03

  • 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

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1"}]

Document Information

Modified date:
06 October 2021