IBM Support

PI18974: INCORRECT JUMP LABEL WITH OPTIMIZATION

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling a Metal C application with optmization enabled, a
    goto jump label ADCON symbol name is generated incorrectly,
    leading to an 'undefined symbol' error when assembling.  For
    example:
    
    
    ==== Metal C code ====
    my_goto_label:       // goto jump label
    ...
    goto my_goto_label;  // jump to label
    
    
    ==== Assembly code ====
         BRE   my_goto_label@1671
         MVC   8(4,13),#NAB_23
         BRASL 14,@@CCN@1031
    my_goto_label@1671 DS 0H
    
    
    ==== Assembly ADCON section ====
    DC    A(my_goto_label@23-@@LIT@23)
    
    
    ==== Error during assemble ====
    99393          DC   A(my_goto_label@23-@@LIT@23)
    ASMA044E Undefined symbol - my_goto_label@23
    

Local fix

  • Do not use optimization.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: z/OS V2R1 users using METAL OPT with         *
    *                 switch statements and user labels.           *
    ****************************************************************
    * PROBLEM DESCRIPTION: Metal C jump table entry has undefined  *
    *                      labels.                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Apply provided service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI18974

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    790

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-05-30

  • Closed date

    2014-06-04

  • Last modified date

    2016-09-13

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

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

Modules/Macros

  • CCNETBY
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R790 PSY UI18560

       UP14/07/17 P F407

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"790","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSQKCWV","label":"IBM C\/C++ for MVS\/ESA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"790","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
15 August 2024