systemc: Fix systemc array bound error
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Mon, 20 Jul 2020 23:59:49 +0000 (16:59 -0700)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 22 Jul 2020 20:10:09 +0000 (20:10 +0000)
commit9058c409087c239133135e13e8efb8bfbc429382
treeb9384a5fd9d18a69412f6dc32c3a5e2a3ba166b1
parentb99c31684025d4c730021330173c5829c9ca13fa
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 <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31634
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/systemc/dt/int/SConscript