]> git.ipfire.org Git - thirdparty/gcc.git/commit
Wbuiltin-declaration-mismatch-4.c: accept long long in warning for llp64
authorJonathan Yong <10walls@gmail.com>
Sun, 13 Apr 2025 02:41:36 +0000 (02:41 +0000)
committerJonathan Yong <10walls@gmail.com>
Tue, 15 Apr 2025 11:38:40 +0000 (11:38 +0000)
commit039b566f2f03699676d31b681d1595bddc94a774
tree9f71c8615639bd14ac6826de6a16b2fa0afe0528
parenta591629420b39a44a9232226e662bb8681396384
Wbuiltin-declaration-mismatch-4.c: accept long long in warning for llp64

llp64 targets like mingw-w64 will print:
gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-4.c:80:17: warning: ‘memset’ argument 3 promotes to ‘ptrdiff_t’ {aka ‘long long int’} where ‘long long unsigned int’ is expected in a call to built-in function declared without prototype [-
Wbuiltin-declaration-mismatch]
Change the regex pattern to accept it.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/testsuite/ChangeLog:

* gcc.dg/Wbuiltin-declaration-mismatch-4.c: Make diagnostic
accept long long.
gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-4.c