PR middle-end/93926 - ICE on a built-in redeclaration returning an integer instead...
authorMartin Sebor <msebor@redhat.com>
Mon, 2 Mar 2020 00:52:44 +0000 (17:52 -0700)
committerMartin Sebor <msebor@redhat.com>
Mon, 2 Mar 2020 00:52:44 +0000 (17:52 -0700)
commit726e292d410fc29812a95eb6d88a2ceb82d9080d
treed8e00fcfab164e45d1902b71875a8813a3a01f2d
parenta499c2f899961f2c09db2dc33e60b66e8d770092
PR middle-end/93926 - ICE on a built-in redeclaration returning an integer instead of a pointer

gcc/c/ChangeLog:

PR middle-end/93926
* c-decl.c (types_close_enough_to_match): New function.
(match_builtin_function_types):
(diagnose_mismatched_decls): Add missing inform call to a warning.

gcc/testsuite/ChangeLog:

PR middle-end/93926
* gcc.dg/Wbuiltin-declaration-mismatch-13.c: New test.
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-13.c [new file with mode: 0644]