public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3033] libsanitizer: Fix Solaris 11.3 compilation of sanitizer_procmaps_solaris.cpp [PR105531]
@ 2022-10-03 14:29 Rainer Orth
0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2022-10-03 14:29 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:77d0627c244f7520bf74ec9cf2a8b69c32b6d30d
commit r13-3033-g77d0627c244f7520bf74ec9cf2a8b69c32b6d30d
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Mon Oct 3 16:28:46 2022 +0200
libsanitizer: Fix Solaris 11.3 compilation of sanitizer_procmaps_solaris.cpp [PR105531]
The latest libsanitizer import broke Solaris 11.3 bootstrap again, due
to an oversight of mine. A fix has been committed upstream
https://reviews.llvm.org/D133556
This patch cherry-picks it. Tested on Solaris 11.3 and 11.4, SPARC and
x86.
2022-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
libsanitizer:
PR sanitizer/105531
* sanitizer_common/sanitizer_procmaps_solaris.cpp: Cherry-pick
llvm-project revision 1cd4d63fb9ab0f04c7151911dde0d58b673823de.
Diff:
---
libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp b/libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp
index 6f43817aedb..eeb49e2afe3 100644
--- a/libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp
+++ b/libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp
@@ -9,6 +9,8 @@
// Information about the process mappings (Solaris-specific parts).
//===----------------------------------------------------------------------===//
+// Before Solaris 11.4, <procfs.h> doesn't work in a largefile environment.
+#undef _FILE_OFFSET_BITS
#include "sanitizer_platform.h"
#if SANITIZER_SOLARIS
# include <fcntl.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-03 14:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-03 14:29 [gcc r13-3033] libsanitizer: Fix Solaris 11.3 compilation of sanitizer_procmaps_solaris.cpp [PR105531] Rainer Orth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).