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

            Bug ID: 68787
           Summary: fipa-pta to interpret restrict
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Consider this test-case:
...
static void __attribute__((noinline, noclone))
bar (int *a, int * b)
{
  *a = 1;
  *b = 2;
  *a = *a + 1;
}

void
foo (int *__restrict__ a, int *__restrict__ b)
{
  bar (a, b);
}
...

This example is not optimized with -fipa-pta. The interprocedural points-to
analysis ignores restrict atm.

Reply via email to