Jakub's r13-6441-gdbeccab7a1f5dc fix for PR tree-optimization/108988 has fixed this failing analyzer test.
Successfully tested on x86_64-pc-linux-gnu. Pushed to trunk as r13-6465-gd3ef73867e3f70. gcc/testsuite/ChangeLog: PR tree-optimization/108988 * gcc.dg/analyzer/pr99716-1.c (test_2): Remove xfail. Signed-off-by: David Malcolm <dmalc...@redhat.com> --- gcc/testsuite/gcc.dg/analyzer/pr99716-1.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.dg/analyzer/pr99716-1.c b/gcc/testsuite/gcc.dg/analyzer/pr99716-1.c index 4fae368f321..2ccdcc73a5c 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr99716-1.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr99716-1.c @@ -27,11 +27,7 @@ test_2 (void) 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; -- 2.26.3