forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-util/valgrind: fix tests w/ gcc 13
Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
5ee2ced
commit 47e9795
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
https://sourceware.org/git/?p=valgrind.git;a=commit;h=dee222c6e818ca43ac45952fc8a020f445d98781 | ||
https://sourceware.org/git/?p=valgrind.git;a=commit;h=3155bacf26237beb65edb4a572402492b2f1b050 | ||
|
||
From dee222c6e818ca43ac45952fc8a020f445d98781 Mon Sep 17 00:00:00 2001 | ||
From: Paul Floyd <[email protected]> | ||
Date: Fri, 27 Jan 2023 08:30:41 +0100 | ||
Subject: [PATCH] Bug 464859 - Build failures with GCC-13 (drd tsan_unittest) | ||
|
||
Patch submitted by | ||
Khem Raj <[email protected]> | ||
--- a/drd/tests/tsan_thread_wrappers_pthread.h | ||
+++ b/drd/tests/tsan_thread_wrappers_pthread.h | ||
@@ -55,6 +55,7 @@ | ||
#define NO_TLS | ||
#endif | ||
|
||
+#include <cstdint> | ||
#include <string> | ||
using namespace std; | ||
|
||
-- | ||
2.31.1 | ||
|
||
From 3155bacf26237beb65edb4a572402492b2f1b050 Mon Sep 17 00:00:00 2001 | ||
From: Mark Wielaard <[email protected]> | ||
Date: Sat, 28 Jan 2023 21:53:44 +0100 | ||
Subject: [PATCH] tsan_thread_wrappers_pthread.h: Only include cstdint for | ||
C++11 | ||
|
||
Fixes build on older g++. | ||
--- a/drd/tests/tsan_thread_wrappers_pthread.h | ||
+++ b/drd/tests/tsan_thread_wrappers_pthread.h | ||
@@ -55,7 +55,9 @@ | ||
#define NO_TLS | ||
#endif | ||
|
||
+#if __cplusplus >= 201103L | ||
#include <cstdint> | ||
+#endif | ||
#include <string> | ||
using namespace std; | ||
|
||
-- | ||
2.31.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters