Gabe Black has submitted this change. (
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
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35939
Tested-by: kokoro <[email protected]>
Maintainer: Gabe Black <[email protected]>
Reviewed-by: Nikos Nikoleris <[email protected]>
---
M src/base/compiler.hh
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Nikos Nikoleris: Looks good to me, approved
Gabe Black: Looks good to me, approved
kokoro: Regressions pass
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: 4
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s