Jakub's
r13-6441-gdbeccab7a1f5dc fix for PR tree-optimization/108988
has fixed this failing analyzer test.
gcc/testsuite/ChangeLog:
PR tree-optimization/108988
* gcc.dg/analyzer/pr99716-1.c (test_2): Remove xfail.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
FILE *fp = fopen ("/tmp/test", "w");
fprintf (fp, "hello");
}
-} /* { dg-warning "leak of FILE 'fp'" "" { xfail *-*-* } } */
-/* TODO: fails on some targets due to fprintf call being optimized to
- __builtin_fwrite with a size argument (idx 2) that fails
- gimple_builtin_call_types_compatible_p, and thus the known_function
- for __builtin_fwrite not being used (PR middle-end/108988). */
+} /* { dg-warning "leak of FILE 'fp'" } */
FILE *fp3;