IBM Support

LI74537: NO LOAD FOR VOLATILE INT AT -O2

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The compiler does not mark a volatile int as volatile and
    there's no load instruction generated for the statement at -O2,
    causing the user program to hang at runtime.
    

Local fix

  • use -g -O2 or use -O0.
    

Problem summary

  • USER AFFECTED:
              Aggregates, which contain volatile members.
    
    PROBLEM DESCRIPTION:
              Aggregates, which contain volatile members are not
              correctly marked volatile leading to possible
              incorrect code generation resulting in
              unexpected run time behaviour of user application.
    

Problem conclusion

  • The Compiler is modified to emit the correct volatile
              flags for such aggregates.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI74537

  • Reported component name

    XLC/C++ RHEL4

  • Reported component ID

    5724M1610

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-05-28

  • Closed date

    2009-05-28

  • Last modified date

    2009-05-28

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

    IZ35876

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

    LI74562 LI74599

Fix information

  • Fixed component name

    XLC/C++ RHEL4

  • Fixed component ID

    5724M1610

Applicable component levels

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

Document Information

Modified date:
17 October 2021