From: Gabe Black Date: Tue, 13 Oct 2020 11:01:00 +0000 (-0700) Subject: systemc: Use the new M5_WEAK macro to hide [[gnu::weak]]. X-Git-Tag: develop-gem5-snapshot~623 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab65f6acc5ccb64299d34ddf5e1ca731d55201f5;p=gem5.git systemc: Use the new M5_WEAK macro to hide [[gnu::weak]]. Other compilers may need to support that macro in other ways. Change-Id: If6ee05ce69c1bfd24108cf0785fac2d7bc259f0a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35940 Tested-by: kokoro Reviewed-by: Nikos Nikoleris Maintainer: Gabe Black --- diff --git a/src/systemc/core/sc_main_fiber.cc b/src/systemc/core/sc_main_fiber.cc index 18646dd19..df804d01b 100644 --- a/src/systemc/core/sc_main_fiber.cc +++ b/src/systemc/core/sc_main_fiber.cc @@ -38,7 +38,7 @@ #include "systemc/utils/report.hh" // A weak symbol to detect if sc_main has been defined, and if so where it is. -[[gnu::weak]] int sc_main(int argc, char *argv[]); +M5_WEAK int sc_main(int argc, char *argv[]); namespace sc_gem5 {