PR84068, PR83459: Fix sort order of SCHED_PRESSURE_MODEL
[official-gcc.git] / libsanitizer / ChangeLog
blobebb8866bc13f8fe16f73b9b5d387563011b34605
1 2018-02-05  Martin Liska  <mliska@suse.cz>
3         * asan/asan_flags.inc: Cherry-pick upstream r323995.
4         * asan/asan_report.cc (CheckForInvalidPointerPair):
5         Cherry-pick upstream r323995.
7 2018-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9         PR sanitizer/82825
10         * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
11         r324284.
13 2018-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15         PR sanitizer/82824
16         * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
18 2017-12-05  Martin Liska  <mliska@suse.cz>
19             Jakub Jelinek  <jakub@redhat.com>
21         * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
22         * asan/asan_descriptions.h: Likewise.
23         * asan/asan_report.cc: Likewise.
24         * asan/asan_thread.cc: Likewise.
25         * asan/asan_thread.h: Likewise.
27 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
29         * acinclude.m4: Add enable.m4 and cet.m4.
30         * Makefile.in: Regenerate.
31         * asan/Makefile.am: Update AM_CXXFLAGS.
32         * asan/Makefile.in: Regenerate.
33         * configure: Likewise.
34         * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
35         EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
36         * interception/Makefile.am: Update AM_CXXFLAGS.
37         * interception/Makefile.in: Regenerate.
38         * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
39         * libbacktrace/Makefile.in: Regenerate.
40         * lsan/Makefile.am: Update AM_CXXFLAGS.
41         * lsan/Makefile.in: Regenerate.
42         * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
43         AM_CCASFLAGS.
44         * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
45         Add _CET_ENDBR macro.
46         * sanitizer_common/Makefile.in: Regenerate.
47         * tsan/Makefile.am: Update AM_CXXFLAGS.
48         * tsan/Makefile.in: Regenerate.
49         * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
50         * ubsan/Makefile.am: Update AM_CXXFLAGS.
51         * ubsan/Makefile.in: Regenerate.
53 2017-11-08  Jakub Jelinek  <jakub@redhat.com>
55         PR bootstrap/82670
56         * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
57         and ubsan_signals_standalone.cc.
58         * ubsan/Makefile.in: Regenerated.
60 2017-11-05  Tom de Vries  <tom@codesourcery.com>
62         PR other/82784
63         * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
64         "do {} while (0)".
65         * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
67 2017-10-20  Jakub Jelinek  <jakub@redhat.com>
69         PR sanitizer/82595
70         * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
71         * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
72         liblsan_preinit.o.
73         (lsan_files): Remove lsan_preinit.cc.
74         (liblsan_preinit.o): New rule.
75         * lsan/Makefile.in: Regenerated.
77 2017-10-19  Jakub Jelinek  <jakub@redhat.com>
79         * All source files: Merge from upstream 315899.
80         * asan/Makefile.am (nodist_saninclude_HEADERS): Add
81         include/sanitizer/tsan_interface.h.
82         * asan/libtool-version: Bump the libasan SONAME.
83         * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
84         (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
85         * sanitizer_common/Makefile.am (sanitizer_common_files): Add
86         sancov_flags.cc, sanitizer_allocator_checks.cc,
87         sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
88         sanitizer_file.cc, sanitizer_mac_libcdep.cc and
89         sanitizer_stoptheworld_mac.cc.  Remove sanitizer_coverage_libcdep.cc
90         and sanitizer_coverage_mapping_libcdep.cc.
91         * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
92         * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
93         (ubsan_files): Add ubsan_init_standalone.cc and
94         ubsan_signals_standalone.cc.
95         * ubsan/libtool-version: Bump the libubsan SONAME.
96         * asan/Makefile.in: Regenerate.
97         * lsan/Makefile.in: Regenerate.
98         * sanitizer_common/Makefile.in: Regenerate.
99         * tsan/Makefile.in: Regenerate.
100         * ubsan/Makefile.in: Regenerate.
102 2017-10-05  H.J. Lu  <hongjiu.lu@intel.com>
104         PR sanitizer/82379
105         * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
106         to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
108 2017-10-02  Jakub Jelinek  <jakub@redhat.com>
110         * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
111         Define.
113 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
115         * include/system/sys/ptrace.h: New file.
117 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
119         PR sanitizer/80998
120         * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
121         * ubsan/ubsan_checks.inc: Likewise.
122         * ubsan/ubsan_handlers.h: Likewise.
124 2017-07-14  Jakub Jelinek  <jakub@redhat.com>
126         PR sanitizer/81066
127         * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
128         * sanitizer_common/sanitizer_linux.cc: Likewise.
129         * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
130         * tsan/tsan_platform_linux.cc: Likewise.
132 2017-04-06  Martin Liska  <mliska@suse.cz>
134         PR sanitizer/80166
135         * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
136         Cherry-pick upstream r299036.
138 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
140         PR sanitizer/78158
141         * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
143 2017-02-16  Andreas Tobler  <andreast@gcc.gnu.org>
145         PR sanitizer/79562
146         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
147         upstream r294806.
149 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
151         PR sanitizer/79341
152         * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
153         s390-linux 31-bit.
154         * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
155         r294793.
156         * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
157         upstream r294790.
158         * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
159         r294799.
161 2017-02-03  Maxim Ostapenko  <m.ostapenko@samsung.com>
163         PR sanitizer/78663
164         * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
165         * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
167 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
169         * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
171 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
173         * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
175         PR sanitizer/79168
176         * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
177         if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
178         text.
179         * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
180         * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
181         * tsan/tsan_ppc_regs.h: Likewise.
182         * tsan/tsan_rtl_aarch64.S: Likewise.
183         * tsan/tsan_rtl_mips64.S: Likewise.
184         * tsan/tsan_rtl_ppc64.S: Likewise.
186 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
188         PR other/79046
189         * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
190         instead of cat to get version from BASE-VER file.
191         * asan/Makefile.am (gcc_version): Likewise.
192         * ubsan/Makefile.am (gcc_version): Likewise.
193         * sanitizer_common/Makefile.am (gcc_version): Likewise.
194         * lsan/Makefile.am (gcc_version): Likewise.
195         * tsan/Makefile.am (gcc_version): Likewise.
196         * interception/Makefile.in: Regenerated.
197         * asan/Makefile.in: Regenerated.
198         * ubsan/Makefile.in: Regenerated.
199         * sanitizer_common/Makefile.in: Regenerated.
200         * lsan/Makefile.in: Regenerated.
201         * tsan/Makefile.in: Regenerated.
203 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
205         PR other/79046
206         * configure.ac: Add GCC_BASE_VER.
207         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
208         get version from BASE-VER file.
209         * libbacktrace/Makefile.in: Regenerated.
210         * interception/Makefile.in: Regenerated.
211         * asan/Makefile.in: Regenerated.
212         * ubsan/Makefile.in: Regenerated.
213         * configure: Regenerated.
214         * sanitizer_common/Makefile.in: Regenerated.
215         * lsan/Makefile.in: Regenerated.
216         * Makefile.in: Regenerated.
217         * tsan/Makefile.in: Regenerated.
219 2017-01-10  James Clarke  <jrtc27@jrtc27.com>
221         PR sanitizer/78992
222         * sanitizer_common/sanitizer_platform_limits_posix.h
223         (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
225 2016-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
227         * LOCAL_PATCHES: Add revision.
229 2016-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
231         PR sanitizer/78532
232         * sanitizer_common/sanitizer_platform_limits_posix.h
233         (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
234         versions.
236 2016-11-29  Markus Trippelsdorf  <markus@trippelsdorf.de>
238         * LOCAL_PATCHES: Remove r242480.
240 2016-11-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
242         * LOCAL_PATCHES: Add revision.
244 2016-11-20  Jack Howarth  <howarth.at.gcc@gmail.com>
246         PR sanitizer/78267
247         * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
248         compiler supports blocks extension.
250 2016-11-16  Markus Trippelsdorf  <markus@trippelsdorf.de>
252         * LOCAL_PATCHES: Add revision.
254 2016-11-16  Markus Trippelsdorf  <markus@trippelsdorf.de>
256         PR sanitizer/78294
257         * tsan/tsan_rtl.cc: Add missing attribute.
259 2016-11-16  Maxim Ostapenko  <m.ostapenko@samsung.com>
261         * LOCAL_PATCHES: New file.
263 2016-11-16  Maxim Ostapenko  <m.ostapenko@samsung.com>
265         PR sanitizer/78307
266         * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
267         ( __ubsan_handle_cfi_bad_icall_abort): Likewise. 
268         * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
269         * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
270         function.
271         (__ubsan_handle_cfi_bad_type_abort): Likewise.
272         * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
273         (__ubsan_handle_cfi_bad_type): Export function.
274         (__ubsan_handle_cfi_bad_type_abort): Likewise.
275         * HOWTO_MERGE: Update documentation.
277 2016-11-15  Matthias Klose  <doko@ubuntu.com>
279         * configure: Regenerate.
281 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
283         * asan/asan_globals.cc (RegisterGlobal): Do not call
284         CheckODRViolationViaPoisoning.
285         (CheckODRViolationViaPoisoning): Remove.
287 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
289         * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
290         compiled code with GCC when extracting the caller PC for ARM if no
291         valid frame pointer is available.
293 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
295         PR sanitizer/63958
296         Reapply:
297         2014-10-14  David S. Miller  <davem@davemloft.net>
299         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
300         Define at __kernel_time_t, as needed for sparc.
301         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
302         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
303         (__sanitizer): Define struct___old_kernel_stat_sz,
304         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
305         (__sanitizer_ipc_perm): Adjust for sparc targets.
306         (__sanitizer_shmid_ds): Likewsie.
307         (__sanitizer_sigaction): Likewise.
308         (IOC_SIZE): Likewsie.
310 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
312         * All source files: Merge from upstream 285547.
313         * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
314         variable.
315         * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
316         * asan/Makefile.am (asan_files): Add new files.
317         * asan/Makefile.in: Regenerate.
318         * ubsan/Makefile.in: Likewise.
319         * lsan/Makefile.in: Likewise.
320         * tsan/Makefile.am (tsan_files): Add new files.
321         * tsan/Makefile.in: Regenerate.
322         * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
323         (EXTRA_libsanitizer_common_la_SOURCES): Define.
324         (libsanitizer_common_la_LIBADD): Likewise.
325         (libsanitizer_common_la_DEPENDENCIES): Likewise.
326         * sanitizer_common/Makefile.in: Regenerate.
327         * interception/Makefile.in: Likewise.
328         * libbacktace/Makefile.in: Likewise.
329         * Makefile.in: Likewise.
330         * configure: Likewise.
331         * merge.sh: Handle builtins/assembly.h merging.
332         * builtins/assembly.h: New file.
333         * asan/libtool-version: Bump the libasan SONAME.
335 2016-09-21  Jakub Jelinek  <jakub@redhat.com>
337         PR sanitizer/77567
338         * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
340 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
342         PR sanitizer/77396
343         * asan/asan_globals.cc: Cherry-pick upstream r280657.
345 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
347         PR sanitizer/71042
348         * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
349         * tsan/tsan_rtl_aarch64.S: Likewise.
351 2016-07-23  Alan Modra  <amodra@gmail.com>
353         Revert 2015-11-09  Alan Modra  <amodra@gmail.com>
354         * configure.ac: Don't substitute OBSTACK_DEFS.
355         * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
356         * tsan/Makefile.am: Likewise.
357         * configure: Regenerate.
358         * Makefile.in: Regenerate.
359         * asan/Makefile.in: Regenerate.
360         * interception/Makefile.in: Regenerate.
361         * libbacktrace/Makefile.in: Regenerate.
362         * lsan/Makefile.in: Regenerate.
363         * sanitizer_common/Makefile.in: Regenerate.
364         * tsan/Makefile.in: Regenerate.
365         * ubsan/Makefile.in: Regenerate.
367 2016-05-17  Jakub Jelinek  <jakub@redhat.com>
369         PR sanitizer/71160
370         * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
371         and r269633.
373 2016-04-21  Maxim Ostapenko  <m.ostapenko@samsung.com>
375         PR sanitizer/70624
376         * asan/asan_mac.cc: Cherry pick upstream r266868.
378 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
380         PR sanitizer/68824
381         * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
382         InitializeInterceptors): Cherry pick upstream r258119.
384 2016-01-14  Andreas Tobler  <andreast@gcc.gnu.org>
386         * configure.ac: Replace the hard-coded -ldl requirement for
387         link_sanitizer_common with a configure time check for -ldl.
388         * configure: Regenerate.
390 2015-11-24  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
392         * include/system/linux/asm/ptrace.h: Move to ...
393         * include/system/asm/ptrace.h: ... this.
395 2015-11-24  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
397         * include/system/linux/asm/ptrace.h: New header.
399 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
401         * All source files: Merge from upstream r253555.
402         * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
403         dependences for TSan for aarch64-*-linux* targets.
404         * tsan/Makefile.am: Add new source files.
405         * configure: Regenerate.
406         * tsan/Makefile.in: Likewise.
408 2015-11-09  Alan Modra  <amodra@gmail.com>
410         * sanitizer_common/sanitizer_common_interceptors.inc: Update size
411         params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
412         interceptors.
413         * configure.ac: Substitute OBSTACK_DEFS.
414         * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
415         * tsan/Makefile.am: Likewise.
416         * configure: Regenerate.
417         * Makefile.in: Regenerate.
418         * asan/Makefile.in: Regenerate.
419         * interception/Makefile.in: Regenerate.
420         * libbacktrace/Makefile.in: Regenerate.
421         * lsan/Makefile.in: Regenerate.
422         * sanitizer_common/Makefile.in: Regenerate.
423         * tsan/Makefile.in: Regenerate.
424         * ubsan/Makefile.in: Regenerate.
426 2015-10-22  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
428         PR bootstrap/68041
429         * configure.ac (link_sanitizer_common): Link against librt only if it
430         contains shm_open, required by sanitizers.
431         (CXX_ABI_NEEDED): Remove variable.
432         * configure: Regenerate.
433         * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
434         * ubsan/Makefile.in: Regenerate.
436 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
438         * HOWTO_MERGE: New file.
440 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
442         * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
443         compiled code with GCC when extracting the caller PC for ARM if no
444         valid frame pointer is available.
446 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
448         PR bootstrap/63888
449         Reapply:
450         2015-02-20  Jakub Jelinek  <jakub@redhat.com>
452         * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
453         support until it is rewritten upstream.
455         * c-c++-common/asan/pr63888.c: New test.
457 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
459         PR sanitizer/63958
460         Reapply:
461         2014-10-14  David S. Miller  <davem@davemloft.net>
463         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
464         Define at __kernel_time_t, as needed for sparc.
465         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
466         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
467         (__sanitizer): Define struct___old_kernel_stat_sz,
468         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
469         (__sanitizer_ipc_perm): Adjust for sparc targets.
470         (__sanitizer_shmid_ds): Likewsie.
471         (__sanitizer_sigaction): Likewise.
472         (IOC_SIZE): Likewsie.
474 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
476         * All source files: Merge from upstream r250806.
477         * configure.ac (link_sanitizer_common): Add -lrt flag.
478         * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
479         Set USE_CXX_ABI_FLAG=true for darwin.
480         * asan/Makefile.am (asan_files): Add new files.
481         (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
482         DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
483         * asan/Makefile.in: Regenerate.
484         * ubsan/Makefile.am (ubsan_files): Add new files.
485         (DEFS): Add DCAN_SANITIZE_UB=1.
486         (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
487         * ubsan/Makefile.in: Regenerate.
488         * tsan/Makefile.am (tsan_files): Add new files.
489         (DEFS): Add DCAN_SANITIZE_UB=0.
490         * tsan/Makefile.in: Regenerate.
491         * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
492         * sanitizer_common/Makefile.in: Regenerate.
493         * asan/libtool-version: Bump the libasan SONAME.
495 2015-09-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
497         PR sanitizer/67258
498         * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
500 2015-07-29  Markus Trippelsdorf  <markus@trippelsdorf.de>
502         PR sanitizer/63927
503         * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
504         for PowerPC.
506 2015-07-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
508         PR sanitizer/63927
509         * sanitizer_common/sanitizer_stacktrace.cc
510         (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
511         find the link register at an offset of 16 from the base of the
512         caller's stack frame.
514 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
516         * Makefile.in: Regenerated with automake-1.11.6.
517         * aclocal.m4: Likewise.
518         * asan/Makefile.in: Likewise.
519         * configure: Likewise.
520         * interception/Makefile.in: Likewise.
521         * libbacktrace/Makefile.in: Likewise.
522         * lsan/Makefile.in: Likewise.
523         * sanitizer_common/Makefile.in: Likewise.
524         * tsan/Makefile.in: Likewise.
525         * ubsan/Makefile.in: Likewise.
527 2015-04-13  Yury Gribov  <y.gribov@samsung.com>
529         PR sanitizer/64839
530         * sanitizer_common/sanitizer_platform.h: Cherry pick
531         upstream r234470.
532         * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
533         * configure.ac (RPC_DEFS): Check for precense of RPC headers.
534         * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
535         * Makefile.in: Regenerate.
536         * asan/Makefile.in: Regenerate.
537         * config.h.in: Regenerate.
538         * configure: Regenerate.
539         * interception/Makefile.in: Regenerate.
540         * libbacktrace/Makefile.in: Regenerate.
541         * lsan/Makefile.in: Regenerate.
542         * sanitizer_common/Makefile.in: Regenerate.
543         * tsan/Makefile.in: Regenerate.
544         * ubsan/Makefile.in: Regenerate.
547 2015-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
549         PR sanitizer/59009
550         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
551         upstream r230324.
552         * sanitizer_common/sanitizer_platform.h: Likewise.
553         * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
555 2015-03-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
557         * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
558         upstream 224508 and 224755.
560 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
562         PR sanitizer/63958
563         Reapply:
564         2014-10-14  David S. Miller  <davem@davemloft.net>
566         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
567         Define at __kernel_time_t, as needed for sparc.
568         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
569         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
570         (__sanitizer): Define struct___old_kernel_stat_sz,
571         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
572         (__sanitizer_ipc_perm): Adjust for sparc targets.
573         (__sanitizer_shmid_ds): Likewsie.
574         (__sanitizer_sigaction): Likewise.
575         (IOC_SIZE): Likewsie.
577 2015-02-27  Peter Bergner  <bergner@vnet.ibm.com>
579         * configure.tgt: Enable build on powerpc*le-*-linux.
581 2015-02-23  Jakub Jelinek  <jakub@redhat.com>
583         PR bootstrap/63888
584         * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
585         support until it is rewritten upstream.
587 2015-01-26  Matthias Klose  <doko@ubuntu.com>
589         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
590         * configure: Regenerate.
592 2015-01-25  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
594         * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
595         * configure: Regenerate.
596         * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
598 2015-01-25  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
600         * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
601         * configure: Regenerate.
602         * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
603         (libtsan_la_DEPENDENCIES): Likewise.
604         * Makefile.in: Regenerate.
605         * asan/Makefile.in: Regenerate.
606         * interception/Makefile.in: Regenerate.
607         * libbacktrace/Makefile.in: Regenerate.
608         * lsan/Makefile.in: Regenerate.
609         * sanitizer_common/Makefile.in: Regenerate.
610         * tsan/Makefile.in: Regenerate.
611         * ubsan/Makefile.in: Regenerate.
613 2015-01-22  Jakub Jelinek  <jakub@redhat.com>
615         * tsan/tsan_rtl.h: Cherry pick upstream r226829.
617 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
619         PR sanitizer/64435
620         * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
621         upstream r226637.
622         * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
623         * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
625 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
627         PR sanitizer/64632
628         * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
630 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
632         PR sanitizer/64435
633         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
634         upstream r223925.
636 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
638         * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
639         upstream r224518 and r224519.
640         * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
641         r224834.
643 2014-12-16  Jakub Jelinek  <jakub@redhat.com>
645         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
646         sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
647         sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
648         upstream r224308.
650 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
652         PR bootstrap/63784
653         * configure: Regenerated.
655 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
657         PR target/61137
658         * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
659         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
661 2014-11-14  Uros Bizjak  <ubizjak@gmail.com>
663         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
664         * asan/Makefile.am (AM_CXXFLAGS): Ditto.
665         * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
666         * interception/Makefile.am (AM_CXXFLAGS): Ditto.
667         * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
668         * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
669         * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
670         * sanitizer_common/Makefile.in: Regenerate.
671         * asan/Makefile.in: Ditto.
672         * lsan/Makefile.in: Ditto.
673         * interception/Makefile.in: Ditto.
674         * tsan/Makefile.in: Ditto.
675         * libbacktrace/Makefile.in: Ditto.
676         * ubsan/Makefile.in: Ditto.
678 2014-11-13  Kostya Serebryany  <kcc@google.com>
680         * All source files: Merge from upstream r221802.
681         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
682         (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
683         with 'start' to follow the new interface.
684         * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
685         * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
686         * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
687         * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
688         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
689         files.
690         (AM_CXXFLAGS): Added -std=c++11.
691         * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
692         * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
693         * asan/Makefile.in: Regenerate.
694         * interception/Makefile.in: Regenerate.
695         * libbacktrace/Makefile.in: Regenerate.
696         * lsan/Makefile.in: Regenerate.
697         * sanitizer_common/Makefile.in: Regenerate.
698         * tsan/Makefile.in: Regenerate.
699         * ubsan/Makefile.in: Regenerate.
701 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
703         PR target/63610
704         * configure: Regenerate.
706 2014-10-16  Martin Liska  <mliska@suse.cz>
708         * asan/Makefile.am: IPA ICF pass is disabled.
709         * asan/Makefile.in: Likewise.
711 2014-10-14  David S. Miller  <davem@davemloft.net>
713         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
714         Define at __kernel_time_t, as needed for sparc.
715         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
716         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
717         (__sanitizer): Define struct___old_kernel_stat_sz,
718         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
719         (__sanitizer_ipc_perm): Adjust for sparc targets.
720         (__sanitizer_shmid_ds): Likewsie.
721         (__sanitizer_sigaction): Likewsie.
722         (IOC_SIZE): Likewsie.
724 2014-10-14  Jakub Jelinek  <jakub@redhat.com>
726         * ubsan/Makefile.am (DEFS): Add -DPIC.
727         * ubsan/Makefile.in: Regenerated.
729 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
731         * configure.tgt: Enable build on aarch64*-linux.
733 2014-09-19  Kostya Serebryany  <kcc@google.com>
735         * All source files: Merge from upstream r218156.
736         * asan/Makefile.am (asan_files): Added new files.
737         * asan/Makefile.in: Regenerate.
738         * ubsan/Makefile.am (ubsan_files): Added new files.
739         * ubsan/Makefile.in: Regenerate.
740         * tsan/Makefile.am (tsan_files): Added new files.
741         * tsan/Makefile.in: Regenerate.
742         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
743           files.
744         * sanitizer_common/Makefile.in: Regenerate.
745         * asan/libtool-version: Bump the libasan SONAME.
747 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
749         * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
750         upstream r215485, r217389, r217391 and r217400.
752 2014-06-23  Paolo Carlini  <paolo.carlini@oracle.com>
754         * sanitizer_common/sanitizer_common_interceptors.inc:
755         Cherry pick upstream r211008.
757 2014-06-11  Richard Biener  <rguenther@suse.de>
759         * asan/asan_linux.cc: Cherry pick upstream r210012.
761 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
763         * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
764         r209879.
765         * sanitizer_common/sanitizer_common.h: Likewise.
766         * asan/asan_mapping.h: Likewise.
767         * asan/asan_linux.cc: Likewise.
768         * tsan/tsan_mman.cc: Cherry pick upstream r209744.
769         * sanitizer_common/sanitizer_allocator.h: Likewise.
771 2014-05-23  Marek Polacek  <polacek@redhat.com>
773         * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
774         floating-point types.
776 2014-05-22  Kostya Serebryany  <kcc@google.com>
778         * All source files: Merge from upstream r209283.
779         * asan/Makefile.am (asan_files): Added new files.
780         * asan/Makefile.in: Regenerate.
781         * tsan/Makefile.am (tsan_files): Added new files.
782         * tsan/Makefile.in: Regenerate.
783         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
784         files.
785         * sanitizer_common/Makefile.in: Regenerate.
787 2014-05-14  Yury Gribov  <y.gribov@samsung.com>
789         PR sanitizer/61100
790         * Makefile.am (nodist_saninclude_HEADERS): Install
791         public headers.
792         * Makefile.in: Regenerate.
794 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
796         * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
797         Add ../../libbacktrace/sort.c.
798         * libbacktrace/Makefile.in: Regenerate.
799         * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
801 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
803         * configure.tgt: Unsupported for little endian PowerPC for now.
805 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
807         PR sanitizer/60055
808         * tsan/tsan_flags.cc (__tsan_default_options): Add
809         SANITIZER_INTERFACE_ATTRIBUTE.  Backport from upstream r200747.
810         * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
812         PR sanitizer/60038
813         * sanitizer_common/sanitizer_linux_libcdep.cc: Include
814         sanitizer_atomic.h and unistd.h.
815         (kThreadDescriptorSize): Made static, remove initializer and const,
816         change type to atomic_uintptr_t.
817         (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
818         query glibc version, compute kThreadDescriptorSize depending on
819         glibc version minor number.
820         (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
821         kThreadDescriptorSize directly.
823 2014-01-23  Yury Gribov  <y.gribov@samsung.com>
824             Jakub Jelinek  <jakub@redhat.com>
826         PR sanitizer/57316
827         * configure.ac: Check for missing syscalls.
828         * Makefile.am: Likewise.
829         * configure: Regenerate.
830         * Makefile.in: Regenerate.
832 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
834         * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
835         (LibbacktraceSymbolizer::Demangle): New declaration.
836         * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
837         (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
838         method if possible.
839         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
840         "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
841         (struct CplusV3DemangleData): New type.
842         (CplusV3DemangleCallback, CplusV3Demangle): New functions.
843         (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
844         SymbolizeDataCallback): Use CplusV3Demangle.
845         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
846         -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
847         * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
848         cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
849         cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
850         cplus_demangle_init_info, cplus_demangle_mangled_name,
851         cplus_demangle_operators, cplus_demangle_print,
852         cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
853         cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
854         is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
855         Define.
856         (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
857         (memcmp, strncmp): Redefine.
858         * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
859         ../../libiberty/cp-demangle.c.
860         * libbacktrace/bridge.cc (__asan_internal_memcmp,
861         __asan_internal_strncmp): New functions.
862         * sanitizer_common/Makefile.in: Regenerated.
863         * libbacktrace/Makefile.in: Regenerated.
864         * configure: Regenerated.
865         * configure.ac: Regenerated.
866         * config.h.in: Regenerated.
868         * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
869         -isystem $(top_srcdir)/include/system.
870         * sanitizer_common/Makefile.in: Regenerated.
871         * include/system/linux/aio_abi.h: New header.
872         * include/system/linux/mroute.h: New header.
873         * include/system/linux/mroute6.h: New header.
874         * include/system/linux/perf_event.h: New header.
875         * include/system/linux/types.h: New header.
877         PR sanitizer/59136
878         * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
879         LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
880         and -I/-include flags.
881         * lsan/Makefile.am (liblsan_la_LIBADD): Add
882         libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
883         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
884         * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
885         * asan/Makefile.am (libasan_la_LIBADD): Likewise.
886         * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
887         libbacktrace.
888         * README.gcc: Document that also lsan and ubsan are
889         maintained in compiler-rt upstream.
890         * libbacktrace/Makefile.am: New file.
891         * libbacktrace/backtrace-rename.h: New file.
892         * libbacktrace/backtrace-supported.h.in: New file.
893         * libbacktrace/bridge.cc: New file.
894         * configure.ac: Add tests needed for libbacktrace build
895         within libsanitizer.
896         * sanitizer_common/Makefile.in: Regenerated.
897         * lsan/Makefile.in: Regenerated.
898         * tsan/Makefile.in: Regenerated.
899         * ubsan/Makefile.in: Regenerated.
900         * libbacktrace/Makefile.in: Generated.
901         * config.h.in: Regenerated.
902         * configure: Regenerated.
903         * Makefile.in: Regenerated.
904         * interception/Makefile.in: Regenerated.
905         * asan/Makefile.in: Regenerated.
906         * aclocal.m4: Regenerated.
908 2013-12-19  Kostya Serebryany  <kcc@google.com>
910         * sanitizer_common/sanitizer_platform_limits_posix.cc:
911         workaround for missing definition of EOWNERDEAD, backport
912         from upstream r196779.
914 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
916         * sanitizer_common/sanitizer_platform_limits_posix.h
917         (__sanitizer_shmid_ds): Use u64 on time fields for x32.
918         (__sanitizer_clock_t): Use long long for x32.
920 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
922         * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
923         <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
924         (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
926 2013-12-05  H.J. Lu  <hongjiu.lu@intel.com>
928         * configure.ac (link_sanitizer_common): Add -lm.
929         * configure: Regenerated.
931 2013-12-05  Kostya Serebryany  <kcc@google.com>
933         * All source files: Merge from upstream r196489.
934         * merge.sh: Add *.S to the list of merged files.
936 2013-12-05  Yury Gribov  <y.gribov@samsung.com>
938         PR sanitizer/59368
939         * Makefile.am (gcc_version): Added gcc_version.
940         * Makefile.in: Regenerate.
942 2013-12-05  Kostya Serebryany  <kcc@google.com>
944         * All source files: Merge from upstream r196090.
945         * tsan/Makefile.am (tsan_files): Added new files.
946         * tsan/Makefile.in: Regenerate.
947         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
948         * sanitizer_common/Makefile.in: Regenerate.
949         * lsan/Makefile.am (lsan_files): Added new files.
950         * lsan/Makefile.in: Regenerate.
952 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
953             Yury Gribov  <y.gribov@samsung.com>
955         PR sanitizer/59063
956         * libsanitizer.spec.in: Add spec file to hold link flags for
957         various sanitizer libs.
958         * configure.ac: Check whether clock_* routines come from librt.
959         * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
960         configure.ac.
961         * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
962         * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
963         * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
964         * asan/Makefile.in: Regenerate.
965         * interception/Makefile.in: Regenerate.
966         * lsan/Makefile.in: Regenerate.
967         * sanitizer_common/Makefile.in: Regenerate.
968         * tsan/Makefile.in: Regenerate.
969         * ubsan/Makefile.in: Regenerate.
970         * Makefile.in: Regenerate.
971         * configure: Regenerate.
973 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
974             Yury Gribov  <y.gribov@samsung.com>
976         PR sanitizer/59106
977         * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
978         don't need it.
979         * ubsan/Makefile.in: Regenerated.
981 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
983         PR sanitizer/59061
984         * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
985         * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
986         * configure: Regenerated.
987         * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
988         liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
989         * lsan/Makefile.in: Regenerated.
991 2013-11-22  Mike Stump  <mikestump@comcast.net>
993         * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
994         change from upstream to fix build.
996 2013-11-18  Yury Gribov  <y.gribov@samsung.com>
998         PR sanitizer/59106
999         * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1000         * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1001         * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1002         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1003         * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1004         * asan/Makefile.in: Regenerate.
1005         * interception/Makefile.in: Regenerate.
1006         * tsan/Makefile.in: Regenerate.
1007         * lsan/Makefile.in: Regenerate.
1008         * sanitizer_common/Makefile.in: Regenerate.
1010 2013-11-15  Kostya Serebryany  <kcc@google.com>
1012         PR sanitizer/58994
1013         Backport from upstream revision 194573
1014         * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1015         back to the original functions in the common libsanitizer
1016         interceptors and the __cxa_atexit() interceptor on Darwin.
1018 2013-11-13  Peter Bergner  <bergner@vnet.ibm.com>
1020         PR sanitizer/59009
1021         * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1022         ifdef out more source.
1024 2013-11-12  Jakub Jelinek  <jakub@redhat.com>
1026         * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1027         ifdef out almost the whole source.
1028         * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1030 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1032         PR sanitizer/59018
1033         * sanitizer_common/sanitizer_platform_limits_posix.cc
1034         (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1035         defined.
1037 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1039         PR sanitizer/59018
1040         * sanitizer_common/sanitizer_platform_limits_linux.cc
1041         (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1042         defined.
1043         * sanitizer_common/sanitizer_platform_limits_posix.h
1044         (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1045         defined.
1046         (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1047         is defined.
1048         (__sanitizer___kernel_gid_t): Likewise.
1049         (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1050         is defined.
1052 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1054         PR sanitizer/59018
1055         * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1056         2 64-bit integers to save and restore fn and arg.  Properly load
1057         newtls/child_tidptr into r8/r10.
1059 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1061         PR sanitizer/59018
1062         * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1063         internal_munmap, internal_open, internal_read, internal_write,
1064         internal_stat, internal_lstat, internal_fstat, internal_readlink,
1065         internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1066         BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1067         internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1069 2013-11-04  Kostya Serebryany  <kcc@google.com>
1071         * All source files: Merge from upstream r191666.
1072         * merge.sh: Added lsan.
1073         * configure.ac (AC_CONFIG_FILES): Added lsan.
1074         * Makefile.am (SUBDIRS): Added lsan.
1075         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1076         * asan/Makefile.am (asan_files): Added new files.
1077         (libasan_la_LIBADD): Added a dependency on lsan.
1078         * lsan/Makefile.am: New file.
1079         * asan/Makefile.in: Regenerate.
1080         * lsan/Makefile.in: Regenerate.
1081         * Makefile.in: Regenerate.
1082         * configure: Regenerate.
1083         * sanitizer_common/Makefile.in: Regenerate.
1085 2013-09-20  Alan Modra  <amodra@gmail.com>
1087         * configure: Regenerate.
1089 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
1091         * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1092         libinterception.la for Darwin.
1093         * ubsan/Makefile.in: Regenerate.
1095 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
1097         * Makefile.am (SUBDIRS): Add ubsan.
1098         * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1099         * merge.sh: Merge ubsan.
1100         * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1101         * sanitizer_common/sanitizer_printf.cc: Likewise.
1102         * sanitizer_common/sanitizer_common.h: Likewise.
1103         * ubsan: New directory. Import ubsan runtime from llvm.
1105 2013-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
1107         * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1108         Cherry pick upstream r182922.
1110 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
1112         * configure.tgt: Add ARM pattern.
1114 2013-03-22  Jakub Jelinek  <jakub@redhat.com>
1116         PR other/43620
1117         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1118         * Makefile.in: Regenerated.
1119         * asan/Makefile.in: Regenerated.
1120         * interception/Makefile.in: Regenerated.
1121         * sanitizer_common/Makefile.in: Regenerated.
1122         * tsan/Makefile.in: Regenerated.
1124 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
1126         * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1127         * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1128         0x4fffffffffULL.
1130 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
1132         PR sanitizer/56393
1133         * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1134         libasan_preinit.o.
1135         (libasan_preinit.o): Depend on asan_preinit.o.
1136         * asan/Makefile.in: Regenerated.
1137         * asan/asan_preinit.cc: New file, synced from upstream.
1138         * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1140 2013-02-21  Jack Howarth  <howarth@bromo.med.uc.edu>
1142         * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1143         dynamic/asan_interceptors_dynamic.cc.
1144         * asan/Makefile.in: Regenerated.
1145         * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1147 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
1149         * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1150         defined.  Add used attribute.
1152 2013-02-21  Kostya Serebryany  <kcc@google.com>
1154         * All source files: Merge from upstream r175733.
1155         * sanitizer_common/Makefile.am: Added a new file.
1156         * sanitizer_common/Makefile.in: Regenerated.
1158 2013-02-14  H.J. Lu  <hongjiu.lu@intel.com>
1160         PR bootstrap/56327
1161         * interception/interception.h (OFF_T): Merged from upstream
1162         r175140.
1164 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
1166         * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1168 2013-02-13  Kostya Serebryany  <kcc@google.com>
1170         PR sanitizer/56128
1171         * All source files: Merge from upstream r175049.
1172         * interception/Makefile.am: added include path.
1173         * interception/Makefile.in: Regenerated.
1175 2013-02-11  Jack Howarth  <howarth@bromo.med.uc.edu>
1177         * configure.tgt: Disable build on darwin9 and earlier.
1179 2013-01-23  Kostya Serebryany  <kcc@google.com>
1181         PR sanitizer/55989
1182         * All source files: Merge from upstream r173241.
1183         * merge.sh: Support merging .inc files.
1185 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
1187         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1188         -Wno-c99-extensions.
1189         * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1190         * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1191         * sanitizer_common/Makefile.in: Regenerated.
1192         * interception/Makefile.in: Regenerated.
1193         * asan/Makefile.in: Regenerated.
1195 2013-01-10  Wei Mi  <wmi@google.com>
1197         PR sanitizer/55488
1198         * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1199         * tsan/Makefile.in: Regenerated.
1200         * tsan/tsan_rtl.h: Enable HACKY_CALL.
1202 2013-01-10  Kostya Serebryany  <kcc@google.com>
1204         * All source files: Merge from upstream r171973.
1205         * sanitizer_common/Makefile.am: Added new files.
1206         * asan/Makefile.am: Likewise.
1207         * tsan/Makefile.am: Likewise.
1208         * sanitizer_common/Makefile.in: Regenerated.
1209         * asan/Makefile.in: Likewise.
1210         * tsan/Makefile.in: Likewise.
1212 2013-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1214         * asan/Makefile.am (libasan_la_LIBADD): Replace
1215         LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1216         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1217         * Makefile.in: Regenerated.
1218         * configure: Likewise.
1219         * asan/Makefile.in: Likewise.
1220         * interception/Makefile.in: Likewise.
1221         * sanitizer_common/Makefile.in: Likewise.
1222         * tsan/Makefile.in: Likewise.
1224 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1226         * Makefile.am (AM_MAKEFLAGS): Restored.
1227         * interception/Makefile.am: Likewise.
1228         * sanitizer_common/Makefile.am: Likewise.
1229         * tsan/Makefile.am: Likewise.
1230         * Makefile.in: Regenerated.
1231         * asan/Makefile.in: Likewise.
1232         * interception/Makefile.in: Likewise.
1233         * sanitizer_common/Makefile.in: Likewise.
1234         * tsan/Makefile.in: Likewise.
1236 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1238         * Makefile.am (MAKEOVERRIDES): Restored.
1239         * asan/Makefile.am: Likewise.
1240         * interception/Makefile.am: Likewise.
1241         * sanitizer_common/Makefile.am: Likewise.
1242         * tsan/Makefile.am: Likewise.
1243         * Makefile.in: Regenerated.
1244         * asan/Makefile.in: Likewise.
1245         * interception/Makefile.in: Likewise.
1246         * sanitizer_common/Makefile.in: Likewise.
1247         * tsan/Makefile.in: Likewise.
1249 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1251         * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1252         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1253         * Makefile.in: Regenerated.
1254         * configure: Likewise.
1255         * asan/Makefile.in: Likewise.
1256         * interception/Makefile.in: Likewise.
1257         * sanitizer_common/Makefile.in: Likewise.
1258         * tsan/Makefile.in: Likewise.
1260 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1262         * Makefile.am (AM_MAKEFLAGS): Removed.
1263         (MAKEOVERRIDES): Likewise.
1264         * asan/Makefile.am: Likewise.
1265         * interception/Makefile.am: Likewise.
1266         * sanitizer_common/Makefile.am: Likewise.
1267         * tsan/Makefile.am: Likewise.
1268         * Makefile.in: Regenerated.
1269         * asan/Makefile.in: Likewise.
1270         * interception/Makefile.in: Likewise.
1271         * sanitizer_common/Makefile.in: Likewise.
1272         * tsan/Makefile.in: Likewise.
1274 2012-12-11  H.J. Lu  <hongjiu.lu@intel.com>
1276         PR sanitizer/55533
1277         * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1278         * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1279         * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1280         (AM_MAKEFLAGS): Remove CC and CXX.
1281         * interception/Makefile.am: Likewise.
1282         * sanitizer_common/Makefile.am: Likewise.
1283         * tsan/Makefile.am: Likewise.
1284         * Makefile.in: Regenerated.
1285         * aclocal.m4: Likewise.
1286         * configure: Likewise.
1287         * asan/Makefile.in: Likewise.
1288         * interception/Makefile.in: Likewise.
1289         * sanitizer_common/Makefile.in: Likewise.
1290         * tsan/Makefile.in: Likewise.
1292 2012-12-06  Peter Bergner  <bergner@vnet.ibm.com>
1294         * configure.tgt: Enable build on powerpc*-linux.
1296 2012-12-06  Jack Howarth  <howarth@bromo.med.uc.edu>
1298         PR 55599/sanitizer
1299         * configure.ac: Set enable_static=no on darwin.
1300         * configure: Regenerated.
1302 2012-12-06  Kostya Serebryany  <kcc@google.com>
1304         * All files: Merge from upstream r169392.
1306 2012-12-05  Kostya Serebryany  <kcc@google.com>
1308         * All files: Merge from upstream r169371.
1310 2012-12-04  Kostya Serebryany  <kcc@google.com>
1311             Jack Howarth  <howarth@bromo.med.uc.edu>
1313         PR 55521/sanitizer
1314         * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1315         * Makefile.am: Don't build interception subdir when
1316         USING_MAC_INTERPOSE defined.
1317         * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1318         -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1319         Compile asan_interceptors_dynamic.cc but not libinterception
1320         when USING_MAC_INTERPOSE defined.
1321         * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1322         * configure: Regenerated.
1323         * Makefile.in: Likewise.
1324         * asan/Makefile.in: Likewise.
1325         * interception/Makefile.in: Likewise.
1326         * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1327         * asan/asan_mac.cc: Likewise.
1328         * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1329         and use MISSING_BLOCKS_SUPPORT.
1330         * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1331         * interception/mach_override/LICENSE.txt: Remove unused file.
1332         * interception/mach_override/mach_override.c: Likewise.
1333         * interception/mach_override/mach_override.h: Likewise.
1334         * interception/mach_override: Remove unused directory.
1336 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1338         * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1339         * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1340         * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1341         files.
1342         (AM_MAKEFLAGS): Restore CC and CXX.
1343         * interception/Makefile.am: Likewise.
1344         * sanitizer_common/Makefile.am: Likewise.
1345         * tsan/Makefile.am: Likewise.
1346         * Makefile.in: Regenerated.
1347         * aclocal.m4: Likewise.
1348         * configure: Likewise.
1349         * asan/Makefile.in: Likewise.
1350         * interception/Makefile.in: Likewise.
1351         * sanitizer_common/Makefile.in: Likewise.
1352         * tsan/Makefile.in: Likewise.
1354 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1356         * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1357         * configure.ac (ACX_NONCANONICAL_TARGET): New.
1358         * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1359         files.
1360         (AM_MAKEFLAGS): Remove CC and CXX.
1361         * interception/Makefile.am: Likewise.
1362         * sanitizer_common/Makefile.am: Likewise.
1363         * tsan/Makefile.am: Likewise.
1364         * Makefile.in: Regenerated.
1365         * aclocal.m4: Likewise.
1366         * configure: Likewise.
1367         * asan/Makefile.in: Likewise.
1368         * interception/Makefile.in: Likewise.
1369         * sanitizer_common/Makefile.in: Likewise.
1370         * tsan/Makefile.in: Likewise.
1372 2012-11-27  Kostya Serebryany  <kcc@google.com>
1374         * All files: Merge from upstream r168699.
1376 2012-11-24  Kostya Serebryany  <kcc@google.com>
1377             Jack Howarth  <howarth@bromo.med.uc.edu>
1379         * interception/mach_override/mach_override.c: Migrate from llvm.
1380         * interception/mach_override/mach_override.h: Likewise.
1381         * interception/mach_override/LICENSE.txt: Likewise.
1382         * configure.tgt: Add darwin to supported targets.
1383         * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1384         * interception/Makefile.am: Compile mach_override.c when
1385         USING_MACH_OVERRIDE defined.
1386         * configure: Regenerated.
1387         * interception/Makefile.in: Likewise.
1389 2012-11-23  H.J. Lu  <hongjiu.lu@intel.com>
1391         PR sanitizer/55450
1392         * tsan/Makefile.am (gcc_version): New.
1393         * tsan/Makefile.in: Regenerated.
1395 2012-11-23  Kostya Serebryany  <kcc@google.com>
1397         * merge.sh: Support tsan, support added/removed files.
1398         * tsan/Makefile.am: Remove tsan_printf.cc.
1399         * tsan/Makefile.in: Regenerated.
1400         * other files: Merge from upstream r168514.
1402 2012-11-23  Kostya Serebryany  <kcc@google.com>
1404         * merge.sh: New file.
1406 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
1408         * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1409         * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1410         automake conditional instead of !MULTISUBDIR32.
1411         * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1412         for 64-bit multilib.
1413         * configure.ac: Check for void * size, source in configure.tgt,
1414         define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1415         * configure: Regenerated.
1416         * Makefile.in: Regenerated.
1417         * tsan/Makefile.in: Regenerated.
1419 2012-11-22  Wei Mi  <wmi@google.com>
1421         * tsan: New directory. Import tsan runtime from llvm.
1422         * configure.ac: Add 64 bits tsan build.
1423         * Makefile.am: Likewise.
1424         * configure: Regenerated.
1425         * Makefile.in: Likewise.
1427 2012-11-21  Kostya Serebryany  <kcc@google.com>
1429         * README.gcc: Extend the README.gcc with mode details.
1431 2012-11-20  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
1433         * sanitizer_common/sanitizer_linux.cc
1434         (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1435         (internal_mmap): Use it.
1436         (internal_filesize): Likewise.
1438 2012-11-16  Tom Tromey  <tromey@redhat.com>
1440         * configure.ac: Invoke AM_MAINTAINER_MODE.
1441         * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1442         interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1444 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
1446         PR other/55333
1447         * include/sanitizer/common_interface_defs.h (uhwptr): New type
1448         for hardware pointer.
1449         * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1450         Replace uptr with uhwptr for stack unwind.
1452 2012-11-16  Dodji Seketeli  <dodji@redhat.com>
1454         * configure.tgt: Enable build on sparc linux.
1456 2012-11-15  H.J. Lu  <hongjiu.lu@intel.com>
1458         * configure.ac: Properly set MULTISUBDIR.
1459         * asan/Makefile.am (gcc_version): New.
1460         * interception/Makefile.am (gcc_version): Likewise.
1461         * sanitizer_common/Makefile.am (gcc_version): Likewise.
1462         * configure: Regenerated.
1463         * asan/Makefile.in: Likewise.
1464         * interception/Makefile.in: Likewise.
1465         * sanitizer_common/Makefile.in: Likewise.
1467 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1469         PR other/55291
1470         * configure.ac (--enable-version-specific-runtime-libs): New option.
1471         (AC_CANONICAL_SYSTEM): New.
1472         (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1473         (toolexecdir): Support multilib.
1474         (toolexeclibdir): Likewise.
1475         (multilib_arg): New.
1476         * Makefile.in: Regenerated.
1477         * aclocal.m4: Likewise.
1478         * configure: Likewise.
1479         * asan/Makefile.in: Likewise.
1480         * interception/Makefile.in: Likewise.
1481         * sanitizer_common/Makefile.in: Likewise.
1483 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1485         PR other/55292
1486         Backport from upstream revision 167883
1487         * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1488         __x86_64__ instead of __WORDSIZE.
1489         (internal_filesize): Likwise.
1491 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1493         * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1494         * Makefile.in: Regenerated.
1495         * configure: Likewise.
1497 2012-11-13  H.J. Lu  <hongjiu.lu@intel.com>
1499         PR other/55304
1500         * acinclude.m4: New file.
1501         * Makefile.am (ACLOCAL_AMFLAGS): New.
1502         * configure.ac (AC_PREREQ): Set to 2.64.
1503         (AC_CONFIG_AUX_DIR): Set to "..".
1504         * Makefile.in: Regenerated.
1505         * aclocal.m4: Likewise.
1506         * configure: Likewise.
1507         * asan/Makefile.in: Likewise.
1508         * interception/Makefile.in: Likewise.
1509         * sanitizer_common/Makefile.in: Likewise.
1511         * config.guess: Removed.
1512         * config.sub: Likewise.
1513         * depcomp: Likewise.
1514         * install-sh: Likewise.
1515         * ltmain.sh: Likewise.
1516         * missing: Likewise.
1518 2012-11-13  Richard Henderson  <rth@redhat.com>
1520         * configure.tgt: New file.
1522 2012-11-12  David S. Miller  <davem@davemloft.net>
1524         * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1526 2012-10-29  Wei Mi  <wmi@google.com>
1528         Initial checkin: migrate asan runtime from llvm.