Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/libsanitizer more portability fixes.



details:   https://anonhg.NetBSD.org/src/rev/3e7780a8ec50
branches:  trunk
changeset: 333191:3e7780a8ec50
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 22 21:19:59 2014 +0000

description:
more portability fixes.

diffstat:

 external/gpl3/gcc/dist/libsanitizer/configure.tgt                              |  7 ++++++-
 external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h |  6 +++++-
 external/gpl3/gcc/dist/libsanitizer/tsan/tsan_symbolize_addr2line_linux.cc     |  2 +-
 3 files changed, 12 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r d34d9d2b07d1 -r 3e7780a8ec50 external/gpl3/gcc/dist/libsanitizer/configure.tgt
--- a/external/gpl3/gcc/dist/libsanitizer/configure.tgt Wed Oct 22 20:50:20 2014 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/configure.tgt Wed Oct 22 21:19:59 2014 +0000
@@ -21,7 +21,12 @@
 # Filter out unsupported systems.
 case "${target}" in
   *-netbsd*)
-       # XXX: No TSAN support yet
+       # There is only glue for amd64
+       case "${target}" in
+         x86_64-*)
+           TSAN_SUPPORTED=yes
+           ;;
+       esac
        ;;
   x86_64-*-linux* | i?86-*-linux*)
        if test x$ac_cv_sizeof_void_p = x8; then
diff -r d34d9d2b07d1 -r 3e7780a8ec50 external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h
--- a/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h    Wed Oct 22 20:50:20 2014 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h    Wed Oct 22 21:19:59 2014 +0000
@@ -116,7 +116,11 @@
 # define USED
 # define PREFETCH(x) /* _mm_prefetch(x, _MM_HINT_NTA) */
 #else  // _MSC_VER
-# define ALWAYS_INLINE __attribute__((always_inline))
+# ifdef __NetBSD__
+#  define ALWAYS_INLINE // __attribute__((always_inline))
+# else
+#  define ALWAYS_INLINE __attribute__((always_inline))
+# endif
 # define ALIAS(x) __attribute__((alias(x)))
 # define ALIGNED(x) __attribute__((aligned(x)))
 # define FORMAT(f, a)  __attribute__((format(printf, f, a)))
diff -r d34d9d2b07d1 -r 3e7780a8ec50 external/gpl3/gcc/dist/libsanitizer/tsan/tsan_symbolize_addr2line_linux.cc
--- a/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_symbolize_addr2line_linux.cc        Wed Oct 22 20:50:20 2014 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_symbolize_addr2line_linux.cc        Wed Oct 22 21:19:59 2014 +0000
@@ -20,7 +20,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <link.h>
-#include <linux/limits.h>
+#include <limits.h>
 #include <sys/types.h>
 
 namespace __tsan {



Home | Main Index | Thread Index | Old Index