IBM Support

IV97494: LONG COMPILE TIME WITH -QHOT AND PRINTF STATEMENTS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When trying to compile a test case which has a lot of printf
    statements and using -qhot, the compile time with V13.1 goes up
    drastically.
    
    
    ===== COMPILE COMMAND:
    xlc -qhaltonmsg=1506-304 -qlanglvl=extc99 -g5 -q64 -qinfo=pro
    -brtl -qarch=pwr8 -qtune=pwr8:balanced  -O2 -qhot -qcpluscmt
    -qchars=signed -qhalt=e -qcheck=all -DSERVICE_MODULE
    -DUSE_TCACHE -DTCACHE_ON  -DGLOBALCB -DAUTOFREECB -DTRACE
    -DDEBUG -DTMAX5 -D__PTHREAD_STATIC test.c
    
    ===== TESTCASE:
    A testcase with 100,000 printf calls
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users who have a lot of printf statemetns and who make use of
    -qhot maybe affected by this issue.
    
    PROBLEM DESCRIPTION:
    An internal function recursively collects information about
    every basic code block; which ends up taking a signficant amount
    of time.
    

Problem conclusion

  • A hard limit has been implemented for such recursive calls;
    which now reduces the time.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV97494

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-06-28

  • Closed date

    2017-06-28

  • Last modified date

    2017-06-28

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

  • 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

  • RD10 PSY

       UP



Document information

More support for: XL C for AIX
Compiler

Software version: 13.1

Reference #: IV97494

Modified date: 28 June 2017