base: Add some error handling to compiler.hh.
authorGabe Black <gabeblack@google.com>
Tue, 29 Sep 2020 01:48:01 +0000 (18:48 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 1 Oct 2020 17:03:49 +0000 (17:03 +0000)
commite783e4c4e25bbd9e04408f305284916679d1a30f
treedc2383ee48cf99bcece66c672b93615a0976e2c5
parentc0ae17c5d4c920a71080255aa2852e158d852d3c
base: Add some error handling to compiler.hh.

Rather than just leaving some macros undefined if none of the scenarios
we checked for match, we should report an error so it's clear what
happened. Otherwise the places the macros are used will just not compile
properly, or worse will silently not work correctly.

Change-Id: Ie010d6b6d1b6a1496a45d9ebc0d75d1c804df12f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35275
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/compiler.hh