IBM Support

PI74614: 'IF' STATEMENT BEING INCORRECTLY OPTIMIZED AWAY

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling a large program with complex flow with
    optimization, the compiler incorrectly optimizes away an 'if'
    statement causing the program to produce incorrect output at
    runtime.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of XLC on zOS with large programs      *
    *                 with complex control flow using              *
    *                 optimization.                                *
    ****************************************************************
    * PROBLEM DESCRIPTION: Optimization that guarantees            *
    *                      correct order of instructions that      *
    *                      modify condition code register value    *
    *                      and those that consume this value,      *
    *                      didn't run due to incorrect heuristics  *
    *                      This caused incorrect program results   *
    *                      at execution.                           *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF.                      *
    *                                                              *
    ****************************************************************
    .
    

Problem conclusion

  • Apply provided service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI74614

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    7A0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-01-09

  • Closed date

    2017-01-09

  • Last modified date

    2017-02-01

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

    PI74414

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

Modules/Macros

  •    CCNETBY
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R7A0 PSY UI43767

       UP17/01/26 P F701

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7A0","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSQKCWV","label":"IBM C\/C++ for MVS\/ESA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7A0","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
09 August 2024