IBM Support

IJ04413: 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 header file functions that are inlined into main
    programs maybe affected by this issue.
    
    PROBLEM DESCRIPTION:
    An internal compiler optimization was incorrectly folding an
    internal variable leading to incorrect inlining results.
    

Problem conclusion

  • The compiler has been fixed to handle the above mentioned case.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ04413

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-03-01

  • Closed date

    2018-04-23

  • Last modified date

    2018-04-23

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

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

    IJ04415 IJ08165

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: 12.1

Reference #: IJ04413

Modified date: 23 April 2018