Gabe Black has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/45365 )
Change subject: base: Stop both conditionally and unconditionally including
cmath.
......................................................................
base: Stop both conditionally and unconditionally including cmath.
base/stats/text.cc was both conditionally (in two places) and
unconditionally
including cmath. Once should be enough.
Change-Id: I941dfb8631eb71d1a8b423011022f78d628baa33
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45365
Reviewed-by: Daniel Carvalho <[email protected]>
Maintainer: Gabe Black <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/base/stats/text.cc
1 file changed, 1 insertion(+), 11 deletions(-)
Approvals:
Daniel Carvalho: Looks good to me, approved
Gabe Black: Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc
index 26f1622..718b65c 100644
--- a/src/base/stats/text.cc
+++ b/src/base/stats/text.cc
@@ -42,19 +42,9 @@
#define _GLIBCPP_USE_C99 1
#endif
-#if defined(__sun)
-#include <cmath>
-
-#endif
-
-#include <cassert>
-
-#ifdef __SUNPRO_CC
-#include <cmath>
-
-#endif
#include "base/stats/text.hh"
+#include <cassert>
#include <cmath>
#include <fstream>
#include <iostream>
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45365
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: I941dfb8631eb71d1a8b423011022f78d628baa33
Gerrit-Change-Number: 45365
Gerrit-PatchSet: 2
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: 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