Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/35939 )
Change subject: base: Add an M5_WEAK macro to compiler.hh.
......................................................................
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
---
M src/base/compiler.hh
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/base/compiler.hh b/src/base/compiler.hh
index ead1507..4565143 100644
--- a/src/base/compiler.hh
+++ b/src/base/compiler.hh
@@ -97,6 +97,7 @@
// Set the visibility of a symbol.
# define M5_PUBLIC [[gnu:visibility("default")]]
# define M5_LOCAL [[gnu::visibility("hidden")]]
+# define M5_WEAK [[gnu::weak]]
// Marker for what should be an unreachable point in the code.
# define M5_UNREACHABLE __builtin_unreachable()
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/35939
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: I1add373d648bbca24feab63420a9d87363646b6a
Gerrit-Change-Number: 35939
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.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