IBM Support

LI77643: 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

    LI77643

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-10-28

  • Closed date

    2013-10-28

  • Last modified date

    2013-10-28

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

    IV40580

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5725C7300

Applicable component levels



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 12.1

Reference #: LI77643

Modified date: 28 October 2013