IBM Support

PH47975: INLINE OPTIMIZATION CAUSING INCORRECT OUTPUT WITH STRING REPLACE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Inlining a function and using optimization is causing incorrect
    input parameter processing/optimization for the function.  The
    incorrect parameters cause incorrect code behaviour.
    
    Tracing the values of the function's parameters may indicate if
    this issue is encountered.
    

Local fix

  • Do not use optimization
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: XLC Users using the OPTIMIZE option.         *
    ****************************************************************
    * PROBLEM DESCRIPTION: The compiler may generate incorrect     *
    *                      code at higher optimizations and        *
    *                      consequently cause undefined behavior.  *
    ****************************************************************
    * RECOMMENDATION: Install the PTF                              *
    ****************************************************************
    N/A
    

Problem conclusion

  • The user should install the PTF.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH47975

  • 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

    2022-07-13

  • Closed date

    2022-08-05

  • Last modified date

    2022-10-03

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

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

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 UI81828

       UP22/09/07 P F209

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:
03 October 2022