On Fri, Jun 29, 2018 at 09:11:39AM -0600, Jeff Law wrote:
> > I checked all GCC's config logs and although there are 543
> > instances of the -Wbuiltin-declaration-mismatch warning in
> > an x86_64-linux build, none of them is an error and
> > the number is the same as before the patch.
> That's both depressing and promising at the same time.  Depressing
> there's so many, promising that none trigger an error.
> 
> I wonder if stepping forward to a more modern version of autoconf is
> going to help here and if we should be feeding them updates to make this
> kind of stuff less pervasive, at least in standard autoconf tests.

For autoconf, the problem is that the tests usually scan for any compiler
messages, so even a warning results in test failure.
Even current autoconf for AC_CHECK_FUNCS declares
#ifdef __cplusplus
extern "C"
#endif
char whatever();

and in main body does return whatever();, so if we start warning on this if
we haven't warned before, then it might be a problem.

        Jakub

Reply via email to