Page MenuHomeFreeBSD

kern.mk: -Wno-error=stringop-overflow for gcc due to false positives
ClosedPublic

Authored by rlibby on Nov 28 2019, 11:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 4:03 AM
Unknown Object (File)
Sep 1 2023, 1:13 PM
Unknown Object (File)
Sep 1 2023, 1:11 PM
Unknown Object (File)
Sep 1 2023, 1:10 PM
Unknown Object (File)
Sep 1 2023, 1:01 PM
Unknown Object (File)
Aug 16 2023, 1:02 AM
Unknown Object (File)
Jun 30 2023, 7:02 AM
Unknown Object (File)
Jun 30 2023, 7:00 AM
Subscribers

Details

Summary

Demote gcc's Wstringop-overflow to Wno-error due to false positives.
E.g. the riscv64 build with gcc 8.3.0 has been failing with this warning
since r355062 [1]. A bug has been filed with gcc [2]. The warning was
first introduced in gcc 7.1 [3]. Hopefully we can avoiding suppressing
the warning in future gcc versions.

[1] https://ci.freebsd.org/job/FreeBSD-head-riscv64-build/16691/
[2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92718
[3] https://gcc.gnu.org/wiki/WarningHistory

Test Plan

make CROSS_TOOLCHAIN=riscv64-gcc TARGET=riscv TARGET_ARCH=riscv64 buildkernel KERNCONF=GENERIC

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable