base: Add an M5_WEAK macro to compiler.hh.
authorGabe Black <gabeblack@google.com>
Tue, 13 Oct 2020 10:59:34 +0000 (03:59 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 14 Oct 2020 00:45:54 +0000 (00:45 +0000)
commit1e0bc0df25caa03e18291614d8f8c88e7dc8070c
tree64fd3207c787228fb90a060f5ce0a34dd8f3adb0
parent34c2a5a227b147bc22bfc7314e6411063b0f1ab8
base: Add an M5_WEAK macro to compiler.hh.

On gnu compatible systems, this will be implemented with the
[[gnu::weak]] attribute.

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