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
C99 added new specifiers to the strftime() function, including the "%G" specifier for Week-based year. The XL C/C++ options qinfo/qformat flag incorrect specifier usage and is incorrectly flagging the '%G' specifier. === TEST CASE === #include <stdio.h> #include <time.h> int main() { const time_t mytime=(time_t)639192213; // 04/04/1990 1:23:33 struct tm *now = gmtime(&mytime); char hour_sig[400] = {0}; strftime(hour_sig, sizeof(hour_sig) - 1, "G = %G m = %m d = %d H = %H", now); printf("%s\n",hour_sig); } $ xlc -qinfo=all -qformat=all test.c ... "test.c", line 8.46: 1506-1184 (I) This platform does not support the use of a non-portable extension character 'G' in the format. ...
Local fix
Problem summary
PROBLEM DESCRIPTION: The compiler is incorrectly flagging valid usage of C99 specifiers to the strftime() function. USERS AFFECTED: Users of the C99 specifiers with the strftime() function.
Problem conclusion
The list of C99 specifiers for strftime() are now accepted by the compiler and the informational message is no longer output.
Temporary fix
Comments
APAR Information
APAR number
IV71963
Reported component name
XL C/C++ FOR AI
Reported component ID
5725C7200
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-04-09
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:
02 October 2021