IBM Support

IJ16324: DUPLICATED ELSE BLOCK WHEN USING -QHOT

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

  • When compiling with the -qhot optimization level, an incorrect
    optimization is performed that causes both the true and false
    blocks of an IF statement to execute identical code.  For
    example:
    
    if(test==0)
       do_one();
    else
       do_two();
    
    In this case, the false/else block is run in both IF scenarios,
    i.e. test==0 or test!=0.
    

Local fix

  • Compile with -qhot=level=0 or -qnohot
    

Problem summary

  • PROBLEM DESCRIPTION:
    The issue was determined to be an incorrect loop transformation
    optimization applied when using -qhot.
    
    USERS AFFECTED:
    The rare optimization issue may be seen in code that uses -qhot
    and contains a loop structure that has the ability to break out
    of the loop.
    

Problem conclusion

  • The optimization was corrected, and correct code is now
    generated.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ16324

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D13

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-05-24

  • Closed date

    2019-05-24

  • Last modified date

    2019-05-24

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

    IJ10561

  • 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: D13

Reference #: IJ16324

Modified date: 24 May 2019