IBM Support

IJ02718: FUNCTION CALL NOT USING -QPIC=LARGE TOC ACCESS

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

  • In a large application with more than 64k TOC data the
    -qpic=large option is used to generate two instructions for
    each TOC access to avoid TOC overflow code-fixes by the linker.
    
    In most cases the two instruction TOC access is used, however in
    certain cases related to compiler-generated C++ helper
    functions, the old one instruction TOC access is used, causing
    the linker to generate fix-up code and issue a warning:
    
    
       ld: 0711-783 WARNING: TOC overflow. TOC size: 160240
       Maximum size: 65536
         Extra instructions are being generated for each reference
         to a TOC symbol if the symbol is in the TOC overflow area.
    

Local fix

Problem summary

  • PROBLEM DESCRIPTION:
    When building -qpic=large large TOC code, the compiler is not
    generating the correct two instruction sequence for
    compiler-generated thunk functions.
    
    USERS AFFECTED:
    Users compiling with -qpic=large
    

Problem conclusion

  • The problem has been fixed, and the correct code sequence is
    now generated.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ02718

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    D13

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-12-20

  • Closed date

    2018-08-02

  • Last modified date

    2018-08-02

  • 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



Document information

More support for: XL C for AIX
Compiler

Software version: D13

Reference #: IJ02718

Modified date: 02 August 2018