GCC has started to warn about memory accesses under address 0x1000.
Tweak it to 0x400 for stand/i386 to avoid warnings for access to BIOS
data area memory and above but still retain most of the warning value.
Details
Details
- Reviewers
manu jhb imp dab - Commits
- rGc2fa94ad0868: stand/i386: quiet gcc -Warray-bounds
env CROSS_TOOLCHAIN=amd64-gcc14 make buildworld
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
So, I realized that --param min-pagesize was introduced in gcc 11.3 and this will cause an error for older gcc. @imp is it still gcc 9 that's the minimum? I can either wrap this with something like
.if ${COMPILER_TYPE} == "gcc" and ${COMPILER_VERSION} >= 110300
CFLAGS.gcc+= --param min-pagesize=1024
.endifor just drop this as not worth the ugliness.
Comment Actions
We have gcc12 in Jenkins as the oldest. And it doesn't work most of the time. Anything older is completely unsupported, so you don't need to do the gymnastics you describe here.
https://docs.freebsd.org/en/articles/committers-guide/#_current_compiler_versions
Kinda documents this.