Module Name: src Committed By: christos Date: Thu Oct 23 17:50:08 UTC 2014
Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_placement_new.h Log Message: stop playing type games, and use the proper type for the placement new operator To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h 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/sanitizer_common/sanitizer_placement_new.h diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h:1.1.1.1 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h:1.2 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h:1.1.1.1 Sat Mar 1 03:41:18 2014 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h Thu Oct 23 13:50:08 2014 @@ -15,6 +15,7 @@ #define SANITIZER_PLACEMENT_NEW_H #include "sanitizer_internal_defs.h" +#include <cstddef> namespace __sanitizer { #if (SANITIZER_WORDSIZE == 64) || defined(__APPLE__) @@ -24,7 +25,7 @@ typedef u32 operator_new_ptr_type; #endif } // namespace __sanitizer -inline void *operator new(__sanitizer::operator_new_ptr_type sz, void *p) { +inline void *operator new(std::size_t sz, void *p) { return p; }