Module Name: src Committed By: rin Date: Tue Sep 24 11:13:41 UTC 2024
Modified Files: src/sys/arch/atari/stand/tostools/libtos: Makefile Log Message: atari: libtos: Silence GCC12 -Warray-bounds for sysinfo.c ADDR_* defined in tosdefs.h are in the 0-th page, even if 4KB page, i.e., [0, 0x1000). This causes -Warray-bounds for GCC12 and later. Fix atari build with GCC12. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/atari/stand/tostools/libtos/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/atari/stand/tostools/libtos/Makefile diff -u src/sys/arch/atari/stand/tostools/libtos/Makefile:1.5 src/sys/arch/atari/stand/tostools/libtos/Makefile:1.6 --- src/sys/arch/atari/stand/tostools/libtos/Makefile:1.5 Fri Mar 22 21:27:58 2002 +++ src/sys/arch/atari/stand/tostools/libtos/Makefile Tue Sep 24 11:13:41 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2002/03/22 21:27:58 leo Exp $ +# $NetBSD: Makefile,v 1.6 2024/09/24 11:13:41 rin Exp $ # LIB = libtos.a @@ -12,3 +12,9 @@ include ../Makefile.inc ${LIB}: ${OBJS} @${RM} ${LIB} ${AR} ${LIB} ${OBJS} + +.if ${HAVE_GCC:U0} >= 12 +# ADDR_* defined in tosdefs.h are in the 0-th page, even if 4KB page, +# i.e., [0, 0x1000). This causes -Warray-bounds for GCC12 and later. +COPTS.sysinfo.c+= -Wno-error=array-bounds +.endif