IBM Support

IJ04415: INLINING OF USER FUNCTION CAUSES INCORRECT OUTPUT

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • The inlining of a specific user function causes incorrect output
    at runtime.
    
    ===== ACTUAL OUTPUT:
    The following snippet of code evaluates incorrectly due to
    inlining:
    if(put_call_exe(exePath, argv[0], argv, outName, &status,
                               (mode & ERROR) ? EXITCODE :
                               0) == -1)
    
    
    ===== EXPECTED OUTPUT:
    The above snippet of code should evaluate correctly.
    

Local fix

  • -qinline-<functtion_name> can be used as a workaround to prevent
    the affected function from being inlined.
    

Problem summary

  • USERS AFFECTED:
    Users who have function calls one within the another; and use
    inlining are potentially affected by this issue
    
    PROBLEM DESCRIPTION:
    An internal optimization was incorrectly causing an internal
    variable to be folded incorrectly leading to the incorrect
    output at runtime
    

Problem conclusion

  • The compiler optimization has been resolved to handle the above
    mentioned scenario.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ04415

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-03-01

  • Closed date

    2018-03-01

  • Last modified date

    2018-03-01

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

    IJ04413

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

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels



Document information

More support for: XL C for AIX
Compiler

Software version: 13.1

Reference #: IJ04415

Modified date: 01 March 2018