IBM Support

IV75526: __BCOPY() FUNCTION DEFINITION IN BUILTINS.H MISMATCH WITH COMPILER REFERENCE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In the compiler reference for xlC __bcopy is defined as
    
    void __bcopy(const void* src, void* dest, size_t n);
    
    However the following errors are observed:
    
    : 1540-0256 (S) A parameter of type "char *" cannot be
    initialized with an expression of type "short *".
    : 1540-1205 (I) The error occurred while converting to parameter
    1 of "__bcopy(char *, char *, int)".
    
    which is due to that in /usr/vacpp/include/builtins.h __bcopy()
    is defined as
    
    __builtinDecl void __bcopy(char *, char *, int);
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users of the built-in function __bcopy are affected by this
    issue.
    
    PROBLEM DESCRIPTION:
    Declaration of built-in function __bcopy differs from the
    documentation.
    The documentation states the parameter types to be void*, void*
    and size_t, while it is actually declared to take char*, char*,
    and int.
    This results in a severe error for valid (according to the
    documentation) calls to __copy with non char pointer argument
    types.
    

Problem conclusion

  • The declaration of __bcopy has been updated in the C and C++
    front ends to match with the documentation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV75526

  • 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

    2015-07-28

  • Closed date

    2015-07-28

  • Last modified date

    2015-07-28

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

    IV71285

  • 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

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"13.1","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Document Information

Modified date:
19 August 2024