IBM Support

PH54999: PRINTF() HAS UNEXPECTED VALUE WITH OPTIMIZATION

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Printf() has unexpected value with optimization
    

Local fix

  • Use NOOPTIMIZE
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of V2R4 XLC/C++ with OPTIMIZE(2)       *
    *                 and code that performs a bitwise masks of a  *
    *                 value with                                   *
    *                 a power of 2 constant then comparing the     *
    *                 result                                       *
    *                 immediately against 1.                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: The compiler may generate               *
    *                      incorrect code resulting in a wrong     *
    *                      comparison result                       *
    ****************************************************************
    * RECOMMENDATION: Install the PTF                              *
    ****************************************************************
    N/A
    

Problem conclusion

  • Install the PTF or use workaround
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH54999

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    7C0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-06-07

  • Closed date

    2023-11-17

  • Last modified date

    2023-12-15

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

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

    UI94531

Modules/Macros

  • CCNECICS CCNECWI  CCNED240 CCNEDSCT CCNEDWRT CCNEFILT CCNEHIFC
    CCNEIPA3 CCNEIPAO CCNEMDEP CCNEOPTP CCNEP    CCNEPP   CCNETBY
    CCNMSGE  CCNMSGT  CCNQIPA
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R7C0 PSY UI94531

       UP23/12/15 I 1000

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":"SSTLTF","label":"z\/OS XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7C0","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
15 December 2023