IBM Support

LI76133: INTERNAL COMPILER ERROR AT -O3

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An internal compiler error is encountered when the following
    test case is compiled at -O3 optimization.
    
    ===== Test case
    
    #include <math.h>
    
    extern int bar(void);
    
    struct MYS
    {
       int      *pdata;
       int      datalen;
    } statn;
    
    void foo(int flags)
    {
       int buf[1024], len;
       struct MYS mys;
    
       buf[0] = 0;
       mys = statn;
       len = mys.datalen;
       mys.pdata = buf;
    
    restart:
       while (bar())
       {
          if (flags)
             goto restart;
          if (floor(0.0))
             break;
       }
    }
    ======================
    

Local fix

  • Use a lower optimization level when compiling.
    

Problem summary

  • PROBLEM DESCRIPTION:
    An incorrect SSA graph is generated due to the inconsistency of
    the aliasing and a particular internal compiler flag.
    
    USERS AFFECTED:
    Users who optimize at -O3 or higher.
    

Problem conclusion

  • This problem should be fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI76133

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5724X1400

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2011-04-27

  • Closed date

    2011-04-27

  • Last modified date

    2011-04-27

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

    IZ88804

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5724X1400

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B10","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
17 October 2021