Fixes are available
APAR status
Closed as program error.
Error description
The following test case has two func() functions taking in different parameters defined in two different files func.c and foo.c. main.c uses the func() defined from func.c. foo.c's definition is not used. Using pdf1 and pdf2 to create pdf-optimized objects, with V9 and V10.1 compiler, compilation stops for compiling foo.c with error in the second pass. foo.c: 1586-465 (S) Profiling data matching that from the pdf1 phase could not be found for function "func" in file "._pdf". Source files and/or compilation options may differ between the pdf1 and pdf2 phases. With V11.1 compiler compilation continues with warnings. main.c: 1586-475 (W) New definition of function "main" is inconsistent with profiling data found in file "._pdf" from the pdf1 phase. Source files and/or compilation options may differ between the pdf1 and pdf2 phases. PDF Information will gnored for function "main". func.c: foo.c: 1586-475 (W) New definition of function "func" is inconsistent with profiling data found in file "._pdf" from the pdf1 phase. Source files and/or compilation options may differ between the pdf1 and pdf2 phases. PDF Information will gnored for function "func". ============ TEST CASE: ============ ===== TESTCASE: $ cat main.c void func(int a); int main(int argc, char *argv[]) { func(atoi(argv[1])); } $ cat func.c void func(int i) { if ( i == 0 ) printf("Arun\n"); else printf("Sar\n"); } $ cat foo.c int func() { printf("IBM\n"); } rm -f *.o mytest_v9 ._pdf $XLC -q64 -qpdf1 -O3 -c main.c func.c foo.c $XLC -q64 -qpdf1 -O3 -o mytest_v9 main.o func.o ./mytest_v9 0 ./mytest_v9 1 ./mytest_v9 2 $XLC -q64 -qpdf2 -qnoipa -O3 -c main.c func.c foo.c
Local fix
N/A
Problem summary
PROBLEM DESCRIPTION: In V9, V10, misleading severe error with PDF2 USERS AFFECTED: XL C/C++ V9, V10, V11 users who use Pass1 PDF2 (-qnoipa -qpdf2)
Problem conclusion
Problem is fixed. Only warning message against foo.c is now emitted.
Temporary fix
Comments
APAR Information
APAR number
LI75881
Reported component name
XL C/C++ RHEL52
Reported component ID
5724U8310
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-01-27
Closed date
2011-01-27
Last modified date
2011-01-27
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/C++ RHEL52
Fixed component ID
5724U8310
Applicable component levels
RA10 PSN IZ84969
UP06/09/13
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Document Information
Modified date:
15 October 2021