https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86389

            Bug ID: 86389
           Summary: execute FAILs with -fipa-pta
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-*-*

Running target unix/-fipa-pta
FAIL: gfortran.dg/array_constructor_8.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/array_constructor_8.f90   -O3 -g  execution test
FAIL: gfortran.dg/vector_subscript_1.f90   -O1  execution test
FAIL: gfortran.dg/vector_subscript_1.f90   -O2  execution test
FAIL: gfortran.dg/vector_subscript_1.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/vector_subscript_1.f90   -O3 -g  execution test
FAIL: gfortran.dg/vector_subscript_1.f90   -Os  execution test

FAIL: go.test/test/fixedbugs/bug262.go execution,  -O2 -g 
FAIL: go.test/test/fixedbugs/bug286.go execution,  -O2 -g 
FAIL: go.test/test/fixedbugs/bug293.go execution,  -O2 -g 
FAIL: go.test/test/fixedbugs/issue6899.go execution
FAIL: go.test/test/goprint.go execution
FAIL: go.test/test/helloworld.go execution
...

FAIL: 30_threads/call_once/call_once1.cc execution test

most simple is

FAIL: gcc.target/i386/pr85044.c execution test

which can be reduced to the following aborting() with -O -fipa-pta

void callme (void (*callback) (void));

int
main (void)
{
  int ok = 0;
  void callback (void) { ok = 1; }

  callme (&callback);

  if (!ok)
    __builtin_abort ();
  return 0;
}

__attribute__((noinline, noclone))
void
callme (void (*callback) (void))
{
  (*callback) ();
}

Reply via email to