Fixes are available
XL C/C++ for AIX Fix Pack 4 (July 2015 PTF) for 13.1
XL C for AIX Fix Pack 5 (November 2015 Update) for 13.1
XL C/C++ for AIX Fix Pack 5 (November 2015 PTF) for 13.1
XL C/C++ for AIX Fix Pack 6 (February 2016 PTF) for 13.1
XL C for AIX Fix Pack 6 (February 2016 Update) for 13.1
XL C for AIX Fix Pack 7 (May 2016 Update) for 13.1
XL C/C++ for AIX Fix Pack 7 (May 2016 PTF) for 13.1
XL C for AIX Fix Pack 8 (August 2016 Update) for 13.1
XL C/C++ for AIX Fix Pack 8 (August 2016 PTF) for 13.1
XL C for AIX Fix Pack 9 (June 2017 Update) for 13.1
XL C/C++ for AIX Fix Pack 9 (June 2017 PTF) for 13.1
XL C for AIX Fix Pack 10 (February 2018 Update) for 13.1
XL C/C++ for AIX Fix Pack 10 (February 2018 PTF) for 13.1
XL C for AIX Fix Pack 4 (July 2015 PTF) for 13.1
XL C/C++ for AIX Fix Pack 11 (November 2018 PTF) for 13.1
XL C for AIX Fix Pack 11 (November 2018) for 13.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
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:
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
Document Information
Modified date:
19 August 2024