IBM Support

LI74675: PRAGMA MAP CAUSES UNEXPECTED INFORMATIONAL MESSAGE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Compiling the following codes:
    
    int stat (char __file, int __buf) _Pragma("map(stat,
    \"stat64\")");
    int stat64 (char __file, char __buf);
    
    causes unexpected informational message:
    
    ... 1506-377 (I) The type "int" of parameter 2 differs from the
    previous type "char"...
    

Local fix

  • Use -qsuppress=1506-377
    

Problem summary

  • USERS AFFECTED:
    Users or pragma map who map a symbol to another with different
    type.
    
    PROBLEM DESCRIPTION:
    Compiler issues some info messages when symbols being mapped
    with pragma map do not have the same type.
    

Problem conclusion

  • C++ does not check that the types are compatible with pragma
    map because it is the user's responsiblity to map a symbol to
    one with the same type. However, because this diagnostic may
    still be useful for some users, C will do type checking for
    pragma map only under -qinfo=gen.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI74675

  • Reported component name

    XL C/C++ AE BG/

  • Reported component ID

    5799HJE00

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-06-09

  • Closed date

    2009-09-21

  • Last modified date

    2009-09-21

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

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

    LI75708

Fix information

  • Fixed component name

    XL C/C++ AE BG/

  • Fixed component ID

    5799HJE00

Applicable component levels

  • R900 PSY

       UP

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

Document Information

Modified date:
17 October 2021