Module Name: src Committed By: mrg Date: Sun Jun 30 20:40:04 UTC 2024
Modified Files: src/external/apache2/llvm/lib/libLLVMCodeGen: Makefile Log Message: apply some -Wno-stringop-overread to fix build with GCC 12.4.0. this warning-as-error happens with MachineDominators.cpp: usr/include/g++/bits/stl_algobase.h:434:30: error: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' r eading between 9 and 9223372036854775807 bytes from a region of size 8 [-Werror=stringop-overread] 434 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/apache2/llvm/lib/libLLVMCodeGen/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/apache2/llvm/lib/libLLVMCodeGen/Makefile diff -u src/external/apache2/llvm/lib/libLLVMCodeGen/Makefile:1.2 src/external/apache2/llvm/lib/libLLVMCodeGen/Makefile:1.3 --- src/external/apache2/llvm/lib/libLLVMCodeGen/Makefile:1.2 Sun May 30 01:56:51 2021 +++ src/external/apache2/llvm/lib/libLLVMCodeGen/Makefile Sun Jun 30 20:40:04 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2021/05/30 01:56:51 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2024/06/30 20:40:04 mrg Exp $ LIB= LLVMCodeGen @@ -206,3 +206,5 @@ SRCS+= AggressiveAntiDepBreaker.cpp \ .else .include <bsd.lib.mk> .endif + +CWARNFLAGS.gcc+= ${CC_WNO_STRINGOP_OVERREAD}