Nikos Nikoleris has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/28252 )

Change subject: arch-arm: Remove alignment specified from alias declararions
......................................................................

arch-arm: Remove alignment specified from alias declararions

This causes a compilation error on MacOS and it's unclear whether it
should be allowed in the first place. In addition, it doesn't seem to
be used at the moment.

https://stackoverflow.com/questions/15788947/where-can-i-use-alignas-in-c11

Change-Id: Icae4b21de62d69efe4937bdf9a51a473a5323acb
Signed-off-by: Nikos Nikoleris <nikos.nikole...@arm.com>
---
M src/arch/arm/aapcs64.hh
1 file changed, 1 insertion(+), 2 deletions(-)



diff --git a/src/arch/arm/aapcs64.hh b/src/arch/arm/aapcs64.hh
index 4dff86a..d2e45a9 100644
--- a/src/arch/arm/aapcs64.hh
+++ b/src/arch/arm/aapcs64.hh
@@ -74,8 +74,7 @@
 // appropriate alignment requirement.

 template <typename T, std::size_t count, typename Enabled=void>
-using Aapcs64ShortVectorCandidate =
-    alignas(sizeof(T) * count) uint8_t [sizeof(T) * count];
+using Aapcs64ShortVectorCandidate = uint8_t [sizeof(T) * count];

 template <typename T, std::size_t count>
 using Aapcs64ShortVector = Aapcs64ShortVectorCandidate<T, count,

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/28252
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Icae4b21de62d69efe4937bdf9a51a473a5323acb
Gerrit-Change-Number: 28252
Gerrit-PatchSet: 1
Gerrit-Owner: Nikos Nikoleris <nikos.nikole...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to