IBM Support

IV40580: INCONSISTENT PROFILING DATA FOUND IN PDF1 AND PDF2

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following test case shows that the compiler is
    unnecessarily ignoring PDF information with the warning message.
    
    508: TEST1>cat test1.C
    #include <cstdio>
    
    int foo1() { return printf("foo1\n");}
    int foo2() { return printf("foo2\n");}
    int foo3() { return printf("foo3\n");}
    int fooN() { return printf("fooN\n");}
    
    int main() {
    
      int i;
    
      for (i=0; i<100000; i++) {
        switch (i%17) {
        case 1: foo1();
          break;
        case 2: foo2();
          break;
        case 3: foo3();
          break;
        case 18:
          goto bye;
        default: fooN();
        }
      }
     bye:
      return 0;
    }
    509: TEST1>xlC -qpdf1 -O test1.C
    510: TEST1>./a.out >/dev/null
    511: TEST1>xlC -qpdf2 -qnoipa -O test1.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 be ignored for
    function "main".
    

Local fix

  • Use -qxflag=nunsswe
    

Problem summary

  • PROBLEM DESCRIPTION: The synchronization point between PDF1
    compile and PDF2(NOIPA) compile is different, which causes the
    compiler to falsely identify 'main' as a modified function (ie.
    it thinks the source has changed for that function).
    
    USERS AFFECTED: Users of Compile-time PDF.
    

Problem conclusion

  • The problem is fixed. Apply available service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV40580

  • Reported component name

    XL C/C++ AIX

  • Reported component ID

    5724X1300

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-04-24

  • Closed date

    2013-08-13

  • Last modified date

    2013-08-13

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

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

    IV49630 LI77643

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5724X1200

Applicable component levels

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1"}]

Document Information

Modified date:
03 October 2021