CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan

2020-09-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Sep 11 09:01:41 UTC 2020

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_common.cc

Log Message:
__mips64 does not mean 64 bit address space.  also check _LP64.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.7 -r1.2 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_common.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_common.cc
diff -u src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_common.cc:1.1.1.7 src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_common.cc:1.2
--- src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_common.cc:1.1.1.7	Sat Sep  5 07:52:57 2020
+++ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_common.cc	Fri Sep 11 09:01:41 2020
@@ -135,7 +135,7 @@ static inline bool CanBeAHeapPointer(upt
 #if defined(__x86_64__)
   // Accept only canonical form user-space addresses.
   return ((p >> 47) == 0);
-#elif defined(__mips64)
+#elif defined(__mips64) && defined(_LP64)
   return ((p >> 40) == 0);
 #elif defined(__aarch64__)
   unsigned runtimeVMA =



CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan

2018-06-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jun 27 15:56:30 UTC 2018

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_interceptors.cc

Log Message:
use the proper types for operator new


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc
diff -u src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc:1.1.1.2 src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc:1.2
--- src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc:1.1.1.2	Thu Feb  1 20:58:47 2018
+++ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc	Wed Jun 27 11:56:30 2018
@@ -149,13 +149,13 @@ INTERCEPTOR(void, cfree, void *p) ALIAS(
   return Allocate(stack, size, 1, kAlwaysClearMemory);
 
 INTERCEPTOR_ATTRIBUTE
-void *operator new(uptr size) { OPERATOR_NEW_BODY; }
+void *operator new(size_t size) { OPERATOR_NEW_BODY; }
 INTERCEPTOR_ATTRIBUTE
-void *operator new[](uptr size) { OPERATOR_NEW_BODY; }
+void *operator new[](size_t size) { OPERATOR_NEW_BODY; }
 INTERCEPTOR_ATTRIBUTE
-void *operator new(uptr size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
+void *operator new(size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
 INTERCEPTOR_ATTRIBUTE
-void *operator new[](uptr size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
+void *operator new[](size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
 
 #define OPERATOR_DELETE_BODY \
   ENSURE_LSAN_INITED;\