IBM Support

PH34171: COMPILER NOT GENERATING .S FILE FOR METAL-C WHEN USING -Q"METAL NOOPT" -S

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling the following test case with noopt, the compiler
    does not generate a .s file.
    However, if you use -O2, it does
    
    ===== TESTCASE:
    $$cat test.c
    int f(void*__ptr64 p) {
    return (void*__ptr32)p == p;
    }
    $
    
    
    ===== ACTUAL OUTPUT:
    $ls
    test.c   test2.c
    $xlc test.c -q"METAL NOOPT" -S
    $ls
    test.c   test2.c
    $xlc test.c -q"METAL" -O2 -S
    $ls
    test.c   test.s   test2.c
    $
    
    ===== EXPECTED OUTPUT:
    The .s should be generated at noopt
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: XLC V2R4 Users of METAL, ILP32, and NOOPT    *
    *                 trying to convert __ptr64 to __ptr32         *
    ****************************************************************
    * PROBLEM DESCRIPTION: The .s file may not be generated        *
    ****************************************************************
    * RECOMMENDATION: Install PTF or use workaround                *
    ****************************************************************
    N/A
    

Problem conclusion

  • Install PTF
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH34171

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    7C0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-02-04

  • Closed date

    2021-02-05

  • Last modified date

    2021-04-01

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

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

Modules/Macros

  • CCNECICS CCNECWI  CCNED240 CCNEDSCT CCNEDWRT CCNEFILT CCNEHIFC
    CCNEIPA3 CCNEIPAO CCNEMDEP CCNEOPTP CCNEP    CCNEPP   CCNETBY
    CCNMSGE  CCNMSGT  CCNQIPA
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R7C0 PSY UI73821

       UP21/03/26 P F103

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.

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSTLTF","label":"z\/OS XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7C0"}]

Document Information

Modified date:
02 April 2021