From 9058c409087c239133135e13e8efb8bfbc429382 Mon Sep 17 00:00:00 2001 From: Hoa Nguyen Date: Mon, 20 Jul 2020 16:59:49 -0700 Subject: [PATCH] systemc: Fix systemc array bound error Currently, gcc 10.0 does not compile gem5 due to an array bound error in sc_unsigned and sc_signed constructors. Previous fix only ignores array-bounds warnings for sc_unsigned.cc and sc_signed for gcc 10.1 onwards. This commit turns the ignoring array-bounds warning flag on for all gcc 10 onwards. JIRA: https://gem5.atlassian.net/browse/GEM5-677. Change-Id: Id65b6d52cef527f62917e09231ff79e2237affd8 Signed-off-by: Hoa Nguyen Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31634 Reviewed-by: Gabe Black Maintainer: Gabe Black Tested-by: kokoro --- src/systemc/dt/int/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemc/dt/int/SConscript b/src/systemc/dt/int/SConscript index 26bb6aeb3..92c0f0711 100644 --- a/src/systemc/dt/int/SConscript +++ b/src/systemc/dt/int/SConscript @@ -28,7 +28,7 @@ Import('*') from m5.util import compareVersions if env['USE_SYSTEMC']: - if main['GCC'] and compareVersions(main['GCC_VERSION'], '10.1') >= 0: + if main['GCC'] and compareVersions(main['GCC_VERSION'], '10.0') >= 0: disable_false_positives = { "CCFLAGS": [ "-Wno-array-bounds", "-Wno-stringop-overflow" ] -- 2.30.2