IBM Support

IV85975: INTERNAL COMPILER ERROR WITH -O2 AND VARIABLE INIT

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Compiling an application containing a variable initialization
    with boolean conditional evaluation with -O2 is encountering an
    internal compiler error.
    
    
    
    === EXAMPLE CODE ===
    
    Note:  not a standalone test case
    
    unsigned long val d =
          !( ((1L<<(value1)) & (number)) != 0L ) ||
          !( ((1L<<(value2)) & (number)) != 0L );
    
    
    $ xlC -c -O2 test.c
        1500-004: (U) INTERNAL COMPILER ERROR while compiling
    func1.  Compilation ended.  Contact your Service
    Representative and provide the following information: Internal
    abort. For more information visit:
    http://www.ibm.com/support/docview.wss?uid=swg21110810
    $
    

Local fix

  • Do not use optimization.
    

Problem summary

  • PROBLEM DESCRIPTION:
    Internal compiler error when internal-compiler code
    representation is unexpected/invalid for code optimization.
    
    USERS AFFECTED:
    Users of optimization.
    

Problem conclusion

  • The code representation issue has been resolved, and the
    problem is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV85975

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-06-21

  • Closed date

    2016-06-21

  • Last modified date

    2016-06-21

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

    IV84572

  • 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

  • RC10 PSY

       UP



Document information

More support for: XL C for AIX
Compiler

Software version: 12.1

Reference #: IV85975

Modified date: 21 June 2016