IBM Support

LI77656: COMPILER ABEND WITH -O3

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The compiler abends when compiling the following source code at
    -O3.
    
    ===== COMPILE COMMAND:
    xlc_r -g -O5 -Q -qnoansialias -qmaxmem=-1 -qinlglue -q64 -qdfp
    -qhalt=s -qlanglvl=extc99:ucs -qchars=unsigned -qarch=pwr7
    -qtune=pwr7 -c test.c
    
    ===== TESTCASE:
    $ cat test.C
    
    typedef unsigned uns;
    typedef uns  bool;
    
    
    typedef unsigned long  uint64_t;
    extern _Decimal128 strtod128(const char *, char **);
    typedef uint64_t  BOUND;
    typedef __attribute__ ((aligned(16))) _Decimal128 apldecf128;
    
    static const apldecf128 DECF_ZERO =  0e0DL ;
    
    
    
    
    
    static bool chasebulge_apldecf128(apldecf128 *u, apldecf128 *s,
    apldecf128 *v, BOUND mini, BOUND maxui, BOUND maxvi, BOUND m,
    BOUND n, int it) {
    
     bool converged;
     bool recurseconverged=1;
      apldecf128 *w, *x;
     BOUND i;
    
    
    
      for (i=mini;i<maxui;i++) {
        *x++=(DECF_ZERO);
    
         decf_add(fabsd128(*(x)),fabsd128(*(x)));
          *w=(DECF_ZERO);
      }
    
     if (!chasebulge_apldecf128(0, 0, 0, 0, 0, 0, 0, 0, 0)) {
    int i = 0; }
     return recurseconverged&&converged;
    }
    
    
    
    
    static bool svdfactbackend_apldecf128(apldecf128 *u, apldecf128
    *s, apldecf128 *v, BOUND m, BOUND n, void *space, BOUND
    *compact) {
     bool converge;
    
     converge = chasebulge_apldecf128(0, 0,0, 0, 0, 0, 0,0, 30);
    
    
    
     return converge;
    }
    
    
    
    void svdfactorization(bool compact) {
     BOUND m, n;
    
    
      svdfactbackend_apldecf128(0,0,0,m,n,0,0);
    
    }
    
    $
    
    
    ===== ACTUAL OUTPUT:
    $ xlc_r -g -O5 -Q -qnoansialias -qmaxmem=-1 -qinlglue -q64
    -qdfp -qhalt=s -qlanglvl=extc99:ucs -qchars=unsigned
    -qarch=pwr7 -qtune=pwr7 -c test.c
        1500-004: (U) INTERNAL COMPILER ERROR while compiling
    svdfactorization.  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
    1586-346 (U) An error occurred during code generation.  The
    code generation return code was 1.
    $
    
    
    ===== EXPECTED OUTPUT:
    Compile clean without compiler abend.
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users that compile source with DFP and has chances to optimize
    by IPRA (such as small recursive functions) may encounter this
    issue.
    
    PROBLEM DESCRIPTION:
    The compiler abend when compiling the test case with -O3.
    

Problem conclusion

  • The compiler has been fixed by adding the appropriate handling
    code for the abend.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77656

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-10-28

  • Closed date

    2013-10-28

  • Last modified date

    2013-10-28

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

    IV37998

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5725C7300

Applicable component levels



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 12.1

Reference #: LI77656

Modified date: 28 October 2013