Fixes are available
XL C for AIX Fix Pack 12 (May 2015 PTF) for 12.1
XL C/C++ for AIX Fix Pack 12 (May 2015 PTF) for 12.1
XL C/C++ for AIX Fix Pack 13 (August 2015 Update) for 12.1
XL C/C++ for AIX Fix Pack 14 (December 2015 Update) for 12.1
XL C for AIX Fix Pack 15 (April 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 15 (April 2016 Update) for 12.1
XL C for AIX Fix Pack 16 (July 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 16 (July 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 17 (November 2016 Update) for 12.1
XL C for AIX Fix Pack 17 (November 2016 Update) for 12.1
XL C for AIX Fix Pack 18 (February 2017 Update) for 12.1
XL C/C++ for AIX Fix Pack 18 (February 2017 Update) for 12.1
XL C for AIX Fix Pack 19 (August 2017 Update) for 12.1
XL C/C++ for AIX Fix Pack 19 (August 2017 Update) for 12.1
XL C for AIX Fix Pack 20 (March 2018 Update) for 12.1
XL C/C++ for AIX Fix Pack 20 (March 2018 Update) for 12.1
XL C for AIX Fix Pack 13 (August 2015 Update) for 12.1
XL C for AIX Fix Pack 14 (December 2015 Update) for 12.1
XL C/C++ for AIX Fix Pack 21 (January 2019 Update) for 12.1
XL C for AIX Fix Pack 21 (January 2019 Update) for 12.1
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
IV71285
Reported component name
XL C FOR AIX
Reported component ID
5725C7100
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-03-23
Closed date
2015-05-25
Last modified date
2015-05-25
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
RC10 PSY
UP
Document Information
Modified date:
03 October 2021