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/sanitizer_common Don't p...



details:   https://anonhg.NetBSD.org/src/rev/d293d1106530
branches:  trunk
changeset: 345723:d293d1106530
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 05 16:43:10 2016 +0000

description:
Don't play type games with size_t for NetBSD. It is either 32 bits for ILP32
or 64 bits for LP64.

diffstat:

 external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r 6ab55668e729 -r d293d1106530 external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h
--- a/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h    Sun Jun 05 16:24:34 2016 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_internal_defs.h    Sun Jun 05 16:43:10 2016 +0000
@@ -88,11 +88,16 @@
 #endif
 typedef u64  OFF64_T;
 
+#if SANITIZER_NETBSD
+#include <sys/types.h>
+typedef size_t operator_new_size_type;
+#else
 #if (SANITIZER_WORDSIZE == 64) || SANITIZER_MAC
 typedef uptr operator_new_size_type;
 #else
 typedef u32 operator_new_size_type;
 #endif
+#endif
 }  // namespace __sanitizer
 
 extern "C" {



Home | Main Index | Thread Index | Old Index