Bug 511974

Summary: Valgrind fails to build with GCC 16 (x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-Wno-alloc-size-larger-than=18446744073709551615’)
Product: [Developer tools] valgrind Reporter: Sam James <sam>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.24 GIT   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sam James 2025-11-11 23:41:30 UTC
With GCC trunk (see r16-5128-g5b276d38c2fdd7), -Wno-alloc-size-larger-than=XYZ is rejected, as it doesn't make sense, and I get a build failure for Valgrind trunk:
```
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-Wno-alloc-size-larger-than=18446744073709551615’
make[5]: *** [Makefile:3519: accounting-accounting.o] Error 1
```

commit ca61eb9faf603e08146f3f4273c942bcf467fc84
Author:     Paul Floyd <pjfloyd@wanadoo.fr>
AuthorDate: Mon Oct 13 20:50:10 2025 +0200
Commit:     Paul Floyd <pjfloyd@wanadoo.fr>
CommitDate: Mon Oct 13 20:50:10 2025 +0200

    configure: correct the value for -Wno-alloc-size-larger-than

commit ed4463ff3f1b5d15a5ad8962b36e525e6a89cfb4
Author:     Paul Floyd <pjfloyd@wanadoo.fr>
AuthorDate: Mon Oct 13 13:02:52 2025 +0200
Commit:     Paul Floyd <pjfloyd@wanadoo.fr>
CommitDate: Mon Oct 13 13:02:52 2025 +0200

    configure: hard code -Wno-alloc-size-larger-than=2147483647

    Should be OK for both 32bit and 64bit.
    Remove AC_GCC_WARNING_SUBST_NO_VAL - always need to set a value.
Comment 1 Sam James 2025-11-11 23:41:36 UTC

*** This bug has been marked as a duplicate of bug 511972 ***