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

            Bug ID: 67673
           Summary: support restrict pointer to restrict pointer
           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: ---

The test-case gcc/testsuite/g++.dg/tree-ssa/restrict2.C contains an xfail:
...
struct S { int *__restrict p; int q; };

int
f5 (S *__restrict x, S *__restrict y)
{
  x->p[0] = 5;
  y->p[0] = 0;
// We might handle this some day                                                
// { dg-final { scan-tree-dump-times "return 5" 1 "optimized" { xfail *-*-* } }
}
  return x->p[0];
}
...

See also https://gcc.gnu.org/ml/gcc-patches/2011-09/msg01466.html .

Reply via email to