Daily bump.
[official-gcc.git] / libsanitizer / ChangeLog
blob2b83bef03146f01c59c553be7dccf2f2fea22660
1 2021-10-08  H.J. Lu  <hjl.tools@gmail.com>
3         PR sanitizer/102632
4         * asan/Makefile.am (AM_CCASFLAGS): New.  Set to $(EXTRA_ASFLAGS).
5         * hwasan/Makefile.am (AM_CCASFLAGS): Likewise.
6         * interception/Makefile.am (AM_CCASFLAGS): Likewise.
7         * lsan/Makefile.am (AM_CCASFLAGS): Likewise.
8         * tsan/Makefile.am (AM_CCASFLAGS): Likewise.
9         * ubsan/Makefile.am (AM_CCASFLAGS): Likewise.
10         * asan/Makefile.in: Regenerate.
11         * hwasan/Makefile.in: Likewise.
12         * interception/Makefile.in: Likewise.
13         * lsan/Makefile.in: Likewise.
14         * tsan/Makefile.in: Likewise.
15         * ubsan/Makefile.in: Likewise.
17 2021-10-06  H.J. Lu  <hjl.tools@gmail.com>
19         * LOCAL_PATCHES: Update to the corresponding revision.
21 2021-10-01  H.J. Lu  <hjl.tools@gmail.com>
23         * LOCAL_PATCHES: Update to the corresponding revision.
25 2021-08-11  Jakub Jelinek  <jakub@redhat.com>
27         * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
28         llvm-project revision faef0d042f523357fe5590e7cb6a8391cf0351a8.
30 2021-08-03  Mosè Giordano  <mose@gnu.org>
32         PR sanitizer/101111
33         * configure.tgt: Fix bashism in setting of `EXTRA_CXXFLAGS'.
35 2021-07-28  Ilya Leoshkevich  <iii@linux.ibm.com>
37         * configure.tgt (s390*-*-linux*): Enable LSan and TSan for
38         s390x.
40 2021-07-20  H.J. Lu  <hjl.tools@gmail.com>
42         * asan/libtool-version: Bump version.
43         * tsan/libtool-version: Likewise.
45 2021-07-20  H.J. Lu  <hjl.tools@gmail.com>
47         * LOCAL_PATCHES: Update to the corresponding revision.
49 2021-05-21  Tamar Christina  <tamar.christina@arm.com>
51         PR sanitizer/100379
52         * sanitizer_common/sanitizer_common_interceptors_ioctl.inc: Cherry-pick
53         llvm-project revision f7c5351552387bd43f6ca3631016d7f0dfe0f135.
54         * sanitizer_common/sanitizer_platform_limits_posix.cpp: Likewise.
55         * sanitizer_common/sanitizer_platform_limits_posix.h: Likewise.
57 2021-05-13  Iain Sandoe  <iain@sandoe.co.uk>
59         * LOCAL_PATCHES: Add Darwin patch for __builtin_os_log_format.
61 2021-05-13  Iain Sandoe  <iain@sandoe.co.uk>
63         * sanitizer_common/sanitizer_mac.cpp : Check for the
64         availability of __builtin_os_log_format before trying to
65         include a header depending on it.
66         (OS_LOG_DEFAULT): New.
67         (os_log_error): Define to a fall-back using an older API.
69 2021-05-13  Martin Liska  <mliska@suse.cz>
71         * LOCAL_PATCHES: Update to the corresponding revision.
73 2021-04-17  Jakub Jelinek  <jakub@redhat.com>
75         PR sanitizer/100114
76         * sanitizer_common/sanitizer_posix_libcdep.cpp: Cherry-pick
77         llvm-project revisions 82150606fb11d28813ae6da1101f5bda638165fe
78         and b93629dd335ffee2fc4b9b619bf86c3f9e6b0023.
80 2021-03-08  Martin Liska  <mliska@suse.cz>
82         PR sanitizer/98920
83         * asan/asan_interceptors.cpp (COMMON_INTERCEPT_FUNCTION_VER):
84         Cherry pick.
85         (COMMON_INTERCEPT_FUNCTION_VER_UNVERSIONED_FALLBACK): Likewise.
86         * asan/asan_interceptors.h (ASAN_INTERCEPT_FUNC_VER_UNVERSIONED_FALLBACK): Likewise.
87         * sanitizer_common/sanitizer_common_interceptors.inc
88         (COMMON_INTERCEPT_FUNCTION_GLIBC_VER_MIN): Likewise.
89         (INIT_REGEX): Likewise.
90         * tsan/tsan_interceptors_posix.cpp (COMMON_INTERCEPT_FUNCTION_VER_UNVERSIONED_FALLBACK):
91         Likewise.
93 2021-01-26  Martin Liska  <mliska@suse.cz>
95         PR sanitizer/98828
96         * lsan/Makefile.am: Add missing lsan_posix.cpp file.
97         * lsan/Makefile.in: Likewise.
99 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
101         * configure: Re-generate.
103 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
105         PR target/97865
106         * configure.tgt: Add dynamic_lookup to EXTRA_CXXFLAGS for
107         Darwin.
108         * configure: Regenerate.
110 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
112         * configure: Regenerate.
114 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
116         * LOCAL_PATCHES: Add one commit.
118 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
120         * Makefile.am: Condition Build hwasan directory.
121         * Makefile.in: Regenerate.
122         * configure: Regenerate.
123         * configure.ac: Set HWASAN_SUPPORTED based on target
124         architecture.
125         * configure.tgt: Likewise.
127 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
129         * Makefile.am:  Build libhwasan.
130         * Makefile.in:  Build libhwasan.
131         * asan/Makefile.in:  Build libhwasan.
132         * configure:  Build libhwasan.
133         * configure.ac:  Build libhwasan.
134         * hwasan/Makefile.am: New file.
135         * hwasan/Makefile.in: New file.
136         * hwasan/libtool-version: New file.
137         * interception/Makefile.in: Build libhwasan.
138         * libbacktrace/Makefile.in: Build libhwasan.
139         * libsanitizer.spec.in: Build libhwasan.
140         * lsan/Makefile.in: Build libhwasan.
141         * sanitizer_common/Makefile.in: Build libhwasan.
142         * tsan/Makefile.in: Build libhwasan.
143         * ubsan/Makefile.in: Build libhwasan.
145 2020-11-21  Iain Sandoe  <iain@sandoe.co.uk>
147         * configure.tgt: Allow x86_64 Darwin2x.
149 2020-11-13  Martin Liska  <mliska@suse.cz>
151         * LOCAL_PATCHES: Update to the latest commit.
153 2020-10-19  Martin Liska  <mliska@suse.cz>
155         * LOCAL_PATCHES: Add one commit.
157 2020-10-18  Iain Sandoe  <iain@sandoe.co.uk>
159         * sanitizer_common/sanitizer_mac.h: Ensure that TARGET_OS_
160         macros are defined where the macOS SDK does not contain
161         them.
162         (TARGET_OS_OSX, TARGET_OS_IOS, TARGET_OS_TV, TARGET_OS_WATCH):
163         Define where needed.
165 2020-10-16  Martin Liska  <mliska@suse.cz>
167         * LOCAL_PATCHES: Update revision.
169 2020-09-21  Ian Lance Taylor  <iant@golang.org>
171         * libbacktrace/backtrace-rename.h (backtrace_uncompress_lzma):
172         Define.
173         (backtrace_syminfo_to_full_callback): Define.
174         (backtrace_syminfo_to_full_error_callback): Define.
176 2020-07-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
178         * sanitizer_common/sanitizer_linux.cpp: Cherry-pick llvm-project
179         revision f0e9b76c3500496f8f3ea7abe6f4bf801e3b41e7.
181 2020-06-09  Martin Liska  <mliska@suse.cz>
183         * asan/Makefile.am: Replace gnu++11 with gnu++14.
184         * interception/Makefile.am: Likewise.
185         * libbacktrace/Makefile.am: Likewise.
186         * lsan/Makefile.am: Likewise.
187         * sanitizer_common/Makefile.am: Likewise.
188         * tsan/Makefile.am: Likewise.
189         * ubsan/Makefile.am: Likewise.
190         * asan/Makefile.in: Regenerate.
191         * interception/Makefile.in: Likewise.
192         * libbacktrace/Makefile.in: Likewise.
193         * lsan/Makefile.in: Likewise.
194         * sanitizer_common/Makefile.in: Likewise.
195         * tsan/Makefile.in: Likewise.
196         * ubsan/Makefile.in: Likewise.
198 2020-06-02  Martin Liska  <mliska@suse.cz>
200         * LOCAL_PATCHES: Update hash of local patches.
202 2020-06-02  Martin Liska  <mliska@suse.cz>
204         * MERGE: Merge from master.
206 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
208         PR bootstrap/95413
209         * configure: Regenerated.
211 2020-05-29  Martin Liska  <mliska@suse.cz>
213         * HOWTO_MERGE: Do not mention not existing argument.
214         * README.gcc: Update LLVM repository location.
216 2020-05-26  Martin Liska  <mliska@suse.cz>
218         * LOCAL_PATCHES: Use git hash instead of SVN id.
219         * merge.sh: Use git instead of VCS.  Update paths
220         relative to upstream git repository.
222 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
224         PR bootstrap/95147
225         * configure: Regenerated.
227 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
229         * configure: Regenerated.
231 2020-05-01  Andreas Tobler  <andreast@gcc.gnu.org>
233         * configure.tgt: Add x86_64- and i?86-*-freebsd* targets.
235 2020-05-01  Andreas Tobler  <andreast@gcc.gnu.org>
237         * sanitizer_common/Makefile.am: Add
238         sanitizer_platform_limits_freebsd.cpp.
239         * sanitizer_common/Makefile.in: Regenerate.
241 2020-03-01  Iain Sandoe  <iain@sandoe.co.uk>
243         PR sanitizer/93731
244         * configure.tgt (x86_64-*-darwin*, i?86-*-darwin*): Enable by
245         default only for Darwin versions greater than 12 (macOS 10.8).
247 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
249         * configure.ac: Handle `--with-toolexeclibdir='.
250         * Makefile.in: Regenerate.
251         * aclocal.m4: Regenerate.
252         * configure: Regenerate.
253         * asan/Makefile.in: Regenerate.
254         * interception/Makefile.in: Regenerate.
255         * libbacktrace/Makefile.in: Regenerate.
256         * lsan/Makefile.in: Regenerate.
257         * sanitizer_common/Makefile.in: Regenerate.
258         * tsan/Makefile.in: Regenerate.
259         * ubsan/Makefile.in: Regenerate.
261 2019-11-26  Jakub Jelinek  <jakub@redhat.com>
263         PR sanitizer/92154
264         * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry-pick
265         llvm-project revision 947f9692440836dcb8d88b74b69dd379d85974ce.
266         * sanitizer_common/sanitizer_platform_limits_posix.cpp: Likewise.
268 2019-11-20  Martin Liska  <mliska@suse.cz>
270         * libtool-version: Remove.
271         * lsan/libtool-version: Upate comment to not mention libmudflap.
272         * tsan/libtool-version: Likewise.
273         * ubsan/libtool-version: Likewise.
275 2019-11-13  Andreas Schwab  <schwab@suse.de>
277         * configure.tgt (riscv64-*-linux*): Enable build.
279 2019-11-07  Martin Liska  <mliska@suse.cz>
281         * all source files: Reapply all revisions mentioned in LOCAL_PATCHES.
283 2019-11-07  Martin Liska  <mliska@suse.cz>
285         * merge.sh: Update to use llvm-project git repository.
286         * all source files: Merge from upstream
287         82588e05cc32bb30807e480abd4e689b0dee132a.
289 2019-11-05  Martin Liska  <mliska@suse.cz>
291         * ubsan/ubsan_flags.cpp (InitializeFlags): Trunk decided to print
292         summary for all sanitizers, but we want to have UBSAN without it.
294 2019-11-05  Martin Liska  <mliska@suse.cz>
296         * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply from
297         LOCAL_PATCHES.
298         (CheckODRViolationViaPoisoning): Likewise.
299         (RegisterGlobal): Likewise.
300         * asan/asan_interceptors.h (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): Likewise.
301         (defined): Likewise.
302         * asan/asan_mapping.h: Likewise.
303         * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise.
304         * sanitizer_common/sanitizer_mac.cpp (defined): Likewise.
305         * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise.
306         * sanitizer_common/sanitizer_platform_limits_posix.h: Likewise.
307         * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise.
308         * tsan/tsan_rtl_ppc64.S: Likewise.
309         * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
310         (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
311         * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
312         (struct CFICheckFailData): Likewise.
313         (RECOVERABLE): Likewise.
314         * ubsan/ubsan_platform.h: Likewise.
316 2019-11-05  Martin Liska  <mliska@suse.cz>
318         * tsan/Makefile.am: Rename tsan_interceptors.cpp to
319         tsan_interceptors_posix.
320         * tsan/Makefile.in: Regenerate.
322 2019-11-05  Martin Liska  <mliska@suse.cz>
324         * all source files: Merge from upstream r375507.
326 2019-10-22  Tamar Christina  <tamar.christina@arm.com>
328         PR sanitizer/92154
329         * sanitizer_common/sanitizer_platform_limits_posix.cpp:
330         Cherry-pick compiler-rt revision r375220.
332 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
334         * configure: Regenerate.
336 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
337         Mickaël Guêné <mickael.guene@st.com>
339         * configure.tgt (arm*-*-*fdpiceabi): Sanitizers are
340         unsupported in this configuration.
342 2019-08-16  Iain Sandoe  <iain@sandoe.co.uk>
344         * LOCAL_PATCHES: Add r274585.
346 2019-08-16  Iain Sandoe  <iain@sandoe.co.uk>
348         * asan/asan_interceptors.h: Reapply r272406.
350 2019-08-15  Martin Liska  <mliska@suse.cz>
352         * LOCAL_PATCHES: Add r274540
354 2019-08-15  Martin Liska  <mliska@suse.cz>
356         * tsan/tsan_rtl_ppc64.S: Reapply.
358 2019-08-15  Iain Sandoe  <iain@sandoe.co.uk>
360         PR bootstrap/91455
361         * Makefile.in: Regenerated.
362         * aclocal.m4: Likewise.
363         * asan/Makefile.in: Likewise.
364         * configure: Likewise.
365         * interception/Makefile.in: Likewise.
366         * libbacktrace/Makefile.in: Likewise.
367         * lsan/Makefile.in: Likewise.
368         * sanitizer_common/Makefile.am: Include top_srcdir unconditionally.
369         * sanitizer_common/Makefile.in: Regenerated.
370         * tsan/Makefile.in: Likewise.
371         * ubsan/Makefile.in: Likewise.
373 2019-08-14  Martin Liska  <mliska@suse.cz>
375         * LOCAL_PATCHES: Refresh based on what was committed.
377 2019-08-14  Martin Liska  <mliska@suse.cz>
379         * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply
380         patch from trunk.
381         (CheckODRViolationViaPoisoning): Likewise.
382         (RegisterGlobal): Likewise.
383         * asan/asan_mapping.h: Likewise.
384         * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise.
385         * sanitizer_common/sanitizer_mac.cpp (defined): Likewise.
386         * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise.
387         * sanitizer_common/sanitizer_platform_limits_posix.h (defined): Likewise.
388         * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise.
389         * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
390         (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
391         * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
392         (struct CFICheckFailData): Likewise.
393         (RECOVERABLE): Likewise.
394         * ubsan/ubsan_platform.h: Likewise.
396 2019-08-14  Martin Liska  <mliska@suse.cz>
398         PR sanitizer/89832
399         PR sanitizer/91325
400         * All source files: Merge from upstream 368656.
402 2019-06-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
404         * sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick
405         compiler-rt revision 363778.
407 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
409         PR libsanitizer/87880
410         * asan/asan_interceptors.h:
411         (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New.
412         * asan/Makefile.am (DEFS): Add 
413         ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0.
414         * asan/Makefile.in: Regenerated.
415         * asan/libtool-version: Bump version.
417 2019-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
419         PR target/90639
420         * tsan/tsan_rtl_ppc64.S: Add ".machine altivec".
422 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
424         * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
425         handling.
426         * configure: Regenerate.
428 2019-04-08  Martin Liska  <mliska@suse.cz>
430         * LOCAL_PATCHES: Add revision.
432 2019-04-08  Martin Liska  <mliska@suse.cz>
434         PR sanitizer/89941
435         * sanitizer_common/sanitizer_platform_limits_linux.cc (defined):
436         Reapply patch from r259664.
437         * sanitizer_common/sanitizer_platform_limits_posix.h (defined):
438         Likewise.
440 2019-03-13  Eric Botcazou  <ebotcazou@adacore.com>
442         PR sanitizer/80953
443         Merge from LLVM revision 355980
444         * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC.
445         (kAllocatorSize): Likewise.
446         (DefaultSizeClassMap): Likewise.
447         * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define.
448         (SHADOW_OFFSET): Define for SPARC.
449         Include asan_mapping_sparc64.h for SPARC 64-bit.
450         * asan/asan_mapping_sparc64.h: New file.
452 2019-03-13  Eric Botcazou  <ebotcazou@adacore.com>
454         PR sanitizer/80953
455         Merge from LLVM revision 355979
456         * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
457         copy Global objects for SPARC with GCC.
459 2019-03-13  Eric Botcazou  <ebotcazou@adacore.com>
461         PR sanitizer/80953
462         Merge from LLVM revision 355978
463         * sanitizer_common/sanitizer_allocator_primary32.h
464         (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if
465         SANITIZER_SIGN_EXTENDED_ADDRESSES is set.
466         (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES.
467         (ComputeRegionId): Likewise.
468         * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return
469         appropriate value for SPARC 64-bit.
470         * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE):
471         Define for SPARC.
472         (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit.
474 2019-03-13  Eric Botcazou  <ebotcazou@adacore.com>
476         PR sanitizer/80953
477         Merge from LLVM revision 355965
478         * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for
479         SPARC/Linux.
480         (GetPcSpBp): Likewise.
481         * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc):
482         Adjust for SPARC.
483         * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND):
484         Define to 1 for SPARC.
485         * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite.
486         * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack):
487         Adjust the PC address for SPARC with GCC.
489 2019-03-06  Martin Liska  <mliska@suse.cz>
491         PR sanitizer/88684
492         * sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
493         (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
494         * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
495         Likewise.
497 2019-02-20  H.J. Lu  <hongjiu.lu@intel.com>
499         PR sanitizer/89409
500         * sanitizer_common/sanitizer_linux.cc (internal_readlink):
501         Cherry-pick compiler-rt r354451.
503 2019-01-23  Jonny Grant  <jg@jguk.org>
505         PR sanitizer/89010
506         * libsanitizer/README.gcc: Update to current https URLs.
508 2018-12-27  Martin Liska  <mliska@suse.cz>
510         PR sanitizer/86229
511         * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
512         pick rL350085.
513         * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
515 2018-11-09  Martin Liska  <mliska@suse.cz>
517         * LOCAL_PATCHES: Include one local patch.
519 2018-11-09  Martin Liska  <mliska@suse.cz>
521         PR sanitizer/87892
522         * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return
523         1 when CPU_COUNT macro is not defined.
525 2018-11-08  Bill Seurer  <seurer@linux.vnet.ibm.com>
527         * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
528         Disable ASLR for powerpc64 when using sanitizers.
530 2018-11-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
532         PR sanitizer/80953
533         * configure.tgt (sparc*-*-solaris2.11*): Enable.
534         (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
536 2018-11-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
538         PR sanitizer/80953
539         * sanitizer_common/sanitizer_internal_defs.h,
540         sanitizer_common/sanitizer_platform_limits_solaris.h,
541         sanitizer_common/sanitizer_procmaps_solaris.cc,
542         sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
543         revision 346153.
544         * sanitizer_common/sanitizer_stacktrace.h,
545         sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
546         compiler-rt revision 346155.
548 2018-11-05  Segher Boessenkool  <segher@kernel.crashing.org>
550         * LOCAL_PATCHES: Add r258525.
551         * sanitizer_common/sanitizer_stacktrace.cc
552         (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
553         for PowerPC SYSV ABI.
555 2018-11-05  Martin Liska  <mliska@suse.cz>
557         PR sanitizer/87860
558         * sanitizer_common/sanitizer_linux.cc:  Cherry-pick upstream
559         r346129.
561 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
563         PR bootstrap/82856
564         * Makefile.am: Include multilib.am.
565         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
566         * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
567         interception/Makefile.in, libbacktrace/Makefile.in,
568         lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
569         ubsan/Makefile.in: Regenerate.
571 2018-10-31  Martin Liska  <mliska@suse.cz>
573         * LOCAL_PATCHES: Update to installed revisions.
575 2018-10-31  Martin Liska  <mliska@suse.cz>
577         * ubsan/ubsan_platform.h: Add ifndef as we define it with
578         -DCAN_SANITIZE_UB CFLAGS.
580 2018-10-31  Martin Liska  <mliska@suse.cz>
582         * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
584 2018-10-31  Martin Liska  <mliska@suse.cz>
586         * LOCAL_PATCHES: Update patch list.
587         * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
588         patches from GCC's trunk.
589         (CheckODRViolationViaPoisoning): Likewise.
590         (RegisterGlobal): Likewise.
591         * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
592         * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
593         * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
594         (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
595         * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
596         (struct CFICheckFailData): Likewise.
597         (RECOVERABLE): Likewise.
599 2018-10-31  Martin Liska  <mliska@suse.cz>
601         * config.h.in: Regenerate.
602         * configure: Likewise.
603         * sanitizer_common/Makefile.am: Include new files, remove old
604         files.
605         * sanitizer_common/Makefile.in: Regenerate.
606         * ubsan/Makefile.am: Include new files, remove old
607         files.
608         * ubsan/Makefile.in: Likewise.
609         * asan/Makefile.am: Include new files.
610         * asan/Makefile.in: Regenerate.
612 2018-10-31  Martin Liska  <mliska@suse.cz>
614         * All source files: Merge from upstream 345033.
616 2018-10-31  Martin Liska  <mliska@suse.cz>
618         * HOWTO_MERGE: Enhance documentation.
619         * merge.sh: Add support for git as well.
621 2018-08-02  Martin Liska  <mliska@suse.cz>
623         PR sanitizer/86022
624         * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
625         Cherry-pick compiler-rt revision 338606.
627 2018-08-01  Marek Polacek  <polacek@redhat.com>
629         PR sanitizer/86759
630         * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
631         * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
632         319180.
634 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
636         PR target/86560
637         * asan/asan_interceptors.cc (swapcontext) Cherry-pick
638         compiler-rt revision 337603.
639         * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
640         Likewise.
642 2018-07-05  Jakub Jelinek  <jakub@redhat.com>
644         Revert
645         2018-07-04  Maxim Ostapenko  <m.ostapenko@samsung.com>
647         PR sanitizer/84250
648         * Makefile.am: Reorder libs.
649         * Makefile.in: Regenerate.
650         * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
651         libsanitizer_ubsan.la.
652         * asan/Makefile.in: Regenerate.
653         * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
654         * ubsan/Makefile.in: Regenerate.
656 2018-07-04  Maxim Ostapenko  <m.ostapenko@samsung.com>
658         PR sanitizer/84250
659         * Makefile.am: Reorder libs.
660         * Makefile.in: Regenerate.
661         * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
662         libsanitizer_ubsan.la.
663         * asan/Makefile.in: Regenerate.
664         * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
665         * ubsan/Makefile.in: Regenerate.
667 2018-06-13  Denis Khalikov  <d.khalikov@partner.samsung.com>
669         PR sanitizer/86090
670         * configure.ac: Check for lstat and readlink.
671         * configure, config.h.in: Rebuild.
673 2018-05-31  Matthias Klose  <doko@ubuntu.com>
675         PR sanitizer/86012
676         * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
677         SIZEOF_STRUCT_USTAT for 32bit sparc.
679 2018-05-24  H.J. Lu  <hongjiu.lu@intel.com>
681         PR sanitizer/85835
682         * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
683         include <sys/ustat.h> for Linux.
684         (SIZEOF_STRUCT_USTAT): New.
685         (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
687 2018-04-26  Hans-Peter Nilsson  <hp@axis.com>
689         * configure.tgt <mips*-*-linux*>: Enable build, excluding
690         mips*64*-*-linux*.
692         * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
693         take the shortcut to #include <sys/stat.h> for MIPS instead of
694         the kernel <asm/stat.h>.  Explain why sys/stat.h is misleading
695         or wrong to get the kernel struct stat.
696         * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
697         Correct the value for 32-bit non-android struct_kernel_stat_sz.
699         * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
700         && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
702 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
704         * configure: Regenerated.
706 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
708         * configure: Regenerated.
710 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
712         PR jit/85384
713         * configure: Regenerate.
715 2018-04-18  Bill Seurer  <seurer@linux.vnet.ibm.com>
717         PR sanitizer/85389
718         * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
719         from 0xa0000000000ULL to ~(uptr)0.
721 2018-03-19  Jakub Jelinek  <jakub@redhat.com>
723         PR sanitizer/84761
724         * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
725         Define if not defined.
726         (DL_INTERNAL_FUNCTION): Don't define.
727         (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
728         determine at runtime whether to use regparm(3), stdcall calling
729         convention for older glibcs or normal calling convention for
730         newer glibcs for call to _dl_get_tls_static_info.
732 2018-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
734         * sanitizer_common/sanitizer_stacktrace.cc
735         (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
736         for PowerPC SYSV ABI.
738 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
740         PR target/84148
741         * configure: Regenerate.
743 2018-02-05  Martin Liska  <mliska@suse.cz>
745         * asan/asan_flags.inc: Cherry-pick upstream r323995.
746         * asan/asan_report.cc (CheckForInvalidPointerPair):
747         Cherry-pick upstream r323995.
749 2018-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
751         PR sanitizer/82825
752         * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
753         r324284.
755 2018-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
757         PR sanitizer/82824
758         * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
760 2017-12-05  Martin Liska  <mliska@suse.cz>
761             Jakub Jelinek  <jakub@redhat.com>
763         * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
764         * asan/asan_descriptions.h: Likewise.
765         * asan/asan_report.cc: Likewise.
766         * asan/asan_thread.cc: Likewise.
767         * asan/asan_thread.h: Likewise.
769 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
771         * acinclude.m4: Add enable.m4 and cet.m4.
772         * Makefile.in: Regenerate.
773         * asan/Makefile.am: Update AM_CXXFLAGS.
774         * asan/Makefile.in: Regenerate.
775         * configure: Likewise.
776         * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
777         EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
778         * interception/Makefile.am: Update AM_CXXFLAGS.
779         * interception/Makefile.in: Regenerate.
780         * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
781         * libbacktrace/Makefile.in: Regenerate.
782         * lsan/Makefile.am: Update AM_CXXFLAGS.
783         * lsan/Makefile.in: Regenerate.
784         * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
785         AM_CCASFLAGS.
786         * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
787         Add _CET_ENDBR macro.
788         * sanitizer_common/Makefile.in: Regenerate.
789         * tsan/Makefile.am: Update AM_CXXFLAGS.
790         * tsan/Makefile.in: Regenerate.
791         * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
792         * ubsan/Makefile.am: Update AM_CXXFLAGS.
793         * ubsan/Makefile.in: Regenerate.
795 2017-11-08  Jakub Jelinek  <jakub@redhat.com>
797         PR bootstrap/82670
798         * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
799         and ubsan_signals_standalone.cc.
800         * ubsan/Makefile.in: Regenerated.
802 2017-11-05  Tom de Vries  <tom@codesourcery.com>
804         PR other/82784
805         * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
806         "do {} while (0)".
807         * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
809 2017-10-20  Jakub Jelinek  <jakub@redhat.com>
811         PR sanitizer/82595
812         * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
813         * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
814         liblsan_preinit.o.
815         (lsan_files): Remove lsan_preinit.cc.
816         (liblsan_preinit.o): New rule.
817         * lsan/Makefile.in: Regenerated.
819 2017-10-19  Jakub Jelinek  <jakub@redhat.com>
821         * All source files: Merge from upstream 315899.
822         * asan/Makefile.am (nodist_saninclude_HEADERS): Add
823         include/sanitizer/tsan_interface.h.
824         * asan/libtool-version: Bump the libasan SONAME.
825         * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
826         (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
827         * sanitizer_common/Makefile.am (sanitizer_common_files): Add
828         sancov_flags.cc, sanitizer_allocator_checks.cc,
829         sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
830         sanitizer_file.cc, sanitizer_mac_libcdep.cc and
831         sanitizer_stoptheworld_mac.cc.  Remove sanitizer_coverage_libcdep.cc
832         and sanitizer_coverage_mapping_libcdep.cc.
833         * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
834         * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
835         (ubsan_files): Add ubsan_init_standalone.cc and
836         ubsan_signals_standalone.cc.
837         * ubsan/libtool-version: Bump the libubsan SONAME.
838         * asan/Makefile.in: Regenerate.
839         * lsan/Makefile.in: Regenerate.
840         * sanitizer_common/Makefile.in: Regenerate.
841         * tsan/Makefile.in: Regenerate.
842         * ubsan/Makefile.in: Regenerate.
844 2017-10-05  H.J. Lu  <hongjiu.lu@intel.com>
846         PR sanitizer/82379
847         * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
848         to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
850 2017-10-02  Jakub Jelinek  <jakub@redhat.com>
852         * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
853         Define.
855 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
857         * include/system/sys/ptrace.h: New file.
859 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
861         PR sanitizer/80998
862         * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
863         * ubsan/ubsan_checks.inc: Likewise.
864         * ubsan/ubsan_handlers.h: Likewise.
866 2017-07-14  Jakub Jelinek  <jakub@redhat.com>
868         PR sanitizer/81066
869         * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
870         * sanitizer_common/sanitizer_linux.cc: Likewise.
871         * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
872         * tsan/tsan_platform_linux.cc: Likewise.
874 2017-04-06  Martin Liska  <mliska@suse.cz>
876         PR sanitizer/80166
877         * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
878         Cherry-pick upstream r299036.
880 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
882         PR sanitizer/78158
883         * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
885 2017-02-16  Andreas Tobler  <andreast@gcc.gnu.org>
887         PR sanitizer/79562
888         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
889         upstream r294806.
891 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
893         PR sanitizer/79341
894         * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
895         s390-linux 31-bit.
896         * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
897         r294793.
898         * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
899         upstream r294790.
900         * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
901         r294799.
903 2017-02-03  Maxim Ostapenko  <m.ostapenko@samsung.com>
905         PR sanitizer/78663
906         * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
907         * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
909 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
911         * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
913 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
915         * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
917         PR sanitizer/79168
918         * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
919         if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
920         text.
921         * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
922         * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
923         * tsan/tsan_ppc_regs.h: Likewise.
924         * tsan/tsan_rtl_aarch64.S: Likewise.
925         * tsan/tsan_rtl_mips64.S: Likewise.
926         * tsan/tsan_rtl_ppc64.S: Likewise.
928 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
930         PR other/79046
931         * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
932         instead of cat to get version from BASE-VER file.
933         * asan/Makefile.am (gcc_version): Likewise.
934         * ubsan/Makefile.am (gcc_version): Likewise.
935         * sanitizer_common/Makefile.am (gcc_version): Likewise.
936         * lsan/Makefile.am (gcc_version): Likewise.
937         * tsan/Makefile.am (gcc_version): Likewise.
938         * interception/Makefile.in: Regenerated.
939         * asan/Makefile.in: Regenerated.
940         * ubsan/Makefile.in: Regenerated.
941         * sanitizer_common/Makefile.in: Regenerated.
942         * lsan/Makefile.in: Regenerated.
943         * tsan/Makefile.in: Regenerated.
945 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
947         PR other/79046
948         * configure.ac: Add GCC_BASE_VER.
949         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
950         get version from BASE-VER file.
951         * libbacktrace/Makefile.in: Regenerated.
952         * interception/Makefile.in: Regenerated.
953         * asan/Makefile.in: Regenerated.
954         * ubsan/Makefile.in: Regenerated.
955         * configure: Regenerated.
956         * sanitizer_common/Makefile.in: Regenerated.
957         * lsan/Makefile.in: Regenerated.
958         * Makefile.in: Regenerated.
959         * tsan/Makefile.in: Regenerated.
961 2017-01-10  James Clarke  <jrtc27@jrtc27.com>
963         PR sanitizer/78992
964         * sanitizer_common/sanitizer_platform_limits_posix.h
965         (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
967 2016-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
969         * LOCAL_PATCHES: Add revision.
971 2016-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
973         PR sanitizer/78532
974         * sanitizer_common/sanitizer_platform_limits_posix.h
975         (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
976         versions.
978 2016-11-29  Markus Trippelsdorf  <markus@trippelsdorf.de>
980         * LOCAL_PATCHES: Remove r242480.
982 2016-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
984         * LOCAL_PATCHES: Add revision.
986 2016-11-20  Jack Howarth  <howarth.at.gcc@gmail.com>
988         PR sanitizer/78267
989         * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
990         compiler supports blocks extension.
992 2016-11-16  Markus Trippelsdorf  <markus@trippelsdorf.de>
994         * LOCAL_PATCHES: Add revision.
996 2016-11-16  Markus Trippelsdorf  <markus@trippelsdorf.de>
998         PR sanitizer/78294
999         * tsan/tsan_rtl.cc: Add missing attribute.
1001 2016-11-16  Maxim Ostapenko  <m.ostapenko@samsung.com>
1003         * LOCAL_PATCHES: New file.
1005 2016-11-16  Maxim Ostapenko  <m.ostapenko@samsung.com>
1007         PR sanitizer/78307
1008         * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
1009         ( __ubsan_handle_cfi_bad_icall_abort): Likewise. 
1010         * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
1011         * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
1012         function.
1013         (__ubsan_handle_cfi_bad_type_abort): Likewise.
1014         * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
1015         (__ubsan_handle_cfi_bad_type): Export function.
1016         (__ubsan_handle_cfi_bad_type_abort): Likewise.
1017         * HOWTO_MERGE: Update documentation.
1019 2016-11-15  Matthias Klose  <doko@ubuntu.com>
1021         * configure: Regenerate.
1023 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
1025         * asan/asan_globals.cc (RegisterGlobal): Do not call
1026         CheckODRViolationViaPoisoning.
1027         (CheckODRViolationViaPoisoning): Remove.
1029 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
1031         * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
1032         compiled code with GCC when extracting the caller PC for ARM if no
1033         valid frame pointer is available.
1035 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
1037         PR sanitizer/63958
1038         Reapply:
1039         2014-10-14  David S. Miller  <davem@davemloft.net>
1041         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1042         Define at __kernel_time_t, as needed for sparc.
1043         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1044         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1045         (__sanitizer): Define struct___old_kernel_stat_sz,
1046         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1047         (__sanitizer_ipc_perm): Adjust for sparc targets.
1048         (__sanitizer_shmid_ds): Likewsie.
1049         (__sanitizer_sigaction): Likewise.
1050         (IOC_SIZE): Likewsie.
1052 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
1054         * All source files: Merge from upstream 285547.
1055         * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
1056         variable.
1057         * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
1058         * asan/Makefile.am (asan_files): Add new files.
1059         * asan/Makefile.in: Regenerate.
1060         * ubsan/Makefile.in: Likewise.
1061         * lsan/Makefile.in: Likewise.
1062         * tsan/Makefile.am (tsan_files): Add new files.
1063         * tsan/Makefile.in: Regenerate.
1064         * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
1065         (EXTRA_libsanitizer_common_la_SOURCES): Define.
1066         (libsanitizer_common_la_LIBADD): Likewise.
1067         (libsanitizer_common_la_DEPENDENCIES): Likewise.
1068         * sanitizer_common/Makefile.in: Regenerate.
1069         * interception/Makefile.in: Likewise.
1070         * libbacktace/Makefile.in: Likewise.
1071         * Makefile.in: Likewise.
1072         * configure: Likewise.
1073         * merge.sh: Handle builtins/assembly.h merging.
1074         * builtins/assembly.h: New file.
1075         * asan/libtool-version: Bump the libasan SONAME.
1077 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
1079         PR sanitizer/77567
1080         * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
1082 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
1084         PR sanitizer/77396
1085         * asan/asan_globals.cc: Cherry-pick upstream r280657.
1087 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1089         PR sanitizer/71042
1090         * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
1091         * tsan/tsan_rtl_aarch64.S: Likewise.
1093 2016-07-23  Alan Modra  <amodra@gmail.com>
1095         Revert 2015-11-09  Alan Modra  <amodra@gmail.com>
1096         * configure.ac: Don't substitute OBSTACK_DEFS.
1097         * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
1098         * tsan/Makefile.am: Likewise.
1099         * configure: Regenerate.
1100         * Makefile.in: Regenerate.
1101         * asan/Makefile.in: Regenerate.
1102         * interception/Makefile.in: Regenerate.
1103         * libbacktrace/Makefile.in: Regenerate.
1104         * lsan/Makefile.in: Regenerate.
1105         * sanitizer_common/Makefile.in: Regenerate.
1106         * tsan/Makefile.in: Regenerate.
1107         * ubsan/Makefile.in: Regenerate.
1109 2016-05-17  Jakub Jelinek  <jakub@redhat.com>
1111         PR sanitizer/71160
1112         * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
1113         and r269633.
1115 2016-04-21  Maxim Ostapenko  <m.ostapenko@samsung.com>
1117         PR sanitizer/70624
1118         * asan/asan_mac.cc: Cherry pick upstream r266868.
1120 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
1122         PR sanitizer/68824
1123         * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
1124         InitializeInterceptors): Cherry pick upstream r258119.
1126 2016-01-14  Andreas Tobler  <andreast@gcc.gnu.org>
1128         * configure.ac: Replace the hard-coded -ldl requirement for
1129         link_sanitizer_common with a configure time check for -ldl.
1130         * configure: Regenerate.
1132 2015-11-24  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1134         * include/system/linux/asm/ptrace.h: Move to ...
1135         * include/system/asm/ptrace.h: ... this.
1137 2015-11-24  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1139         * include/system/linux/asm/ptrace.h: New header.
1141 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1143         * All source files: Merge from upstream r253555.
1144         * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
1145         dependences for TSan for aarch64-*-linux* targets.
1146         * tsan/Makefile.am: Add new source files.
1147         * configure: Regenerate.
1148         * tsan/Makefile.in: Likewise.
1150 2015-11-09  Alan Modra  <amodra@gmail.com>
1152         * sanitizer_common/sanitizer_common_interceptors.inc: Update size
1153         params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
1154         interceptors.
1155         * configure.ac: Substitute OBSTACK_DEFS.
1156         * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
1157         * tsan/Makefile.am: Likewise.
1158         * configure: Regenerate.
1159         * Makefile.in: Regenerate.
1160         * asan/Makefile.in: Regenerate.
1161         * interception/Makefile.in: Regenerate.
1162         * libbacktrace/Makefile.in: Regenerate.
1163         * lsan/Makefile.in: Regenerate.
1164         * sanitizer_common/Makefile.in: Regenerate.
1165         * tsan/Makefile.in: Regenerate.
1166         * ubsan/Makefile.in: Regenerate.
1168 2015-10-22  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1170         PR bootstrap/68041
1171         * configure.ac (link_sanitizer_common): Link against librt only if it
1172         contains shm_open, required by sanitizers.
1173         (CXX_ABI_NEEDED): Remove variable.
1174         * configure: Regenerate.
1175         * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
1176         * ubsan/Makefile.in: Regenerate.
1178 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1180         * HOWTO_MERGE: New file.
1182 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1184         * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
1185         compiled code with GCC when extracting the caller PC for ARM if no
1186         valid frame pointer is available.
1188 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1190         PR bootstrap/63888
1191         Reapply:
1192         2015-02-20  Jakub Jelinek  <jakub@redhat.com>
1194         * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
1195         support until it is rewritten upstream.
1197         * c-c++-common/asan/pr63888.c: New test.
1199 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1201         PR sanitizer/63958
1202         Reapply:
1203         2014-10-14  David S. Miller  <davem@davemloft.net>
1205         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1206         Define at __kernel_time_t, as needed for sparc.
1207         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1208         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1209         (__sanitizer): Define struct___old_kernel_stat_sz,
1210         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1211         (__sanitizer_ipc_perm): Adjust for sparc targets.
1212         (__sanitizer_shmid_ds): Likewsie.
1213         (__sanitizer_sigaction): Likewise.
1214         (IOC_SIZE): Likewsie.
1216 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1218         * All source files: Merge from upstream r250806.
1219         * configure.ac (link_sanitizer_common): Add -lrt flag.
1220         * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
1221         Set USE_CXX_ABI_FLAG=true for darwin.
1222         * asan/Makefile.am (asan_files): Add new files.
1223         (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
1224         DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
1225         * asan/Makefile.in: Regenerate.
1226         * ubsan/Makefile.am (ubsan_files): Add new files.
1227         (DEFS): Add DCAN_SANITIZE_UB=1.
1228         (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
1229         * ubsan/Makefile.in: Regenerate.
1230         * tsan/Makefile.am (tsan_files): Add new files.
1231         (DEFS): Add DCAN_SANITIZE_UB=0.
1232         * tsan/Makefile.in: Regenerate.
1233         * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
1234         * sanitizer_common/Makefile.in: Regenerate.
1235         * asan/libtool-version: Bump the libasan SONAME.
1237 2015-09-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1239         PR sanitizer/67258
1240         * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
1242 2015-07-29  Markus Trippelsdorf  <markus@trippelsdorf.de>
1244         PR sanitizer/63927
1245         * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
1246         for PowerPC.
1248 2015-07-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1250         PR sanitizer/63927
1251         * sanitizer_common/sanitizer_stacktrace.cc
1252         (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
1253         find the link register at an offset of 16 from the base of the
1254         caller's stack frame.
1256 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
1258         * Makefile.in: Regenerated with automake-1.11.6.
1259         * aclocal.m4: Likewise.
1260         * asan/Makefile.in: Likewise.
1261         * configure: Likewise.
1262         * interception/Makefile.in: Likewise.
1263         * libbacktrace/Makefile.in: Likewise.
1264         * lsan/Makefile.in: Likewise.
1265         * sanitizer_common/Makefile.in: Likewise.
1266         * tsan/Makefile.in: Likewise.
1267         * ubsan/Makefile.in: Likewise.
1269 2015-04-13  Yury Gribov  <y.gribov@samsung.com>
1271         PR sanitizer/64839
1272         * sanitizer_common/sanitizer_platform.h: Cherry pick
1273         upstream r234470.
1274         * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
1275         * configure.ac (RPC_DEFS): Check for precense of RPC headers.
1276         * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
1277         * Makefile.in: Regenerate.
1278         * asan/Makefile.in: Regenerate.
1279         * config.h.in: Regenerate.
1280         * configure: Regenerate.
1281         * interception/Makefile.in: Regenerate.
1282         * libbacktrace/Makefile.in: Regenerate.
1283         * lsan/Makefile.in: Regenerate.
1284         * sanitizer_common/Makefile.in: Regenerate.
1285         * tsan/Makefile.in: Regenerate.
1286         * ubsan/Makefile.in: Regenerate.
1289 2015-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
1291         PR sanitizer/59009
1292         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
1293         upstream r230324.
1294         * sanitizer_common/sanitizer_platform.h: Likewise.
1295         * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1297 2015-03-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1299         * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
1300         upstream 224508 and 224755.
1302 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
1304         PR sanitizer/63958
1305         Reapply:
1306         2014-10-14  David S. Miller  <davem@davemloft.net>
1308         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1309         Define at __kernel_time_t, as needed for sparc.
1310         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1311         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1312         (__sanitizer): Define struct___old_kernel_stat_sz,
1313         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1314         (__sanitizer_ipc_perm): Adjust for sparc targets.
1315         (__sanitizer_shmid_ds): Likewsie.
1316         (__sanitizer_sigaction): Likewise.
1317         (IOC_SIZE): Likewsie.
1319 2015-02-27  Peter Bergner  <bergner@vnet.ibm.com>
1321         * configure.tgt: Enable build on powerpc*le-*-linux.
1323 2015-02-23  Jakub Jelinek  <jakub@redhat.com>
1325         PR bootstrap/63888
1326         * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
1327         support until it is rewritten upstream.
1329 2015-01-26  Matthias Klose  <doko@ubuntu.com>
1331         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1332         * configure: Regenerate.
1334 2015-01-25  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
1336         * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
1337         * configure: Regenerate.
1338         * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
1340 2015-01-25  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
1342         * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
1343         * configure: Regenerate.
1344         * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
1345         (libtsan_la_DEPENDENCIES): Likewise.
1346         * Makefile.in: Regenerate.
1347         * asan/Makefile.in: Regenerate.
1348         * interception/Makefile.in: Regenerate.
1349         * libbacktrace/Makefile.in: Regenerate.
1350         * lsan/Makefile.in: Regenerate.
1351         * sanitizer_common/Makefile.in: Regenerate.
1352         * tsan/Makefile.in: Regenerate.
1353         * ubsan/Makefile.in: Regenerate.
1355 2015-01-22  Jakub Jelinek  <jakub@redhat.com>
1357         * tsan/tsan_rtl.h: Cherry pick upstream r226829.
1359 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
1361         PR sanitizer/64435
1362         * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
1363         upstream r226637.
1364         * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
1365         * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
1367 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
1369         PR sanitizer/64632
1370         * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
1372 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
1374         PR sanitizer/64435
1375         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
1376         upstream r223925.
1378 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
1380         * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
1381         upstream r224518 and r224519.
1382         * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
1383         r224834.
1385 2014-12-16  Jakub Jelinek  <jakub@redhat.com>
1387         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
1388         sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
1389         sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
1390         upstream r224308.
1392 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1394         PR bootstrap/63784
1395         * configure: Regenerated.
1397 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
1399         PR target/61137
1400         * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
1401         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
1403 2014-11-14  Uros Bizjak  <ubizjak@gmail.com>
1405         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
1406         * asan/Makefile.am (AM_CXXFLAGS): Ditto.
1407         * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
1408         * interception/Makefile.am (AM_CXXFLAGS): Ditto.
1409         * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
1410         * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
1411         * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
1412         * sanitizer_common/Makefile.in: Regenerate.
1413         * asan/Makefile.in: Ditto.
1414         * lsan/Makefile.in: Ditto.
1415         * interception/Makefile.in: Ditto.
1416         * tsan/Makefile.in: Ditto.
1417         * libbacktrace/Makefile.in: Ditto.
1418         * ubsan/Makefile.in: Ditto.
1420 2014-11-13  Kostya Serebryany  <kcc@google.com>
1422         * All source files: Merge from upstream r221802.
1423         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
1424         (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
1425         with 'start' to follow the new interface.
1426         * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1427         * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1428         * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1429         * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1430         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1431         files.
1432         (AM_CXXFLAGS): Added -std=c++11.
1433         * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1434         * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1435         * asan/Makefile.in: Regenerate.
1436         * interception/Makefile.in: Regenerate.
1437         * libbacktrace/Makefile.in: Regenerate.
1438         * lsan/Makefile.in: Regenerate.
1439         * sanitizer_common/Makefile.in: Regenerate.
1440         * tsan/Makefile.in: Regenerate.
1441         * ubsan/Makefile.in: Regenerate.
1443 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1445         PR target/63610
1446         * configure: Regenerate.
1448 2014-10-16  Martin Liska  <mliska@suse.cz>
1450         * asan/Makefile.am: IPA ICF pass is disabled.
1451         * asan/Makefile.in: Likewise.
1453 2014-10-14  David S. Miller  <davem@davemloft.net>
1455         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1456         Define at __kernel_time_t, as needed for sparc.
1457         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1458         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1459         (__sanitizer): Define struct___old_kernel_stat_sz,
1460         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1461         (__sanitizer_ipc_perm): Adjust for sparc targets.
1462         (__sanitizer_shmid_ds): Likewsie.
1463         (__sanitizer_sigaction): Likewsie.
1464         (IOC_SIZE): Likewsie.
1466 2014-10-14  Jakub Jelinek  <jakub@redhat.com>
1468         * ubsan/Makefile.am (DEFS): Add -DPIC.
1469         * ubsan/Makefile.in: Regenerated.
1471 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
1473         * configure.tgt: Enable build on aarch64*-linux.
1475 2014-09-19  Kostya Serebryany  <kcc@google.com>
1477         * All source files: Merge from upstream r218156.
1478         * asan/Makefile.am (asan_files): Added new files.
1479         * asan/Makefile.in: Regenerate.
1480         * ubsan/Makefile.am (ubsan_files): Added new files.
1481         * ubsan/Makefile.in: Regenerate.
1482         * tsan/Makefile.am (tsan_files): Added new files.
1483         * tsan/Makefile.in: Regenerate.
1484         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1485           files.
1486         * sanitizer_common/Makefile.in: Regenerate.
1487         * asan/libtool-version: Bump the libasan SONAME.
1489 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
1491         * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
1492         upstream r215485, r217389, r217391 and r217400.
1494 2014-06-23  Paolo Carlini  <paolo.carlini@oracle.com>
1496         * sanitizer_common/sanitizer_common_interceptors.inc:
1497         Cherry pick upstream r211008.
1499 2014-06-11  Richard Biener  <rguenther@suse.de>
1501         * asan/asan_linux.cc: Cherry pick upstream r210012.
1503 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
1505         * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
1506         r209879.
1507         * sanitizer_common/sanitizer_common.h: Likewise.
1508         * asan/asan_mapping.h: Likewise.
1509         * asan/asan_linux.cc: Likewise.
1510         * tsan/tsan_mman.cc: Cherry pick upstream r209744.
1511         * sanitizer_common/sanitizer_allocator.h: Likewise.
1513 2014-05-23  Marek Polacek  <polacek@redhat.com>
1515         * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
1516         floating-point types.
1518 2014-05-22  Kostya Serebryany  <kcc@google.com>
1520         * All source files: Merge from upstream r209283.
1521         * asan/Makefile.am (asan_files): Added new files.
1522         * asan/Makefile.in: Regenerate.
1523         * tsan/Makefile.am (tsan_files): Added new files.
1524         * tsan/Makefile.in: Regenerate.
1525         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1526         files.
1527         * sanitizer_common/Makefile.in: Regenerate.
1529 2014-05-14  Yury Gribov  <y.gribov@samsung.com>
1531         PR sanitizer/61100
1532         * Makefile.am (nodist_saninclude_HEADERS): Install
1533         public headers.
1534         * Makefile.in: Regenerate.
1536 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1538         * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1539         Add ../../libbacktrace/sort.c.
1540         * libbacktrace/Makefile.in: Regenerate.
1541         * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1543 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1545         * configure.tgt: Unsupported for little endian PowerPC for now.
1547 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
1549         PR sanitizer/60055
1550         * tsan/tsan_flags.cc (__tsan_default_options): Add
1551         SANITIZER_INTERFACE_ATTRIBUTE.  Backport from upstream r200747.
1552         * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1554         PR sanitizer/60038
1555         * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1556         sanitizer_atomic.h and unistd.h.
1557         (kThreadDescriptorSize): Made static, remove initializer and const,
1558         change type to atomic_uintptr_t.
1559         (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1560         query glibc version, compute kThreadDescriptorSize depending on
1561         glibc version minor number.
1562         (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1563         kThreadDescriptorSize directly.
1565 2014-01-23  Yury Gribov  <y.gribov@samsung.com>
1566             Jakub Jelinek  <jakub@redhat.com>
1568         PR sanitizer/57316
1569         * configure.ac: Check for missing syscalls.
1570         * Makefile.am: Likewise.
1571         * configure: Regenerate.
1572         * Makefile.in: Regenerate.
1574 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1576         * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1577         (LibbacktraceSymbolizer::Demangle): New declaration.
1578         * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1579         (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1580         method if possible.
1581         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1582         "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1583         (struct CplusV3DemangleData): New type.
1584         (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1585         (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1586         SymbolizeDataCallback): Use CplusV3Demangle.
1587         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1588         -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1589         * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1590         cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1591         cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1592         cplus_demangle_init_info, cplus_demangle_mangled_name,
1593         cplus_demangle_operators, cplus_demangle_print,
1594         cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1595         cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1596         is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1597         Define.
1598         (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1599         (memcmp, strncmp): Redefine.
1600         * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1601         ../../libiberty/cp-demangle.c.
1602         * libbacktrace/bridge.cc (__asan_internal_memcmp,
1603         __asan_internal_strncmp): New functions.
1604         * sanitizer_common/Makefile.in: Regenerated.
1605         * libbacktrace/Makefile.in: Regenerated.
1606         * configure: Regenerated.
1607         * configure.ac: Regenerated.
1608         * config.h.in: Regenerated.
1610         * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1611         -isystem $(top_srcdir)/include/system.
1612         * sanitizer_common/Makefile.in: Regenerated.
1613         * include/system/linux/aio_abi.h: New header.
1614         * include/system/linux/mroute.h: New header.
1615         * include/system/linux/mroute6.h: New header.
1616         * include/system/linux/perf_event.h: New header.
1617         * include/system/linux/types.h: New header.
1619         PR sanitizer/59136
1620         * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1621         LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1622         and -I/-include flags.
1623         * lsan/Makefile.am (liblsan_la_LIBADD): Add
1624         libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1625         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1626         * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1627         * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1628         * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1629         libbacktrace.
1630         * README.gcc: Document that also lsan and ubsan are
1631         maintained in compiler-rt upstream.
1632         * libbacktrace/Makefile.am: New file.
1633         * libbacktrace/backtrace-rename.h: New file.
1634         * libbacktrace/backtrace-supported.h.in: New file.
1635         * libbacktrace/bridge.cc: New file.
1636         * configure.ac: Add tests needed for libbacktrace build
1637         within libsanitizer.
1638         * sanitizer_common/Makefile.in: Regenerated.
1639         * lsan/Makefile.in: Regenerated.
1640         * tsan/Makefile.in: Regenerated.
1641         * ubsan/Makefile.in: Regenerated.
1642         * libbacktrace/Makefile.in: Generated.
1643         * config.h.in: Regenerated.
1644         * configure: Regenerated.
1645         * Makefile.in: Regenerated.
1646         * interception/Makefile.in: Regenerated.
1647         * asan/Makefile.in: Regenerated.
1648         * aclocal.m4: Regenerated.
1650 2013-12-19  Kostya Serebryany  <kcc@google.com>
1652         * sanitizer_common/sanitizer_platform_limits_posix.cc:
1653         workaround for missing definition of EOWNERDEAD, backport
1654         from upstream r196779.
1656 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
1658         * sanitizer_common/sanitizer_platform_limits_posix.h
1659         (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1660         (__sanitizer_clock_t): Use long long for x32.
1662 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
1664         * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1665         <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1666         (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1668 2013-12-05  H.J. Lu  <hongjiu.lu@intel.com>
1670         * configure.ac (link_sanitizer_common): Add -lm.
1671         * configure: Regenerated.
1673 2013-12-05  Kostya Serebryany  <kcc@google.com>
1675         * All source files: Merge from upstream r196489.
1676         * merge.sh: Add *.S to the list of merged files.
1678 2013-12-05  Yury Gribov  <y.gribov@samsung.com>
1680         PR sanitizer/59368
1681         * Makefile.am (gcc_version): Added gcc_version.
1682         * Makefile.in: Regenerate.
1684 2013-12-05  Kostya Serebryany  <kcc@google.com>
1686         * All source files: Merge from upstream r196090.
1687         * tsan/Makefile.am (tsan_files): Added new files.
1688         * tsan/Makefile.in: Regenerate.
1689         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1690         * sanitizer_common/Makefile.in: Regenerate.
1691         * lsan/Makefile.am (lsan_files): Added new files.
1692         * lsan/Makefile.in: Regenerate.
1694 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1695             Yury Gribov  <y.gribov@samsung.com>
1697         PR sanitizer/59063
1698         * libsanitizer.spec.in: Add spec file to hold link flags for
1699         various sanitizer libs.
1700         * configure.ac: Check whether clock_* routines come from librt.
1701         * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1702         configure.ac.
1703         * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1704         * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1705         * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1706         * asan/Makefile.in: Regenerate.
1707         * interception/Makefile.in: Regenerate.
1708         * lsan/Makefile.in: Regenerate.
1709         * sanitizer_common/Makefile.in: Regenerate.
1710         * tsan/Makefile.in: Regenerate.
1711         * ubsan/Makefile.in: Regenerate.
1712         * Makefile.in: Regenerate.
1713         * configure: Regenerate.
1715 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
1716             Yury Gribov  <y.gribov@samsung.com>
1718         PR sanitizer/59106
1719         * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1720         don't need it.
1721         * ubsan/Makefile.in: Regenerated.
1723 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1725         PR sanitizer/59061
1726         * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1727         * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1728         * configure: Regenerated.
1729         * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1730         liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1731         * lsan/Makefile.in: Regenerated.
1733 2013-11-22  Mike Stump  <mikestump@comcast.net>
1735         * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1736         change from upstream to fix build.
1738 2013-11-18  Yury Gribov  <y.gribov@samsung.com>
1740         PR sanitizer/59106
1741         * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1742         * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1743         * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1744         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1745         * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1746         * asan/Makefile.in: Regenerate.
1747         * interception/Makefile.in: Regenerate.
1748         * tsan/Makefile.in: Regenerate.
1749         * lsan/Makefile.in: Regenerate.
1750         * sanitizer_common/Makefile.in: Regenerate.
1752 2013-11-15  Kostya Serebryany  <kcc@google.com>
1754         PR sanitizer/58994
1755         Backport from upstream revision 194573
1756         * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1757         back to the original functions in the common libsanitizer
1758         interceptors and the __cxa_atexit() interceptor on Darwin.
1760 2013-11-13  Peter Bergner  <bergner@vnet.ibm.com>
1762         PR sanitizer/59009
1763         * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1764         ifdef out more source.
1766 2013-11-12  Jakub Jelinek  <jakub@redhat.com>
1768         * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1769         ifdef out almost the whole source.
1770         * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1772 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1774         PR sanitizer/59018
1775         * sanitizer_common/sanitizer_platform_limits_posix.cc
1776         (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1777         defined.
1779 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1781         PR sanitizer/59018
1782         * sanitizer_common/sanitizer_platform_limits_linux.cc
1783         (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1784         defined.
1785         * sanitizer_common/sanitizer_platform_limits_posix.h
1786         (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1787         defined.
1788         (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1789         is defined.
1790         (__sanitizer___kernel_gid_t): Likewise.
1791         (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1792         is defined.
1794 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1796         PR sanitizer/59018
1797         * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1798         2 64-bit integers to save and restore fn and arg.  Properly load
1799         newtls/child_tidptr into r8/r10.
1801 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1803         PR sanitizer/59018
1804         * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1805         internal_munmap, internal_open, internal_read, internal_write,
1806         internal_stat, internal_lstat, internal_fstat, internal_readlink,
1807         internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1808         BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1809         internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1811 2013-11-04  Kostya Serebryany  <kcc@google.com>
1813         * All source files: Merge from upstream r191666.
1814         * merge.sh: Added lsan.
1815         * configure.ac (AC_CONFIG_FILES): Added lsan.
1816         * Makefile.am (SUBDIRS): Added lsan.
1817         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1818         * asan/Makefile.am (asan_files): Added new files.
1819         (libasan_la_LIBADD): Added a dependency on lsan.
1820         * lsan/Makefile.am: New file.
1821         * asan/Makefile.in: Regenerate.
1822         * lsan/Makefile.in: Regenerate.
1823         * Makefile.in: Regenerate.
1824         * configure: Regenerate.
1825         * sanitizer_common/Makefile.in: Regenerate.
1827 2013-09-20  Alan Modra  <amodra@gmail.com>
1829         * configure: Regenerate.
1831 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
1833         * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1834         libinterception.la for Darwin.
1835         * ubsan/Makefile.in: Regenerate.
1837 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
1839         * Makefile.am (SUBDIRS): Add ubsan.
1840         * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1841         * merge.sh: Merge ubsan.
1842         * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1843         * sanitizer_common/sanitizer_printf.cc: Likewise.
1844         * sanitizer_common/sanitizer_common.h: Likewise.
1845         * ubsan: New directory. Import ubsan runtime from llvm.
1847 2013-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
1849         * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1850         Cherry pick upstream r182922.
1852 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
1854         * configure.tgt: Add ARM pattern.
1856 2013-03-22  Jakub Jelinek  <jakub@redhat.com>
1858         PR other/43620
1859         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1860         * Makefile.in: Regenerated.
1861         * asan/Makefile.in: Regenerated.
1862         * interception/Makefile.in: Regenerated.
1863         * sanitizer_common/Makefile.in: Regenerated.
1864         * tsan/Makefile.in: Regenerated.
1866 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
1868         * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1869         * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1870         0x4fffffffffULL.
1872 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
1874         PR sanitizer/56393
1875         * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1876         libasan_preinit.o.
1877         (libasan_preinit.o): Depend on asan_preinit.o.
1878         * asan/Makefile.in: Regenerated.
1879         * asan/asan_preinit.cc: New file, synced from upstream.
1880         * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1882 2013-02-21  Jack Howarth  <howarth@bromo.med.uc.edu>
1884         * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1885         dynamic/asan_interceptors_dynamic.cc.
1886         * asan/Makefile.in: Regenerated.
1887         * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1889 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
1891         * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1892         defined.  Add used attribute.
1894 2013-02-21  Kostya Serebryany  <kcc@google.com>
1896         * All source files: Merge from upstream r175733.
1897         * sanitizer_common/Makefile.am: Added a new file.
1898         * sanitizer_common/Makefile.in: Regenerated.
1900 2013-02-14  H.J. Lu  <hongjiu.lu@intel.com>
1902         PR bootstrap/56327
1903         * interception/interception.h (OFF_T): Merged from upstream
1904         r175140.
1906 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
1908         * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1910 2013-02-13  Kostya Serebryany  <kcc@google.com>
1912         PR sanitizer/56128
1913         * All source files: Merge from upstream r175049.
1914         * interception/Makefile.am: added include path.
1915         * interception/Makefile.in: Regenerated.
1917 2013-02-11  Jack Howarth  <howarth@bromo.med.uc.edu>
1919         * configure.tgt: Disable build on darwin9 and earlier.
1921 2013-01-23  Kostya Serebryany  <kcc@google.com>
1923         PR sanitizer/55989
1924         * All source files: Merge from upstream r173241.
1925         * merge.sh: Support merging .inc files.
1927 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
1929         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1930         -Wno-c99-extensions.
1931         * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1932         * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1933         * sanitizer_common/Makefile.in: Regenerated.
1934         * interception/Makefile.in: Regenerated.
1935         * asan/Makefile.in: Regenerated.
1937 2013-01-10  Wei Mi  <wmi@google.com>
1939         PR sanitizer/55488
1940         * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1941         * tsan/Makefile.in: Regenerated.
1942         * tsan/tsan_rtl.h: Enable HACKY_CALL.
1944 2013-01-10  Kostya Serebryany  <kcc@google.com>
1946         * All source files: Merge from upstream r171973.
1947         * sanitizer_common/Makefile.am: Added new files.
1948         * asan/Makefile.am: Likewise.
1949         * tsan/Makefile.am: Likewise.
1950         * sanitizer_common/Makefile.in: Regenerated.
1951         * asan/Makefile.in: Likewise.
1952         * tsan/Makefile.in: Likewise.
1954 2013-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1956         * asan/Makefile.am (libasan_la_LIBADD): Replace
1957         LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1958         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1959         * Makefile.in: Regenerated.
1960         * configure: Likewise.
1961         * asan/Makefile.in: Likewise.
1962         * interception/Makefile.in: Likewise.
1963         * sanitizer_common/Makefile.in: Likewise.
1964         * tsan/Makefile.in: Likewise.
1966 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1968         * Makefile.am (AM_MAKEFLAGS): Restored.
1969         * interception/Makefile.am: Likewise.
1970         * sanitizer_common/Makefile.am: Likewise.
1971         * tsan/Makefile.am: Likewise.
1972         * Makefile.in: Regenerated.
1973         * asan/Makefile.in: Likewise.
1974         * interception/Makefile.in: Likewise.
1975         * sanitizer_common/Makefile.in: Likewise.
1976         * tsan/Makefile.in: Likewise.
1978 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1980         * Makefile.am (MAKEOVERRIDES): Restored.
1981         * asan/Makefile.am: Likewise.
1982         * interception/Makefile.am: Likewise.
1983         * sanitizer_common/Makefile.am: Likewise.
1984         * tsan/Makefile.am: Likewise.
1985         * Makefile.in: Regenerated.
1986         * asan/Makefile.in: Likewise.
1987         * interception/Makefile.in: Likewise.
1988         * sanitizer_common/Makefile.in: Likewise.
1989         * tsan/Makefile.in: Likewise.
1991 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1993         * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1994         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1995         * Makefile.in: Regenerated.
1996         * configure: Likewise.
1997         * asan/Makefile.in: Likewise.
1998         * interception/Makefile.in: Likewise.
1999         * sanitizer_common/Makefile.in: Likewise.
2000         * tsan/Makefile.in: Likewise.
2002 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
2004         * Makefile.am (AM_MAKEFLAGS): Removed.
2005         (MAKEOVERRIDES): Likewise.
2006         * asan/Makefile.am: Likewise.
2007         * interception/Makefile.am: Likewise.
2008         * sanitizer_common/Makefile.am: Likewise.
2009         * tsan/Makefile.am: Likewise.
2010         * Makefile.in: Regenerated.
2011         * asan/Makefile.in: Likewise.
2012         * interception/Makefile.in: Likewise.
2013         * sanitizer_common/Makefile.in: Likewise.
2014         * tsan/Makefile.in: Likewise.
2016 2012-12-11  H.J. Lu  <hongjiu.lu@intel.com>
2018         PR sanitizer/55533
2019         * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
2020         * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
2021         * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
2022         (AM_MAKEFLAGS): Remove CC and CXX.
2023         * interception/Makefile.am: Likewise.
2024         * sanitizer_common/Makefile.am: Likewise.
2025         * tsan/Makefile.am: Likewise.
2026         * Makefile.in: Regenerated.
2027         * aclocal.m4: Likewise.
2028         * configure: Likewise.
2029         * asan/Makefile.in: Likewise.
2030         * interception/Makefile.in: Likewise.
2031         * sanitizer_common/Makefile.in: Likewise.
2032         * tsan/Makefile.in: Likewise.
2034 2012-12-06  Peter Bergner  <bergner@vnet.ibm.com>
2036         * configure.tgt: Enable build on powerpc*-linux.
2038 2012-12-06  Jack Howarth  <howarth@bromo.med.uc.edu>
2040         PR 55599/sanitizer
2041         * configure.ac: Set enable_static=no on darwin.
2042         * configure: Regenerated.
2044 2012-12-06  Kostya Serebryany  <kcc@google.com>
2046         * All files: Merge from upstream r169392.
2048 2012-12-05  Kostya Serebryany  <kcc@google.com>
2050         * All files: Merge from upstream r169371.
2052 2012-12-04  Kostya Serebryany  <kcc@google.com>
2053             Jack Howarth  <howarth@bromo.med.uc.edu>
2055         PR 55521/sanitizer
2056         * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
2057         * Makefile.am: Don't build interception subdir when
2058         USING_MAC_INTERPOSE defined.
2059         * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
2060         -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
2061         Compile asan_interceptors_dynamic.cc but not libinterception
2062         when USING_MAC_INTERPOSE defined.
2063         * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
2064         * configure: Regenerated.
2065         * Makefile.in: Likewise.
2066         * asan/Makefile.in: Likewise.
2067         * interception/Makefile.in: Likewise.
2068         * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
2069         * asan/asan_mac.cc: Likewise.
2070         * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
2071         and use MISSING_BLOCKS_SUPPORT.
2072         * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
2073         * interception/mach_override/LICENSE.txt: Remove unused file.
2074         * interception/mach_override/mach_override.c: Likewise.
2075         * interception/mach_override/mach_override.h: Likewise.
2076         * interception/mach_override: Remove unused directory.
2078 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
2080         * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
2081         * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
2082         * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
2083         files.
2084         (AM_MAKEFLAGS): Restore CC and CXX.
2085         * interception/Makefile.am: Likewise.
2086         * sanitizer_common/Makefile.am: Likewise.
2087         * tsan/Makefile.am: Likewise.
2088         * Makefile.in: Regenerated.
2089         * aclocal.m4: Likewise.
2090         * configure: Likewise.
2091         * asan/Makefile.in: Likewise.
2092         * interception/Makefile.in: Likewise.
2093         * sanitizer_common/Makefile.in: Likewise.
2094         * tsan/Makefile.in: Likewise.
2096 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
2098         * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
2099         * configure.ac (ACX_NONCANONICAL_TARGET): New.
2100         * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
2101         files.
2102         (AM_MAKEFLAGS): Remove CC and CXX.
2103         * interception/Makefile.am: Likewise.
2104         * sanitizer_common/Makefile.am: Likewise.
2105         * tsan/Makefile.am: Likewise.
2106         * Makefile.in: Regenerated.
2107         * aclocal.m4: Likewise.
2108         * configure: Likewise.
2109         * asan/Makefile.in: Likewise.
2110         * interception/Makefile.in: Likewise.
2111         * sanitizer_common/Makefile.in: Likewise.
2112         * tsan/Makefile.in: Likewise.
2114 2012-11-27  Kostya Serebryany  <kcc@google.com>
2116         * All files: Merge from upstream r168699.
2118 2012-11-24  Kostya Serebryany  <kcc@google.com>
2119             Jack Howarth  <howarth@bromo.med.uc.edu>
2121         * interception/mach_override/mach_override.c: Migrate from llvm.
2122         * interception/mach_override/mach_override.h: Likewise.
2123         * interception/mach_override/LICENSE.txt: Likewise.
2124         * configure.tgt: Add darwin to supported targets.
2125         * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
2126         * interception/Makefile.am: Compile mach_override.c when
2127         USING_MACH_OVERRIDE defined.
2128         * configure: Regenerated.
2129         * interception/Makefile.in: Likewise.
2131 2012-11-23  H.J. Lu  <hongjiu.lu@intel.com>
2133         PR sanitizer/55450
2134         * tsan/Makefile.am (gcc_version): New.
2135         * tsan/Makefile.in: Regenerated.
2137 2012-11-23  Kostya Serebryany  <kcc@google.com>
2139         * merge.sh: Support tsan, support added/removed files.
2140         * tsan/Makefile.am: Remove tsan_printf.cc.
2141         * tsan/Makefile.in: Regenerated.
2142         * other files: Merge from upstream r168514.
2144 2012-11-23  Kostya Serebryany  <kcc@google.com>
2146         * merge.sh: New file.
2148 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2150         * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
2151         * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
2152         automake conditional instead of !MULTISUBDIR32.
2153         * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
2154         for 64-bit multilib.
2155         * configure.ac: Check for void * size, source in configure.tgt,
2156         define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
2157         * configure: Regenerated.
2158         * Makefile.in: Regenerated.
2159         * tsan/Makefile.in: Regenerated.
2161 2012-11-22  Wei Mi  <wmi@google.com>
2163         * tsan: New directory. Import tsan runtime from llvm.
2164         * configure.ac: Add 64 bits tsan build.
2165         * Makefile.am: Likewise.
2166         * configure: Regenerated.
2167         * Makefile.in: Likewise.
2169 2012-11-21  Kostya Serebryany  <kcc@google.com>
2171         * README.gcc: Extend the README.gcc with mode details.
2173 2012-11-20  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2175         * sanitizer_common/sanitizer_linux.cc
2176         (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
2177         (internal_mmap): Use it.
2178         (internal_filesize): Likewise.
2180 2012-11-16  Tom Tromey  <tromey@redhat.com>
2182         * configure.ac: Invoke AM_MAINTAINER_MODE.
2183         * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
2184         interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
2186 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
2188         PR other/55333
2189         * include/sanitizer/common_interface_defs.h (uhwptr): New type
2190         for hardware pointer.
2191         * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
2192         Replace uptr with uhwptr for stack unwind.
2194 2012-11-16  Dodji Seketeli  <dodji@redhat.com>
2196         * configure.tgt: Enable build on sparc linux.
2198 2012-11-15  H.J. Lu  <hongjiu.lu@intel.com>
2200         * configure.ac: Properly set MULTISUBDIR.
2201         * asan/Makefile.am (gcc_version): New.
2202         * interception/Makefile.am (gcc_version): Likewise.
2203         * sanitizer_common/Makefile.am (gcc_version): Likewise.
2204         * configure: Regenerated.
2205         * asan/Makefile.in: Likewise.
2206         * interception/Makefile.in: Likewise.
2207         * sanitizer_common/Makefile.in: Likewise.
2209 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
2211         PR other/55291
2212         * configure.ac (--enable-version-specific-runtime-libs): New option.
2213         (AC_CANONICAL_SYSTEM): New.
2214         (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
2215         (toolexecdir): Support multilib.
2216         (toolexeclibdir): Likewise.
2217         (multilib_arg): New.
2218         * Makefile.in: Regenerated.
2219         * aclocal.m4: Likewise.
2220         * configure: Likewise.
2221         * asan/Makefile.in: Likewise.
2222         * interception/Makefile.in: Likewise.
2223         * sanitizer_common/Makefile.in: Likewise.
2225 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
2227         PR other/55292
2228         Backport from upstream revision 167883
2229         * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
2230         __x86_64__ instead of __WORDSIZE.
2231         (internal_filesize): Likwise.
2233 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
2235         * configure.ac (AC_CONFIG_AUX_DIR): Removed.
2236         * Makefile.in: Regenerated.
2237         * configure: Likewise.
2239 2012-11-13  H.J. Lu  <hongjiu.lu@intel.com>
2241         PR other/55304
2242         * acinclude.m4: New file.
2243         * Makefile.am (ACLOCAL_AMFLAGS): New.
2244         * configure.ac (AC_PREREQ): Set to 2.64.
2245         (AC_CONFIG_AUX_DIR): Set to "..".
2246         * Makefile.in: Regenerated.
2247         * aclocal.m4: Likewise.
2248         * configure: Likewise.
2249         * asan/Makefile.in: Likewise.
2250         * interception/Makefile.in: Likewise.
2251         * sanitizer_common/Makefile.in: Likewise.
2253         * config.guess: Removed.
2254         * config.sub: Likewise.
2255         * depcomp: Likewise.
2256         * install-sh: Likewise.
2257         * ltmain.sh: Likewise.
2258         * missing: Likewise.
2260 2012-11-13  Richard Henderson  <rth@redhat.com>
2262         * configure.tgt: New file.
2264 2012-11-12  David S. Miller  <davem@davemloft.net>
2266         * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
2268 2012-10-29  Wei Mi  <wmi@google.com>
2270         Initial checkin: migrate asan runtime from llvm.