misc: Wrap __attribute__((aligned())) in a macro in compiler.hh.
authorGabe Black <gabeblack@google.com>
Wed, 14 Oct 2020 08:09:21 +0000 (01:09 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 19 Oct 2020 05:52:57 +0000 (05:52 +0000)
commit215e12b884d634dd4866b8222bd5435a511d4de6
tree1c9665af3843837b05b60ed1bc18c3e5ec2dc157
parent463cb28ca5aa968c194c699a6d3abbe8a37ddc0f
misc: Wrap __attribute__((aligned())) in a macro in compiler.hh.

This attribute is gcc specific (also implemented by clang for
compatibility), and so should be behind a level of abstraction to make
using different compilers easier.

Change-Id: I7495f011f617268dd7a589dc0bcf1b3b7f515046
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35976
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/linux/linux.hh
src/arch/mips/linux/aligned.hh
src/base/compiler.hh
src/base/statistics.hh