Re: [PATCH] analyzer: Fix tests for glibc 2.35 [PR101081]

2022-02-08 Thread David Malcolm via Gcc-patches
On Fri, 2022-02-04 at 11:35 -0500, Joel Teichroeb via Gcc-patches wrote: > In recent versions of glibc fopen has __attribute__((malloc)). > Since we can not detect wether this attribute is present or not, > we avoid including stdio.h and instead forward declare what we > need in each test. > > Sig

[PATCH] analyzer: Fix tests for glibc 2.35 [PR101081]

2022-02-04 Thread Joel Teichroeb via Gcc-patches
In recent versions of glibc fopen has __attribute__((malloc)). Since we can not detect wether this attribute is present or not, we avoid including stdio.h and instead forward declare what we need in each test. Signed-off-by: Joel Teichroeb --- gcc/testsuite/gcc.dg/analyzer/analyzer-verbosity-2a.