Use the SIGNED_16BIT_OFFSET_EXTRA_P macro for 16-bit signed tests.
[official-gcc.git] / libsanitizer / ChangeLog
blob7c1f34a2e002ee5b7918c66afc8dab78d9f9a961
1 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
3         * configure: Regenerate.
5 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
6         Mickaël Guêné <mickael.guene@st.com>
8         * configure.tgt (arm*-*-*fdpiceabi): Sanitizers are
9         unsupported in this configuration.
11 2019-08-16  Iain Sandoe  <iain@sandoe.co.uk>
13         * LOCAL_PATCHES: Add r274585.
15 2019-08-16  Iain Sandoe  <iain@sandoe.co.uk>
17         * asan/asan_interceptors.h: Reapply r272406.
19 2019-08-15  Martin Liska  <mliska@suse.cz>
21         * LOCAL_PATCHES: Add r274540
23 2019-08-15  Martin Liska  <mliska@suse.cz>
25         * tsan/tsan_rtl_ppc64.S: Reapply.
27 2019-08-15  Iain Sandoe  <iain@sandoe.co.uk>
29         PR bootstrap/91455
30         * Makefile.in: Regenerated.
31         * aclocal.m4: Likewise.
32         * asan/Makefile.in: Likewise.
33         * configure: Likewise.
34         * interception/Makefile.in: Likewise.
35         * libbacktrace/Makefile.in: Likewise.
36         * lsan/Makefile.in: Likewise.
37         * sanitizer_common/Makefile.am: Include top_srcdir unconditionally.
38         * sanitizer_common/Makefile.in: Regenerated.
39         * tsan/Makefile.in: Likewise.
40         * ubsan/Makefile.in: Likewise.
42 2019-08-14  Martin Liska  <mliska@suse.cz>
44         * LOCAL_PATCHES: Refresh based on what was committed.
46 2019-08-14  Martin Liska  <mliska@suse.cz>
48         * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply
49         patch from trunk.
50         (CheckODRViolationViaPoisoning): Likewise.
51         (RegisterGlobal): Likewise.
52         * asan/asan_mapping.h: Likewise.
53         * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise.
54         * sanitizer_common/sanitizer_mac.cpp (defined): Likewise.
55         * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise.
56         * sanitizer_common/sanitizer_platform_limits_posix.h (defined): Likewise.
57         * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise.
58         * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
59         (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
60         * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
61         (struct CFICheckFailData): Likewise.
62         (RECOVERABLE): Likewise.
63         * ubsan/ubsan_platform.h: Likewise.
65 2019-08-14  Martin Liska  <mliska@suse.cz>
67         PR sanitizer/89832
68         PR sanitizer/91325
69         * All source files: Merge from upstream 368656.
71 2019-06-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
73         * sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick
74         compiler-rt revision 363778.
76 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
78         PR libsanitizer/87880
79         * asan/asan_interceptors.h:
80         (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New.
81         * asan/Makefile.am (DEFS): Add 
82         ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0.
83         * asan/Makefile.in: Regenerated.
84         * asan/libtool-version: Bump version.
86 2019-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
88         PR target/90639
89         * tsan/tsan_rtl_ppc64.S: Add ".machine altivec".
91 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
93         * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
94         handling.
95         * configure: Regenerate.
97 2019-04-08  Martin Liska  <mliska@suse.cz>
99         * LOCAL_PATCHES: Add revision.
101 2019-04-08  Martin Liska  <mliska@suse.cz>
103         PR sanitizer/89941
104         * sanitizer_common/sanitizer_platform_limits_linux.cc (defined):
105         Reapply patch from r259664.
106         * sanitizer_common/sanitizer_platform_limits_posix.h (defined):
107         Likewise.
109 2019-03-13  Eric Botcazou  <ebotcazou@adacore.com>
111         PR sanitizer/80953
112         Merge from LLVM revision 355980
113         * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC.
114         (kAllocatorSize): Likewise.
115         (DefaultSizeClassMap): Likewise.
116         * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define.
117         (SHADOW_OFFSET): Define for SPARC.
118         Include asan_mapping_sparc64.h for SPARC 64-bit.
119         * asan/asan_mapping_sparc64.h: New file.
121 2019-03-13  Eric Botcazou  <ebotcazou@adacore.com>
123         PR sanitizer/80953
124         Merge from LLVM revision 355979
125         * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
126         copy Global objects for SPARC with GCC.
128 2019-03-13  Eric Botcazou  <ebotcazou@adacore.com>
130         PR sanitizer/80953
131         Merge from LLVM revision 355978
132         * sanitizer_common/sanitizer_allocator_primary32.h
133         (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if
134         SANITIZER_SIGN_EXTENDED_ADDRESSES is set.
135         (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES.
136         (ComputeRegionId): Likewise.
137         * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return
138         appropriate value for SPARC 64-bit.
139         * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE):
140         Define for SPARC.
141         (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit.
143 2019-03-13  Eric Botcazou  <ebotcazou@adacore.com>
145         PR sanitizer/80953
146         Merge from LLVM revision 355965
147         * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for
148         SPARC/Linux.
149         (GetPcSpBp): Likewise.
150         * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc):
151         Adjust for SPARC.
152         * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND):
153         Define to 1 for SPARC.
154         * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite.
155         * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack):
156         Adjust the PC address for SPARC with GCC.
158 2019-03-06  Martin Liska  <mliska@suse.cz>
160         PR sanitizer/88684
161         * sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
162         (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
163         * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
164         Likewise.
166 2019-02-20  H.J. Lu  <hongjiu.lu@intel.com>
168         PR sanitizer/89409
169         * sanitizer_common/sanitizer_linux.cc (internal_readlink):
170         Cherry-pick compiler-rt r354451.
172 2019-01-23  Jonny Grant  <jg@jguk.org>
174         PR sanitizer/89010
175         * libsanitizer/README.gcc: Update to current https URLs.
177 2018-12-27  Martin Liska  <mliska@suse.cz>
179         PR sanitizer/86229
180         * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
181         pick rL350085.
182         * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
184 2018-11-09  Martin Liska  <mliska@suse.cz>
186         * LOCAL_PATCHES: Include one local patch.
188 2018-11-09  Martin Liska  <mliska@suse.cz>
190         PR sanitizer/87892
191         * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return
192         1 when CPU_COUNT macro is not defined.
194 2018-11-08  Bill Seurer  <seurer@linux.vnet.ibm.com>
196         * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
197         Disable ASLR for powerpc64 when using sanitizers.
199 2018-11-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
201         PR sanitizer/80953
202         * configure.tgt (sparc*-*-solaris2.11*): Enable.
203         (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
205 2018-11-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
207         PR sanitizer/80953
208         * sanitizer_common/sanitizer_internal_defs.h,
209         sanitizer_common/sanitizer_platform_limits_solaris.h,
210         sanitizer_common/sanitizer_procmaps_solaris.cc,
211         sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
212         revision 346153.
213         * sanitizer_common/sanitizer_stacktrace.h,
214         sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
215         compiler-rt revision 346155.
217 2018-11-05  Segher Boessenkool  <segher@kernel.crashing.org>
219         * LOCAL_PATCHES: Add r258525.
220         * sanitizer_common/sanitizer_stacktrace.cc
221         (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
222         for PowerPC SYSV ABI.
224 2018-11-05  Martin Liska  <mliska@suse.cz>
226         PR sanitizer/87860
227         * sanitizer_common/sanitizer_linux.cc:  Cherry-pick upstream
228         r346129.
230 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
232         PR bootstrap/82856
233         * Makefile.am: Include multilib.am.
234         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
235         * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
236         interception/Makefile.in, libbacktrace/Makefile.in,
237         lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
238         ubsan/Makefile.in: Regenerate.
240 2018-10-31  Martin Liska  <mliska@suse.cz>
242         * LOCAL_PATCHES: Update to installed revisions.
244 2018-10-31  Martin Liska  <mliska@suse.cz>
246         * ubsan/ubsan_platform.h: Add ifndef as we define it with
247         -DCAN_SANITIZE_UB CFLAGS.
249 2018-10-31  Martin Liska  <mliska@suse.cz>
251         * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
253 2018-10-31  Martin Liska  <mliska@suse.cz>
255         * LOCAL_PATCHES: Update patch list.
256         * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
257         patches from GCC's trunk.
258         (CheckODRViolationViaPoisoning): Likewise.
259         (RegisterGlobal): Likewise.
260         * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
261         * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
262         * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
263         (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
264         * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
265         (struct CFICheckFailData): Likewise.
266         (RECOVERABLE): Likewise.
268 2018-10-31  Martin Liska  <mliska@suse.cz>
270         * config.h.in: Regenerate.
271         * configure: Likewise.
272         * sanitizer_common/Makefile.am: Include new files, remove old
273         files.
274         * sanitizer_common/Makefile.in: Regenerate.
275         * ubsan/Makefile.am: Include new files, remove old
276         files.
277         * ubsan/Makefile.in: Likewise.
278         * asan/Makefile.am: Include new files.
279         * asan/Makefile.in: Regenerate.
281 2018-10-31  Martin Liska  <mliska@suse.cz>
283         * All source files: Merge from upstream 345033.
285 2018-10-31  Martin Liska  <mliska@suse.cz>
287         * HOWTO_MERGE: Enhance documentation.
288         * merge.sh: Add support for git as well.
290 2018-08-02  Martin Liska  <mliska@suse.cz>
292         PR sanitizer/86022
293         * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
294         Cherry-pick compiler-rt revision 338606.
296 2018-08-01  Marek Polacek  <polacek@redhat.com>
298         PR sanitizer/86759
299         * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
300         * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
301         319180.
303 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
305         PR target/86560
306         * asan/asan_interceptors.cc (swapcontext) Cherry-pick
307         compiler-rt revision 337603.
308         * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
309         Likewise.
311 2018-07-05  Jakub Jelinek  <jakub@redhat.com>
313         Revert
314         2018-07-04  Maxim Ostapenko  <m.ostapenko@samsung.com>
316         PR sanitizer/84250
317         * Makefile.am: Reorder libs.
318         * Makefile.in: Regenerate.
319         * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
320         libsanitizer_ubsan.la.
321         * asan/Makefile.in: Regenerate.
322         * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
323         * ubsan/Makefile.in: Regenerate.
325 2018-07-04  Maxim Ostapenko  <m.ostapenko@samsung.com>
327         PR sanitizer/84250
328         * Makefile.am: Reorder libs.
329         * Makefile.in: Regenerate.
330         * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
331         libsanitizer_ubsan.la.
332         * asan/Makefile.in: Regenerate.
333         * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
334         * ubsan/Makefile.in: Regenerate.
336 2018-06-13  Denis Khalikov  <d.khalikov@partner.samsung.com>
338         PR sanitizer/86090
339         * configure.ac: Check for lstat and readlink.
340         * configure, config.h.in: Rebuild.
342 2018-05-31  Matthias Klose  <doko@ubuntu.com>
344         PR sanitizer/86012
345         * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
346         SIZEOF_STRUCT_USTAT for 32bit sparc.
348 2018-05-24  H.J. Lu  <hongjiu.lu@intel.com>
350         PR sanitizer/85835
351         * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
352         include <sys/ustat.h> for Linux.
353         (SIZEOF_STRUCT_USTAT): New.
354         (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
356 2018-04-26  Hans-Peter Nilsson  <hp@axis.com>
358         * configure.tgt <mips*-*-linux*>: Enable build, excluding
359         mips*64*-*-linux*.
361         * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
362         take the shortcut to #include <sys/stat.h> for MIPS instead of
363         the kernel <asm/stat.h>.  Explain why sys/stat.h is misleading
364         or wrong to get the kernel struct stat.
365         * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
366         Correct the value for 32-bit non-android struct_kernel_stat_sz.
368         * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
369         && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
371 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
373         * configure: Regenerated.
375 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
377         * configure: Regenerated.
379 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
381         PR jit/85384
382         * configure: Regenerate.
384 2018-04-18  Bill Seurer  <seurer@linux.vnet.ibm.com>
386         PR sanitizer/85389
387         * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
388         from 0xa0000000000ULL to ~(uptr)0.
390 2018-03-19  Jakub Jelinek  <jakub@redhat.com>
392         PR sanitizer/84761
393         * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
394         Define if not defined.
395         (DL_INTERNAL_FUNCTION): Don't define.
396         (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
397         determine at runtime whether to use regparm(3), stdcall calling
398         convention for older glibcs or normal calling convention for
399         newer glibcs for call to _dl_get_tls_static_info.
401 2018-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
403         * sanitizer_common/sanitizer_stacktrace.cc
404         (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
405         for PowerPC SYSV ABI.
407 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
409         PR target/84148
410         * configure: Regenerate.
412 2018-02-05  Martin Liska  <mliska@suse.cz>
414         * asan/asan_flags.inc: Cherry-pick upstream r323995.
415         * asan/asan_report.cc (CheckForInvalidPointerPair):
416         Cherry-pick upstream r323995.
418 2018-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
420         PR sanitizer/82825
421         * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
422         r324284.
424 2018-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
426         PR sanitizer/82824
427         * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
429 2017-12-05  Martin Liska  <mliska@suse.cz>
430             Jakub Jelinek  <jakub@redhat.com>
432         * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
433         * asan/asan_descriptions.h: Likewise.
434         * asan/asan_report.cc: Likewise.
435         * asan/asan_thread.cc: Likewise.
436         * asan/asan_thread.h: Likewise.
438 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
440         * acinclude.m4: Add enable.m4 and cet.m4.
441         * Makefile.in: Regenerate.
442         * asan/Makefile.am: Update AM_CXXFLAGS.
443         * asan/Makefile.in: Regenerate.
444         * configure: Likewise.
445         * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
446         EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
447         * interception/Makefile.am: Update AM_CXXFLAGS.
448         * interception/Makefile.in: Regenerate.
449         * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
450         * libbacktrace/Makefile.in: Regenerate.
451         * lsan/Makefile.am: Update AM_CXXFLAGS.
452         * lsan/Makefile.in: Regenerate.
453         * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
454         AM_CCASFLAGS.
455         * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
456         Add _CET_ENDBR macro.
457         * sanitizer_common/Makefile.in: Regenerate.
458         * tsan/Makefile.am: Update AM_CXXFLAGS.
459         * tsan/Makefile.in: Regenerate.
460         * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
461         * ubsan/Makefile.am: Update AM_CXXFLAGS.
462         * ubsan/Makefile.in: Regenerate.
464 2017-11-08  Jakub Jelinek  <jakub@redhat.com>
466         PR bootstrap/82670
467         * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
468         and ubsan_signals_standalone.cc.
469         * ubsan/Makefile.in: Regenerated.
471 2017-11-05  Tom de Vries  <tom@codesourcery.com>
473         PR other/82784
474         * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
475         "do {} while (0)".
476         * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
478 2017-10-20  Jakub Jelinek  <jakub@redhat.com>
480         PR sanitizer/82595
481         * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
482         * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
483         liblsan_preinit.o.
484         (lsan_files): Remove lsan_preinit.cc.
485         (liblsan_preinit.o): New rule.
486         * lsan/Makefile.in: Regenerated.
488 2017-10-19  Jakub Jelinek  <jakub@redhat.com>
490         * All source files: Merge from upstream 315899.
491         * asan/Makefile.am (nodist_saninclude_HEADERS): Add
492         include/sanitizer/tsan_interface.h.
493         * asan/libtool-version: Bump the libasan SONAME.
494         * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
495         (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
496         * sanitizer_common/Makefile.am (sanitizer_common_files): Add
497         sancov_flags.cc, sanitizer_allocator_checks.cc,
498         sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
499         sanitizer_file.cc, sanitizer_mac_libcdep.cc and
500         sanitizer_stoptheworld_mac.cc.  Remove sanitizer_coverage_libcdep.cc
501         and sanitizer_coverage_mapping_libcdep.cc.
502         * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
503         * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
504         (ubsan_files): Add ubsan_init_standalone.cc and
505         ubsan_signals_standalone.cc.
506         * ubsan/libtool-version: Bump the libubsan SONAME.
507         * asan/Makefile.in: Regenerate.
508         * lsan/Makefile.in: Regenerate.
509         * sanitizer_common/Makefile.in: Regenerate.
510         * tsan/Makefile.in: Regenerate.
511         * ubsan/Makefile.in: Regenerate.
513 2017-10-05  H.J. Lu  <hongjiu.lu@intel.com>
515         PR sanitizer/82379
516         * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
517         to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
519 2017-10-02  Jakub Jelinek  <jakub@redhat.com>
521         * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
522         Define.
524 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
526         * include/system/sys/ptrace.h: New file.
528 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
530         PR sanitizer/80998
531         * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
532         * ubsan/ubsan_checks.inc: Likewise.
533         * ubsan/ubsan_handlers.h: Likewise.
535 2017-07-14  Jakub Jelinek  <jakub@redhat.com>
537         PR sanitizer/81066
538         * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
539         * sanitizer_common/sanitizer_linux.cc: Likewise.
540         * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
541         * tsan/tsan_platform_linux.cc: Likewise.
543 2017-04-06  Martin Liska  <mliska@suse.cz>
545         PR sanitizer/80166
546         * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
547         Cherry-pick upstream r299036.
549 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
551         PR sanitizer/78158
552         * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
554 2017-02-16  Andreas Tobler  <andreast@gcc.gnu.org>
556         PR sanitizer/79562
557         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
558         upstream r294806.
560 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
562         PR sanitizer/79341
563         * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
564         s390-linux 31-bit.
565         * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
566         r294793.
567         * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
568         upstream r294790.
569         * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
570         r294799.
572 2017-02-03  Maxim Ostapenko  <m.ostapenko@samsung.com>
574         PR sanitizer/78663
575         * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
576         * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
578 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
580         * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
582 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
584         * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
586         PR sanitizer/79168
587         * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
588         if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
589         text.
590         * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
591         * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
592         * tsan/tsan_ppc_regs.h: Likewise.
593         * tsan/tsan_rtl_aarch64.S: Likewise.
594         * tsan/tsan_rtl_mips64.S: Likewise.
595         * tsan/tsan_rtl_ppc64.S: Likewise.
597 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
599         PR other/79046
600         * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
601         instead of cat to get version from BASE-VER file.
602         * asan/Makefile.am (gcc_version): Likewise.
603         * ubsan/Makefile.am (gcc_version): Likewise.
604         * sanitizer_common/Makefile.am (gcc_version): Likewise.
605         * lsan/Makefile.am (gcc_version): Likewise.
606         * tsan/Makefile.am (gcc_version): Likewise.
607         * interception/Makefile.in: Regenerated.
608         * asan/Makefile.in: Regenerated.
609         * ubsan/Makefile.in: Regenerated.
610         * sanitizer_common/Makefile.in: Regenerated.
611         * lsan/Makefile.in: Regenerated.
612         * tsan/Makefile.in: Regenerated.
614 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
616         PR other/79046
617         * configure.ac: Add GCC_BASE_VER.
618         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
619         get version from BASE-VER file.
620         * libbacktrace/Makefile.in: Regenerated.
621         * interception/Makefile.in: Regenerated.
622         * asan/Makefile.in: Regenerated.
623         * ubsan/Makefile.in: Regenerated.
624         * configure: Regenerated.
625         * sanitizer_common/Makefile.in: Regenerated.
626         * lsan/Makefile.in: Regenerated.
627         * Makefile.in: Regenerated.
628         * tsan/Makefile.in: Regenerated.
630 2017-01-10  James Clarke  <jrtc27@jrtc27.com>
632         PR sanitizer/78992
633         * sanitizer_common/sanitizer_platform_limits_posix.h
634         (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
636 2016-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
638         * LOCAL_PATCHES: Add revision.
640 2016-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
642         PR sanitizer/78532
643         * sanitizer_common/sanitizer_platform_limits_posix.h
644         (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
645         versions.
647 2016-11-29  Markus Trippelsdorf  <markus@trippelsdorf.de>
649         * LOCAL_PATCHES: Remove r242480.
651 2016-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
653         * LOCAL_PATCHES: Add revision.
655 2016-11-20  Jack Howarth  <howarth.at.gcc@gmail.com>
657         PR sanitizer/78267
658         * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
659         compiler supports blocks extension.
661 2016-11-16  Markus Trippelsdorf  <markus@trippelsdorf.de>
663         * LOCAL_PATCHES: Add revision.
665 2016-11-16  Markus Trippelsdorf  <markus@trippelsdorf.de>
667         PR sanitizer/78294
668         * tsan/tsan_rtl.cc: Add missing attribute.
670 2016-11-16  Maxim Ostapenko  <m.ostapenko@samsung.com>
672         * LOCAL_PATCHES: New file.
674 2016-11-16  Maxim Ostapenko  <m.ostapenko@samsung.com>
676         PR sanitizer/78307
677         * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
678         ( __ubsan_handle_cfi_bad_icall_abort): Likewise. 
679         * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
680         * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
681         function.
682         (__ubsan_handle_cfi_bad_type_abort): Likewise.
683         * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
684         (__ubsan_handle_cfi_bad_type): Export function.
685         (__ubsan_handle_cfi_bad_type_abort): Likewise.
686         * HOWTO_MERGE: Update documentation.
688 2016-11-15  Matthias Klose  <doko@ubuntu.com>
690         * configure: Regenerate.
692 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
694         * asan/asan_globals.cc (RegisterGlobal): Do not call
695         CheckODRViolationViaPoisoning.
696         (CheckODRViolationViaPoisoning): Remove.
698 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
700         * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
701         compiled code with GCC when extracting the caller PC for ARM if no
702         valid frame pointer is available.
704 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
706         PR sanitizer/63958
707         Reapply:
708         2014-10-14  David S. Miller  <davem@davemloft.net>
710         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
711         Define at __kernel_time_t, as needed for sparc.
712         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
713         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
714         (__sanitizer): Define struct___old_kernel_stat_sz,
715         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
716         (__sanitizer_ipc_perm): Adjust for sparc targets.
717         (__sanitizer_shmid_ds): Likewsie.
718         (__sanitizer_sigaction): Likewise.
719         (IOC_SIZE): Likewsie.
721 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
723         * All source files: Merge from upstream 285547.
724         * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
725         variable.
726         * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
727         * asan/Makefile.am (asan_files): Add new files.
728         * asan/Makefile.in: Regenerate.
729         * ubsan/Makefile.in: Likewise.
730         * lsan/Makefile.in: Likewise.
731         * tsan/Makefile.am (tsan_files): Add new files.
732         * tsan/Makefile.in: Regenerate.
733         * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
734         (EXTRA_libsanitizer_common_la_SOURCES): Define.
735         (libsanitizer_common_la_LIBADD): Likewise.
736         (libsanitizer_common_la_DEPENDENCIES): Likewise.
737         * sanitizer_common/Makefile.in: Regenerate.
738         * interception/Makefile.in: Likewise.
739         * libbacktace/Makefile.in: Likewise.
740         * Makefile.in: Likewise.
741         * configure: Likewise.
742         * merge.sh: Handle builtins/assembly.h merging.
743         * builtins/assembly.h: New file.
744         * asan/libtool-version: Bump the libasan SONAME.
746 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
748         PR sanitizer/77567
749         * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
751 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
753         PR sanitizer/77396
754         * asan/asan_globals.cc: Cherry-pick upstream r280657.
756 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
758         PR sanitizer/71042
759         * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
760         * tsan/tsan_rtl_aarch64.S: Likewise.
762 2016-07-23  Alan Modra  <amodra@gmail.com>
764         Revert 2015-11-09  Alan Modra  <amodra@gmail.com>
765         * configure.ac: Don't substitute OBSTACK_DEFS.
766         * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
767         * tsan/Makefile.am: Likewise.
768         * configure: Regenerate.
769         * Makefile.in: Regenerate.
770         * asan/Makefile.in: Regenerate.
771         * interception/Makefile.in: Regenerate.
772         * libbacktrace/Makefile.in: Regenerate.
773         * lsan/Makefile.in: Regenerate.
774         * sanitizer_common/Makefile.in: Regenerate.
775         * tsan/Makefile.in: Regenerate.
776         * ubsan/Makefile.in: Regenerate.
778 2016-05-17  Jakub Jelinek  <jakub@redhat.com>
780         PR sanitizer/71160
781         * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
782         and r269633.
784 2016-04-21  Maxim Ostapenko  <m.ostapenko@samsung.com>
786         PR sanitizer/70624
787         * asan/asan_mac.cc: Cherry pick upstream r266868.
789 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
791         PR sanitizer/68824
792         * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
793         InitializeInterceptors): Cherry pick upstream r258119.
795 2016-01-14  Andreas Tobler  <andreast@gcc.gnu.org>
797         * configure.ac: Replace the hard-coded -ldl requirement for
798         link_sanitizer_common with a configure time check for -ldl.
799         * configure: Regenerate.
801 2015-11-24  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
803         * include/system/linux/asm/ptrace.h: Move to ...
804         * include/system/asm/ptrace.h: ... this.
806 2015-11-24  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
808         * include/system/linux/asm/ptrace.h: New header.
810 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
812         * All source files: Merge from upstream r253555.
813         * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
814         dependences for TSan for aarch64-*-linux* targets.
815         * tsan/Makefile.am: Add new source files.
816         * configure: Regenerate.
817         * tsan/Makefile.in: Likewise.
819 2015-11-09  Alan Modra  <amodra@gmail.com>
821         * sanitizer_common/sanitizer_common_interceptors.inc: Update size
822         params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
823         interceptors.
824         * configure.ac: Substitute OBSTACK_DEFS.
825         * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
826         * tsan/Makefile.am: Likewise.
827         * configure: Regenerate.
828         * Makefile.in: Regenerate.
829         * asan/Makefile.in: Regenerate.
830         * interception/Makefile.in: Regenerate.
831         * libbacktrace/Makefile.in: Regenerate.
832         * lsan/Makefile.in: Regenerate.
833         * sanitizer_common/Makefile.in: Regenerate.
834         * tsan/Makefile.in: Regenerate.
835         * ubsan/Makefile.in: Regenerate.
837 2015-10-22  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
839         PR bootstrap/68041
840         * configure.ac (link_sanitizer_common): Link against librt only if it
841         contains shm_open, required by sanitizers.
842         (CXX_ABI_NEEDED): Remove variable.
843         * configure: Regenerate.
844         * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
845         * ubsan/Makefile.in: Regenerate.
847 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
849         * HOWTO_MERGE: New file.
851 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
853         * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
854         compiled code with GCC when extracting the caller PC for ARM if no
855         valid frame pointer is available.
857 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
859         PR bootstrap/63888
860         Reapply:
861         2015-02-20  Jakub Jelinek  <jakub@redhat.com>
863         * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
864         support until it is rewritten upstream.
866         * c-c++-common/asan/pr63888.c: New test.
868 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
870         PR sanitizer/63958
871         Reapply:
872         2014-10-14  David S. Miller  <davem@davemloft.net>
874         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
875         Define at __kernel_time_t, as needed for sparc.
876         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
877         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
878         (__sanitizer): Define struct___old_kernel_stat_sz,
879         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
880         (__sanitizer_ipc_perm): Adjust for sparc targets.
881         (__sanitizer_shmid_ds): Likewsie.
882         (__sanitizer_sigaction): Likewise.
883         (IOC_SIZE): Likewsie.
885 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
887         * All source files: Merge from upstream r250806.
888         * configure.ac (link_sanitizer_common): Add -lrt flag.
889         * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
890         Set USE_CXX_ABI_FLAG=true for darwin.
891         * asan/Makefile.am (asan_files): Add new files.
892         (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
893         DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
894         * asan/Makefile.in: Regenerate.
895         * ubsan/Makefile.am (ubsan_files): Add new files.
896         (DEFS): Add DCAN_SANITIZE_UB=1.
897         (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
898         * ubsan/Makefile.in: Regenerate.
899         * tsan/Makefile.am (tsan_files): Add new files.
900         (DEFS): Add DCAN_SANITIZE_UB=0.
901         * tsan/Makefile.in: Regenerate.
902         * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
903         * sanitizer_common/Makefile.in: Regenerate.
904         * asan/libtool-version: Bump the libasan SONAME.
906 2015-09-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
908         PR sanitizer/67258
909         * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
911 2015-07-29  Markus Trippelsdorf  <markus@trippelsdorf.de>
913         PR sanitizer/63927
914         * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
915         for PowerPC.
917 2015-07-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
919         PR sanitizer/63927
920         * sanitizer_common/sanitizer_stacktrace.cc
921         (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
922         find the link register at an offset of 16 from the base of the
923         caller's stack frame.
925 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
927         * Makefile.in: Regenerated with automake-1.11.6.
928         * aclocal.m4: Likewise.
929         * asan/Makefile.in: Likewise.
930         * configure: Likewise.
931         * interception/Makefile.in: Likewise.
932         * libbacktrace/Makefile.in: Likewise.
933         * lsan/Makefile.in: Likewise.
934         * sanitizer_common/Makefile.in: Likewise.
935         * tsan/Makefile.in: Likewise.
936         * ubsan/Makefile.in: Likewise.
938 2015-04-13  Yury Gribov  <y.gribov@samsung.com>
940         PR sanitizer/64839
941         * sanitizer_common/sanitizer_platform.h: Cherry pick
942         upstream r234470.
943         * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
944         * configure.ac (RPC_DEFS): Check for precense of RPC headers.
945         * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
946         * Makefile.in: Regenerate.
947         * asan/Makefile.in: Regenerate.
948         * config.h.in: Regenerate.
949         * configure: Regenerate.
950         * interception/Makefile.in: Regenerate.
951         * libbacktrace/Makefile.in: Regenerate.
952         * lsan/Makefile.in: Regenerate.
953         * sanitizer_common/Makefile.in: Regenerate.
954         * tsan/Makefile.in: Regenerate.
955         * ubsan/Makefile.in: Regenerate.
958 2015-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
960         PR sanitizer/59009
961         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
962         upstream r230324.
963         * sanitizer_common/sanitizer_platform.h: Likewise.
964         * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
966 2015-03-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
968         * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
969         upstream 224508 and 224755.
971 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
973         PR sanitizer/63958
974         Reapply:
975         2014-10-14  David S. Miller  <davem@davemloft.net>
977         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
978         Define at __kernel_time_t, as needed for sparc.
979         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
980         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
981         (__sanitizer): Define struct___old_kernel_stat_sz,
982         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
983         (__sanitizer_ipc_perm): Adjust for sparc targets.
984         (__sanitizer_shmid_ds): Likewsie.
985         (__sanitizer_sigaction): Likewise.
986         (IOC_SIZE): Likewsie.
988 2015-02-27  Peter Bergner  <bergner@vnet.ibm.com>
990         * configure.tgt: Enable build on powerpc*le-*-linux.
992 2015-02-23  Jakub Jelinek  <jakub@redhat.com>
994         PR bootstrap/63888
995         * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
996         support until it is rewritten upstream.
998 2015-01-26  Matthias Klose  <doko@ubuntu.com>
1000         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1001         * configure: Regenerate.
1003 2015-01-25  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
1005         * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
1006         * configure: Regenerate.
1007         * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
1009 2015-01-25  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
1011         * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
1012         * configure: Regenerate.
1013         * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
1014         (libtsan_la_DEPENDENCIES): Likewise.
1015         * Makefile.in: Regenerate.
1016         * asan/Makefile.in: Regenerate.
1017         * interception/Makefile.in: Regenerate.
1018         * libbacktrace/Makefile.in: Regenerate.
1019         * lsan/Makefile.in: Regenerate.
1020         * sanitizer_common/Makefile.in: Regenerate.
1021         * tsan/Makefile.in: Regenerate.
1022         * ubsan/Makefile.in: Regenerate.
1024 2015-01-22  Jakub Jelinek  <jakub@redhat.com>
1026         * tsan/tsan_rtl.h: Cherry pick upstream r226829.
1028 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
1030         PR sanitizer/64435
1031         * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
1032         upstream r226637.
1033         * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
1034         * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
1036 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
1038         PR sanitizer/64632
1039         * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
1041 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
1043         PR sanitizer/64435
1044         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
1045         upstream r223925.
1047 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
1049         * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
1050         upstream r224518 and r224519.
1051         * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
1052         r224834.
1054 2014-12-16  Jakub Jelinek  <jakub@redhat.com>
1056         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
1057         sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
1058         sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
1059         upstream r224308.
1061 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1063         PR bootstrap/63784
1064         * configure: Regenerated.
1066 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
1068         PR target/61137
1069         * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
1070         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
1072 2014-11-14  Uros Bizjak  <ubizjak@gmail.com>
1074         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
1075         * asan/Makefile.am (AM_CXXFLAGS): Ditto.
1076         * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
1077         * interception/Makefile.am (AM_CXXFLAGS): Ditto.
1078         * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
1079         * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
1080         * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
1081         * sanitizer_common/Makefile.in: Regenerate.
1082         * asan/Makefile.in: Ditto.
1083         * lsan/Makefile.in: Ditto.
1084         * interception/Makefile.in: Ditto.
1085         * tsan/Makefile.in: Ditto.
1086         * libbacktrace/Makefile.in: Ditto.
1087         * ubsan/Makefile.in: Ditto.
1089 2014-11-13  Kostya Serebryany  <kcc@google.com>
1091         * All source files: Merge from upstream r221802.
1092         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
1093         (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
1094         with 'start' to follow the new interface.
1095         * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1096         * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1097         * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1098         * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1099         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1100         files.
1101         (AM_CXXFLAGS): Added -std=c++11.
1102         * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1103         * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1104         * asan/Makefile.in: Regenerate.
1105         * interception/Makefile.in: Regenerate.
1106         * libbacktrace/Makefile.in: Regenerate.
1107         * lsan/Makefile.in: Regenerate.
1108         * sanitizer_common/Makefile.in: Regenerate.
1109         * tsan/Makefile.in: Regenerate.
1110         * ubsan/Makefile.in: Regenerate.
1112 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1114         PR target/63610
1115         * configure: Regenerate.
1117 2014-10-16  Martin Liska  <mliska@suse.cz>
1119         * asan/Makefile.am: IPA ICF pass is disabled.
1120         * asan/Makefile.in: Likewise.
1122 2014-10-14  David S. Miller  <davem@davemloft.net>
1124         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1125         Define at __kernel_time_t, as needed for sparc.
1126         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1127         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1128         (__sanitizer): Define struct___old_kernel_stat_sz,
1129         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1130         (__sanitizer_ipc_perm): Adjust for sparc targets.
1131         (__sanitizer_shmid_ds): Likewsie.
1132         (__sanitizer_sigaction): Likewsie.
1133         (IOC_SIZE): Likewsie.
1135 2014-10-14  Jakub Jelinek  <jakub@redhat.com>
1137         * ubsan/Makefile.am (DEFS): Add -DPIC.
1138         * ubsan/Makefile.in: Regenerated.
1140 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
1142         * configure.tgt: Enable build on aarch64*-linux.
1144 2014-09-19  Kostya Serebryany  <kcc@google.com>
1146         * All source files: Merge from upstream r218156.
1147         * asan/Makefile.am (asan_files): Added new files.
1148         * asan/Makefile.in: Regenerate.
1149         * ubsan/Makefile.am (ubsan_files): Added new files.
1150         * ubsan/Makefile.in: Regenerate.
1151         * tsan/Makefile.am (tsan_files): Added new files.
1152         * tsan/Makefile.in: Regenerate.
1153         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1154           files.
1155         * sanitizer_common/Makefile.in: Regenerate.
1156         * asan/libtool-version: Bump the libasan SONAME.
1158 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
1160         * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
1161         upstream r215485, r217389, r217391 and r217400.
1163 2014-06-23  Paolo Carlini  <paolo.carlini@oracle.com>
1165         * sanitizer_common/sanitizer_common_interceptors.inc:
1166         Cherry pick upstream r211008.
1168 2014-06-11  Richard Biener  <rguenther@suse.de>
1170         * asan/asan_linux.cc: Cherry pick upstream r210012.
1172 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
1174         * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
1175         r209879.
1176         * sanitizer_common/sanitizer_common.h: Likewise.
1177         * asan/asan_mapping.h: Likewise.
1178         * asan/asan_linux.cc: Likewise.
1179         * tsan/tsan_mman.cc: Cherry pick upstream r209744.
1180         * sanitizer_common/sanitizer_allocator.h: Likewise.
1182 2014-05-23  Marek Polacek  <polacek@redhat.com>
1184         * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
1185         floating-point types.
1187 2014-05-22  Kostya Serebryany  <kcc@google.com>
1189         * All source files: Merge from upstream r209283.
1190         * asan/Makefile.am (asan_files): Added new files.
1191         * asan/Makefile.in: Regenerate.
1192         * tsan/Makefile.am (tsan_files): Added new files.
1193         * tsan/Makefile.in: Regenerate.
1194         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1195         files.
1196         * sanitizer_common/Makefile.in: Regenerate.
1198 2014-05-14  Yury Gribov  <y.gribov@samsung.com>
1200         PR sanitizer/61100
1201         * Makefile.am (nodist_saninclude_HEADERS): Install
1202         public headers.
1203         * Makefile.in: Regenerate.
1205 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1207         * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1208         Add ../../libbacktrace/sort.c.
1209         * libbacktrace/Makefile.in: Regenerate.
1210         * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1212 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1214         * configure.tgt: Unsupported for little endian PowerPC for now.
1216 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
1218         PR sanitizer/60055
1219         * tsan/tsan_flags.cc (__tsan_default_options): Add
1220         SANITIZER_INTERFACE_ATTRIBUTE.  Backport from upstream r200747.
1221         * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1223         PR sanitizer/60038
1224         * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1225         sanitizer_atomic.h and unistd.h.
1226         (kThreadDescriptorSize): Made static, remove initializer and const,
1227         change type to atomic_uintptr_t.
1228         (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1229         query glibc version, compute kThreadDescriptorSize depending on
1230         glibc version minor number.
1231         (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1232         kThreadDescriptorSize directly.
1234 2014-01-23  Yury Gribov  <y.gribov@samsung.com>
1235             Jakub Jelinek  <jakub@redhat.com>
1237         PR sanitizer/57316
1238         * configure.ac: Check for missing syscalls.
1239         * Makefile.am: Likewise.
1240         * configure: Regenerate.
1241         * Makefile.in: Regenerate.
1243 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1245         * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1246         (LibbacktraceSymbolizer::Demangle): New declaration.
1247         * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1248         (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1249         method if possible.
1250         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1251         "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1252         (struct CplusV3DemangleData): New type.
1253         (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1254         (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1255         SymbolizeDataCallback): Use CplusV3Demangle.
1256         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1257         -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1258         * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1259         cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1260         cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1261         cplus_demangle_init_info, cplus_demangle_mangled_name,
1262         cplus_demangle_operators, cplus_demangle_print,
1263         cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1264         cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1265         is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1266         Define.
1267         (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1268         (memcmp, strncmp): Redefine.
1269         * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1270         ../../libiberty/cp-demangle.c.
1271         * libbacktrace/bridge.cc (__asan_internal_memcmp,
1272         __asan_internal_strncmp): New functions.
1273         * sanitizer_common/Makefile.in: Regenerated.
1274         * libbacktrace/Makefile.in: Regenerated.
1275         * configure: Regenerated.
1276         * configure.ac: Regenerated.
1277         * config.h.in: Regenerated.
1279         * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1280         -isystem $(top_srcdir)/include/system.
1281         * sanitizer_common/Makefile.in: Regenerated.
1282         * include/system/linux/aio_abi.h: New header.
1283         * include/system/linux/mroute.h: New header.
1284         * include/system/linux/mroute6.h: New header.
1285         * include/system/linux/perf_event.h: New header.
1286         * include/system/linux/types.h: New header.
1288         PR sanitizer/59136
1289         * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1290         LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1291         and -I/-include flags.
1292         * lsan/Makefile.am (liblsan_la_LIBADD): Add
1293         libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1294         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1295         * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1296         * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1297         * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1298         libbacktrace.
1299         * README.gcc: Document that also lsan and ubsan are
1300         maintained in compiler-rt upstream.
1301         * libbacktrace/Makefile.am: New file.
1302         * libbacktrace/backtrace-rename.h: New file.
1303         * libbacktrace/backtrace-supported.h.in: New file.
1304         * libbacktrace/bridge.cc: New file.
1305         * configure.ac: Add tests needed for libbacktrace build
1306         within libsanitizer.
1307         * sanitizer_common/Makefile.in: Regenerated.
1308         * lsan/Makefile.in: Regenerated.
1309         * tsan/Makefile.in: Regenerated.
1310         * ubsan/Makefile.in: Regenerated.
1311         * libbacktrace/Makefile.in: Generated.
1312         * config.h.in: Regenerated.
1313         * configure: Regenerated.
1314         * Makefile.in: Regenerated.
1315         * interception/Makefile.in: Regenerated.
1316         * asan/Makefile.in: Regenerated.
1317         * aclocal.m4: Regenerated.
1319 2013-12-19  Kostya Serebryany  <kcc@google.com>
1321         * sanitizer_common/sanitizer_platform_limits_posix.cc:
1322         workaround for missing definition of EOWNERDEAD, backport
1323         from upstream r196779.
1325 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
1327         * sanitizer_common/sanitizer_platform_limits_posix.h
1328         (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1329         (__sanitizer_clock_t): Use long long for x32.
1331 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
1333         * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1334         <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1335         (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1337 2013-12-05  H.J. Lu  <hongjiu.lu@intel.com>
1339         * configure.ac (link_sanitizer_common): Add -lm.
1340         * configure: Regenerated.
1342 2013-12-05  Kostya Serebryany  <kcc@google.com>
1344         * All source files: Merge from upstream r196489.
1345         * merge.sh: Add *.S to the list of merged files.
1347 2013-12-05  Yury Gribov  <y.gribov@samsung.com>
1349         PR sanitizer/59368
1350         * Makefile.am (gcc_version): Added gcc_version.
1351         * Makefile.in: Regenerate.
1353 2013-12-05  Kostya Serebryany  <kcc@google.com>
1355         * All source files: Merge from upstream r196090.
1356         * tsan/Makefile.am (tsan_files): Added new files.
1357         * tsan/Makefile.in: Regenerate.
1358         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1359         * sanitizer_common/Makefile.in: Regenerate.
1360         * lsan/Makefile.am (lsan_files): Added new files.
1361         * lsan/Makefile.in: Regenerate.
1363 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1364             Yury Gribov  <y.gribov@samsung.com>
1366         PR sanitizer/59063
1367         * libsanitizer.spec.in: Add spec file to hold link flags for
1368         various sanitizer libs.
1369         * configure.ac: Check whether clock_* routines come from librt.
1370         * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1371         configure.ac.
1372         * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1373         * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1374         * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1375         * asan/Makefile.in: Regenerate.
1376         * interception/Makefile.in: Regenerate.
1377         * lsan/Makefile.in: Regenerate.
1378         * sanitizer_common/Makefile.in: Regenerate.
1379         * tsan/Makefile.in: Regenerate.
1380         * ubsan/Makefile.in: Regenerate.
1381         * Makefile.in: Regenerate.
1382         * configure: Regenerate.
1384 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
1385             Yury Gribov  <y.gribov@samsung.com>
1387         PR sanitizer/59106
1388         * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1389         don't need it.
1390         * ubsan/Makefile.in: Regenerated.
1392 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1394         PR sanitizer/59061
1395         * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1396         * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1397         * configure: Regenerated.
1398         * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1399         liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1400         * lsan/Makefile.in: Regenerated.
1402 2013-11-22  Mike Stump  <mikestump@comcast.net>
1404         * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1405         change from upstream to fix build.
1407 2013-11-18  Yury Gribov  <y.gribov@samsung.com>
1409         PR sanitizer/59106
1410         * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1411         * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1412         * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1413         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1414         * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1415         * asan/Makefile.in: Regenerate.
1416         * interception/Makefile.in: Regenerate.
1417         * tsan/Makefile.in: Regenerate.
1418         * lsan/Makefile.in: Regenerate.
1419         * sanitizer_common/Makefile.in: Regenerate.
1421 2013-11-15  Kostya Serebryany  <kcc@google.com>
1423         PR sanitizer/58994
1424         Backport from upstream revision 194573
1425         * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1426         back to the original functions in the common libsanitizer
1427         interceptors and the __cxa_atexit() interceptor on Darwin.
1429 2013-11-13  Peter Bergner  <bergner@vnet.ibm.com>
1431         PR sanitizer/59009
1432         * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1433         ifdef out more source.
1435 2013-11-12  Jakub Jelinek  <jakub@redhat.com>
1437         * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1438         ifdef out almost the whole source.
1439         * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1441 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1443         PR sanitizer/59018
1444         * sanitizer_common/sanitizer_platform_limits_posix.cc
1445         (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1446         defined.
1448 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1450         PR sanitizer/59018
1451         * sanitizer_common/sanitizer_platform_limits_linux.cc
1452         (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1453         defined.
1454         * sanitizer_common/sanitizer_platform_limits_posix.h
1455         (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1456         defined.
1457         (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1458         is defined.
1459         (__sanitizer___kernel_gid_t): Likewise.
1460         (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1461         is defined.
1463 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1465         PR sanitizer/59018
1466         * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1467         2 64-bit integers to save and restore fn and arg.  Properly load
1468         newtls/child_tidptr into r8/r10.
1470 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1472         PR sanitizer/59018
1473         * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1474         internal_munmap, internal_open, internal_read, internal_write,
1475         internal_stat, internal_lstat, internal_fstat, internal_readlink,
1476         internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1477         BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1478         internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1480 2013-11-04  Kostya Serebryany  <kcc@google.com>
1482         * All source files: Merge from upstream r191666.
1483         * merge.sh: Added lsan.
1484         * configure.ac (AC_CONFIG_FILES): Added lsan.
1485         * Makefile.am (SUBDIRS): Added lsan.
1486         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1487         * asan/Makefile.am (asan_files): Added new files.
1488         (libasan_la_LIBADD): Added a dependency on lsan.
1489         * lsan/Makefile.am: New file.
1490         * asan/Makefile.in: Regenerate.
1491         * lsan/Makefile.in: Regenerate.
1492         * Makefile.in: Regenerate.
1493         * configure: Regenerate.
1494         * sanitizer_common/Makefile.in: Regenerate.
1496 2013-09-20  Alan Modra  <amodra@gmail.com>
1498         * configure: Regenerate.
1500 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
1502         * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1503         libinterception.la for Darwin.
1504         * ubsan/Makefile.in: Regenerate.
1506 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
1508         * Makefile.am (SUBDIRS): Add ubsan.
1509         * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1510         * merge.sh: Merge ubsan.
1511         * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1512         * sanitizer_common/sanitizer_printf.cc: Likewise.
1513         * sanitizer_common/sanitizer_common.h: Likewise.
1514         * ubsan: New directory. Import ubsan runtime from llvm.
1516 2013-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
1518         * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1519         Cherry pick upstream r182922.
1521 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
1523         * configure.tgt: Add ARM pattern.
1525 2013-03-22  Jakub Jelinek  <jakub@redhat.com>
1527         PR other/43620
1528         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1529         * Makefile.in: Regenerated.
1530         * asan/Makefile.in: Regenerated.
1531         * interception/Makefile.in: Regenerated.
1532         * sanitizer_common/Makefile.in: Regenerated.
1533         * tsan/Makefile.in: Regenerated.
1535 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
1537         * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1538         * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1539         0x4fffffffffULL.
1541 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
1543         PR sanitizer/56393
1544         * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1545         libasan_preinit.o.
1546         (libasan_preinit.o): Depend on asan_preinit.o.
1547         * asan/Makefile.in: Regenerated.
1548         * asan/asan_preinit.cc: New file, synced from upstream.
1549         * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1551 2013-02-21  Jack Howarth  <howarth@bromo.med.uc.edu>
1553         * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1554         dynamic/asan_interceptors_dynamic.cc.
1555         * asan/Makefile.in: Regenerated.
1556         * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1558 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
1560         * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1561         defined.  Add used attribute.
1563 2013-02-21  Kostya Serebryany  <kcc@google.com>
1565         * All source files: Merge from upstream r175733.
1566         * sanitizer_common/Makefile.am: Added a new file.
1567         * sanitizer_common/Makefile.in: Regenerated.
1569 2013-02-14  H.J. Lu  <hongjiu.lu@intel.com>
1571         PR bootstrap/56327
1572         * interception/interception.h (OFF_T): Merged from upstream
1573         r175140.
1575 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
1577         * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1579 2013-02-13  Kostya Serebryany  <kcc@google.com>
1581         PR sanitizer/56128
1582         * All source files: Merge from upstream r175049.
1583         * interception/Makefile.am: added include path.
1584         * interception/Makefile.in: Regenerated.
1586 2013-02-11  Jack Howarth  <howarth@bromo.med.uc.edu>
1588         * configure.tgt: Disable build on darwin9 and earlier.
1590 2013-01-23  Kostya Serebryany  <kcc@google.com>
1592         PR sanitizer/55989
1593         * All source files: Merge from upstream r173241.
1594         * merge.sh: Support merging .inc files.
1596 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
1598         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1599         -Wno-c99-extensions.
1600         * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1601         * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1602         * sanitizer_common/Makefile.in: Regenerated.
1603         * interception/Makefile.in: Regenerated.
1604         * asan/Makefile.in: Regenerated.
1606 2013-01-10  Wei Mi  <wmi@google.com>
1608         PR sanitizer/55488
1609         * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1610         * tsan/Makefile.in: Regenerated.
1611         * tsan/tsan_rtl.h: Enable HACKY_CALL.
1613 2013-01-10  Kostya Serebryany  <kcc@google.com>
1615         * All source files: Merge from upstream r171973.
1616         * sanitizer_common/Makefile.am: Added new files.
1617         * asan/Makefile.am: Likewise.
1618         * tsan/Makefile.am: Likewise.
1619         * sanitizer_common/Makefile.in: Regenerated.
1620         * asan/Makefile.in: Likewise.
1621         * tsan/Makefile.in: Likewise.
1623 2013-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1625         * asan/Makefile.am (libasan_la_LIBADD): Replace
1626         LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1627         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1628         * Makefile.in: Regenerated.
1629         * configure: Likewise.
1630         * asan/Makefile.in: Likewise.
1631         * interception/Makefile.in: Likewise.
1632         * sanitizer_common/Makefile.in: Likewise.
1633         * tsan/Makefile.in: Likewise.
1635 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1637         * Makefile.am (AM_MAKEFLAGS): Restored.
1638         * interception/Makefile.am: Likewise.
1639         * sanitizer_common/Makefile.am: Likewise.
1640         * tsan/Makefile.am: Likewise.
1641         * Makefile.in: Regenerated.
1642         * asan/Makefile.in: Likewise.
1643         * interception/Makefile.in: Likewise.
1644         * sanitizer_common/Makefile.in: Likewise.
1645         * tsan/Makefile.in: Likewise.
1647 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1649         * Makefile.am (MAKEOVERRIDES): Restored.
1650         * asan/Makefile.am: Likewise.
1651         * interception/Makefile.am: Likewise.
1652         * sanitizer_common/Makefile.am: Likewise.
1653         * tsan/Makefile.am: Likewise.
1654         * Makefile.in: Regenerated.
1655         * asan/Makefile.in: Likewise.
1656         * interception/Makefile.in: Likewise.
1657         * sanitizer_common/Makefile.in: Likewise.
1658         * tsan/Makefile.in: Likewise.
1660 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1662         * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1663         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1664         * Makefile.in: Regenerated.
1665         * configure: Likewise.
1666         * asan/Makefile.in: Likewise.
1667         * interception/Makefile.in: Likewise.
1668         * sanitizer_common/Makefile.in: Likewise.
1669         * tsan/Makefile.in: Likewise.
1671 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1673         * Makefile.am (AM_MAKEFLAGS): Removed.
1674         (MAKEOVERRIDES): Likewise.
1675         * asan/Makefile.am: Likewise.
1676         * interception/Makefile.am: Likewise.
1677         * sanitizer_common/Makefile.am: Likewise.
1678         * tsan/Makefile.am: Likewise.
1679         * Makefile.in: Regenerated.
1680         * asan/Makefile.in: Likewise.
1681         * interception/Makefile.in: Likewise.
1682         * sanitizer_common/Makefile.in: Likewise.
1683         * tsan/Makefile.in: Likewise.
1685 2012-12-11  H.J. Lu  <hongjiu.lu@intel.com>
1687         PR sanitizer/55533
1688         * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1689         * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1690         * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1691         (AM_MAKEFLAGS): Remove CC and CXX.
1692         * interception/Makefile.am: Likewise.
1693         * sanitizer_common/Makefile.am: Likewise.
1694         * tsan/Makefile.am: Likewise.
1695         * Makefile.in: Regenerated.
1696         * aclocal.m4: Likewise.
1697         * configure: Likewise.
1698         * asan/Makefile.in: Likewise.
1699         * interception/Makefile.in: Likewise.
1700         * sanitizer_common/Makefile.in: Likewise.
1701         * tsan/Makefile.in: Likewise.
1703 2012-12-06  Peter Bergner  <bergner@vnet.ibm.com>
1705         * configure.tgt: Enable build on powerpc*-linux.
1707 2012-12-06  Jack Howarth  <howarth@bromo.med.uc.edu>
1709         PR 55599/sanitizer
1710         * configure.ac: Set enable_static=no on darwin.
1711         * configure: Regenerated.
1713 2012-12-06  Kostya Serebryany  <kcc@google.com>
1715         * All files: Merge from upstream r169392.
1717 2012-12-05  Kostya Serebryany  <kcc@google.com>
1719         * All files: Merge from upstream r169371.
1721 2012-12-04  Kostya Serebryany  <kcc@google.com>
1722             Jack Howarth  <howarth@bromo.med.uc.edu>
1724         PR 55521/sanitizer
1725         * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1726         * Makefile.am: Don't build interception subdir when
1727         USING_MAC_INTERPOSE defined.
1728         * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1729         -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1730         Compile asan_interceptors_dynamic.cc but not libinterception
1731         when USING_MAC_INTERPOSE defined.
1732         * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1733         * configure: Regenerated.
1734         * Makefile.in: Likewise.
1735         * asan/Makefile.in: Likewise.
1736         * interception/Makefile.in: Likewise.
1737         * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1738         * asan/asan_mac.cc: Likewise.
1739         * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1740         and use MISSING_BLOCKS_SUPPORT.
1741         * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1742         * interception/mach_override/LICENSE.txt: Remove unused file.
1743         * interception/mach_override/mach_override.c: Likewise.
1744         * interception/mach_override/mach_override.h: Likewise.
1745         * interception/mach_override: Remove unused directory.
1747 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1749         * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1750         * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1751         * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1752         files.
1753         (AM_MAKEFLAGS): Restore CC and CXX.
1754         * interception/Makefile.am: Likewise.
1755         * sanitizer_common/Makefile.am: Likewise.
1756         * tsan/Makefile.am: Likewise.
1757         * Makefile.in: Regenerated.
1758         * aclocal.m4: Likewise.
1759         * configure: Likewise.
1760         * asan/Makefile.in: Likewise.
1761         * interception/Makefile.in: Likewise.
1762         * sanitizer_common/Makefile.in: Likewise.
1763         * tsan/Makefile.in: Likewise.
1765 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1767         * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1768         * configure.ac (ACX_NONCANONICAL_TARGET): New.
1769         * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1770         files.
1771         (AM_MAKEFLAGS): Remove CC and CXX.
1772         * interception/Makefile.am: Likewise.
1773         * sanitizer_common/Makefile.am: Likewise.
1774         * tsan/Makefile.am: Likewise.
1775         * Makefile.in: Regenerated.
1776         * aclocal.m4: Likewise.
1777         * configure: Likewise.
1778         * asan/Makefile.in: Likewise.
1779         * interception/Makefile.in: Likewise.
1780         * sanitizer_common/Makefile.in: Likewise.
1781         * tsan/Makefile.in: Likewise.
1783 2012-11-27  Kostya Serebryany  <kcc@google.com>
1785         * All files: Merge from upstream r168699.
1787 2012-11-24  Kostya Serebryany  <kcc@google.com>
1788             Jack Howarth  <howarth@bromo.med.uc.edu>
1790         * interception/mach_override/mach_override.c: Migrate from llvm.
1791         * interception/mach_override/mach_override.h: Likewise.
1792         * interception/mach_override/LICENSE.txt: Likewise.
1793         * configure.tgt: Add darwin to supported targets.
1794         * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1795         * interception/Makefile.am: Compile mach_override.c when
1796         USING_MACH_OVERRIDE defined.
1797         * configure: Regenerated.
1798         * interception/Makefile.in: Likewise.
1800 2012-11-23  H.J. Lu  <hongjiu.lu@intel.com>
1802         PR sanitizer/55450
1803         * tsan/Makefile.am (gcc_version): New.
1804         * tsan/Makefile.in: Regenerated.
1806 2012-11-23  Kostya Serebryany  <kcc@google.com>
1808         * merge.sh: Support tsan, support added/removed files.
1809         * tsan/Makefile.am: Remove tsan_printf.cc.
1810         * tsan/Makefile.in: Regenerated.
1811         * other files: Merge from upstream r168514.
1813 2012-11-23  Kostya Serebryany  <kcc@google.com>
1815         * merge.sh: New file.
1817 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
1819         * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1820         * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1821         automake conditional instead of !MULTISUBDIR32.
1822         * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1823         for 64-bit multilib.
1824         * configure.ac: Check for void * size, source in configure.tgt,
1825         define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1826         * configure: Regenerated.
1827         * Makefile.in: Regenerated.
1828         * tsan/Makefile.in: Regenerated.
1830 2012-11-22  Wei Mi  <wmi@google.com>
1832         * tsan: New directory. Import tsan runtime from llvm.
1833         * configure.ac: Add 64 bits tsan build.
1834         * Makefile.am: Likewise.
1835         * configure: Regenerated.
1836         * Makefile.in: Likewise.
1838 2012-11-21  Kostya Serebryany  <kcc@google.com>
1840         * README.gcc: Extend the README.gcc with mode details.
1842 2012-11-20  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
1844         * sanitizer_common/sanitizer_linux.cc
1845         (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1846         (internal_mmap): Use it.
1847         (internal_filesize): Likewise.
1849 2012-11-16  Tom Tromey  <tromey@redhat.com>
1851         * configure.ac: Invoke AM_MAINTAINER_MODE.
1852         * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1853         interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1855 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
1857         PR other/55333
1858         * include/sanitizer/common_interface_defs.h (uhwptr): New type
1859         for hardware pointer.
1860         * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1861         Replace uptr with uhwptr for stack unwind.
1863 2012-11-16  Dodji Seketeli  <dodji@redhat.com>
1865         * configure.tgt: Enable build on sparc linux.
1867 2012-11-15  H.J. Lu  <hongjiu.lu@intel.com>
1869         * configure.ac: Properly set MULTISUBDIR.
1870         * asan/Makefile.am (gcc_version): New.
1871         * interception/Makefile.am (gcc_version): Likewise.
1872         * sanitizer_common/Makefile.am (gcc_version): Likewise.
1873         * configure: Regenerated.
1874         * asan/Makefile.in: Likewise.
1875         * interception/Makefile.in: Likewise.
1876         * sanitizer_common/Makefile.in: Likewise.
1878 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1880         PR other/55291
1881         * configure.ac (--enable-version-specific-runtime-libs): New option.
1882         (AC_CANONICAL_SYSTEM): New.
1883         (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1884         (toolexecdir): Support multilib.
1885         (toolexeclibdir): Likewise.
1886         (multilib_arg): New.
1887         * Makefile.in: Regenerated.
1888         * aclocal.m4: Likewise.
1889         * configure: Likewise.
1890         * asan/Makefile.in: Likewise.
1891         * interception/Makefile.in: Likewise.
1892         * sanitizer_common/Makefile.in: Likewise.
1894 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1896         PR other/55292
1897         Backport from upstream revision 167883
1898         * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1899         __x86_64__ instead of __WORDSIZE.
1900         (internal_filesize): Likwise.
1902 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1904         * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1905         * Makefile.in: Regenerated.
1906         * configure: Likewise.
1908 2012-11-13  H.J. Lu  <hongjiu.lu@intel.com>
1910         PR other/55304
1911         * acinclude.m4: New file.
1912         * Makefile.am (ACLOCAL_AMFLAGS): New.
1913         * configure.ac (AC_PREREQ): Set to 2.64.
1914         (AC_CONFIG_AUX_DIR): Set to "..".
1915         * Makefile.in: Regenerated.
1916         * aclocal.m4: Likewise.
1917         * configure: Likewise.
1918         * asan/Makefile.in: Likewise.
1919         * interception/Makefile.in: Likewise.
1920         * sanitizer_common/Makefile.in: Likewise.
1922         * config.guess: Removed.
1923         * config.sub: Likewise.
1924         * depcomp: Likewise.
1925         * install-sh: Likewise.
1926         * ltmain.sh: Likewise.
1927         * missing: Likewise.
1929 2012-11-13  Richard Henderson  <rth@redhat.com>
1931         * configure.tgt: New file.
1933 2012-11-12  David S. Miller  <davem@davemloft.net>
1935         * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1937 2012-10-29  Wei Mi  <wmi@google.com>
1939         Initial checkin: migrate asan runtime from llvm.