* g++.dg/debug/dwarf2/pr44641.C: Add one to expected line numbers.
[official-gcc.git] / libsanitizer / ChangeLog
blobba4c423950941648361f9f6ebc17a899d1fea414
1 2015-09-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
3         PR sanitizer/67258
4         * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
6 2015-07-29  Markus Trippelsdorf  <markus@trippelsdorf.de>
8         PR sanitizer/63927
9         * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
10         for PowerPC.
12 2015-07-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14         PR sanitizer/63927
15         * sanitizer_common/sanitizer_stacktrace.cc
16         (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
17         find the link register at an offset of 16 from the base of the
18         caller's stack frame.
20 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22         * Makefile.in: Regenerated with automake-1.11.6.
23         * aclocal.m4: Likewise.
24         * asan/Makefile.in: Likewise.
25         * configure: Likewise.
26         * interception/Makefile.in: Likewise.
27         * libbacktrace/Makefile.in: Likewise.
28         * lsan/Makefile.in: Likewise.
29         * sanitizer_common/Makefile.in: Likewise.
30         * tsan/Makefile.in: Likewise.
31         * ubsan/Makefile.in: Likewise.
33 2015-04-13  Yury Gribov  <y.gribov@samsung.com>
35         PR sanitizer/64839
36         * sanitizer_common/sanitizer_platform.h: Cherry pick
37         upstream r234470.
38         * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
39         * configure.ac (RPC_DEFS): Check for precense of RPC headers.
40         * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
41         * Makefile.in: Regenerate.
42         * asan/Makefile.in: Regenerate.
43         * config.h.in: Regenerate.
44         * configure: Regenerate.
45         * interception/Makefile.in: Regenerate.
46         * libbacktrace/Makefile.in: Regenerate.
47         * lsan/Makefile.in: Regenerate.
48         * sanitizer_common/Makefile.in: Regenerate.
49         * tsan/Makefile.in: Regenerate.
50         * ubsan/Makefile.in: Regenerate.
53 2015-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
55         PR sanitizer/59009
56         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
57         upstream r230324.
58         * sanitizer_common/sanitizer_platform.h: Likewise.
59         * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
61 2015-03-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
63         * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
64         upstream 224508 and 224755.
66 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
68         PR sanitizer/63958
69         Reapply:
70         2014-10-14  David S. Miller  <davem@davemloft.net>
72         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
73         Define at __kernel_time_t, as needed for sparc.
74         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
75         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
76         (__sanitizer): Define struct___old_kernel_stat_sz,
77         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
78         (__sanitizer_ipc_perm): Adjust for sparc targets.
79         (__sanitizer_shmid_ds): Likewsie.
80         (__sanitizer_sigaction): Likewise.
81         (IOC_SIZE): Likewsie.
83 2015-02-27  Peter Bergner  <bergner@vnet.ibm.com>
85         * configure.tgt: Enable build on powerpc*le-*-linux.
87 2015-02-23  Jakub Jelinek  <jakub@redhat.com>
89         PR bootstrap/63888
90         * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
91         support until it is rewritten upstream.
93 2015-01-26  Matthias Klose  <doko@ubuntu.com>
95         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
96         * configure: Regenerate.
98 2015-01-25  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
100         * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
101         * configure: Regenerate.
102         * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
104 2015-01-25  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
106         * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
107         * configure: Regenerate.
108         * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
109         (libtsan_la_DEPENDENCIES): Likewise.
110         * Makefile.in: Regenerate.
111         * asan/Makefile.in: Regenerate.
112         * interception/Makefile.in: Regenerate.
113         * libbacktrace/Makefile.in: Regenerate.
114         * lsan/Makefile.in: Regenerate.
115         * sanitizer_common/Makefile.in: Regenerate.
116         * tsan/Makefile.in: Regenerate.
117         * ubsan/Makefile.in: Regenerate.
119 2015-01-22  Jakub Jelinek  <jakub@redhat.com>
121         * tsan/tsan_rtl.h: Cherry pick upstream r226829.
123 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
125         PR sanitizer/64435
126         * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
127         upstream r226637.
128         * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
129         * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
131 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
133         PR sanitizer/64632
134         * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
136 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
138         PR sanitizer/64435
139         * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
140         upstream r223925.
142 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
144         * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
145         upstream r224518 and r224519.
146         * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
147         r224834.
149 2014-12-16  Jakub Jelinek  <jakub@redhat.com>
151         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
152         sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
153         sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
154         upstream r224308.
156 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
158         PR bootstrap/63784
159         * configure: Regenerated.
161 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
163         PR target/61137
164         * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
165         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
167 2014-11-14  Uros Bizjak  <ubizjak@gmail.com>
169         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
170         * asan/Makefile.am (AM_CXXFLAGS): Ditto.
171         * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
172         * interception/Makefile.am (AM_CXXFLAGS): Ditto.
173         * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
174         * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
175         * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
176         * sanitizer_common/Makefile.in: Regenerate.
177         * asan/Makefile.in: Ditto.
178         * lsan/Makefile.in: Ditto.
179         * interception/Makefile.in: Ditto.
180         * tsan/Makefile.in: Ditto.
181         * libbacktrace/Makefile.in: Ditto.
182         * ubsan/Makefile.in: Ditto.
184 2014-11-13  Kostya Serebryany  <kcc@google.com>
186         * All source files: Merge from upstream r221802.
187         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
188         (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
189         with 'start' to follow the new interface.
190         * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
191         * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
192         * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
193         * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
194         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
195         files.
196         (AM_CXXFLAGS): Added -std=c++11.
197         * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
198         * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
199         * asan/Makefile.in: Regenerate.
200         * interception/Makefile.in: Regenerate.
201         * libbacktrace/Makefile.in: Regenerate.
202         * lsan/Makefile.in: Regenerate.
203         * sanitizer_common/Makefile.in: Regenerate.
204         * tsan/Makefile.in: Regenerate.
205         * ubsan/Makefile.in: Regenerate.
207 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
209         PR target/63610
210         * configure: Regenerate.
212 2014-10-16  Martin Liska  <mliska@suse.cz>
214         * asan/Makefile.am: IPA ICF pass is disabled.
215         * asan/Makefile.in: Likewise.
217 2014-10-14  David S. Miller  <davem@davemloft.net>
219         * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
220         Define at __kernel_time_t, as needed for sparc.
221         (struct __old_kernel_stat): Don't check if __sparc__ is defined.
222         * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
223         (__sanitizer): Define struct___old_kernel_stat_sz,
224         struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
225         (__sanitizer_ipc_perm): Adjust for sparc targets.
226         (__sanitizer_shmid_ds): Likewsie.
227         (__sanitizer_sigaction): Likewsie.
228         (IOC_SIZE): Likewsie.
230 2014-10-14  Jakub Jelinek  <jakub@redhat.com>
232         * ubsan/Makefile.am (DEFS): Add -DPIC.
233         * ubsan/Makefile.in: Regenerated.
235 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
237         * configure.tgt: Enable build on aarch64*-linux.
239 2014-09-19  Kostya Serebryany  <kcc@google.com>
241         * All source files: Merge from upstream r218156.
242         * asan/Makefile.am (asan_files): Added new files.
243         * asan/Makefile.in: Regenerate.
244         * ubsan/Makefile.am (ubsan_files): Added new files.
245         * ubsan/Makefile.in: Regenerate.
246         * tsan/Makefile.am (tsan_files): Added new files.
247         * tsan/Makefile.in: Regenerate.
248         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
249           files.
250         * sanitizer_common/Makefile.in: Regenerate.
251         * asan/libtool-version: Bump the libasan SONAME.
253 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
255         * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
256         upstream r215485, r217389, r217391 and r217400.
258 2014-06-23  Paolo Carlini  <paolo.carlini@oracle.com>
260         * sanitizer_common/sanitizer_common_interceptors.inc:
261         Cherry pick upstream r211008.
263 2014-06-11  Richard Biener  <rguenther@suse.de>
265         * asan/asan_linux.cc: Cherry pick upstream r210012.
267 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
269         * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
270         r209879.
271         * sanitizer_common/sanitizer_common.h: Likewise.
272         * asan/asan_mapping.h: Likewise.
273         * asan/asan_linux.cc: Likewise.
274         * tsan/tsan_mman.cc: Cherry pick upstream r209744.
275         * sanitizer_common/sanitizer_allocator.h: Likewise.
277 2014-05-23  Marek Polacek  <polacek@redhat.com>
279         * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
280         floating-point types.
282 2014-05-22  Kostya Serebryany  <kcc@google.com>
284         * All source files: Merge from upstream r209283.
285         * asan/Makefile.am (asan_files): Added new files.
286         * asan/Makefile.in: Regenerate.
287         * tsan/Makefile.am (tsan_files): Added new files.
288         * tsan/Makefile.in: Regenerate.
289         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
290         files.
291         * sanitizer_common/Makefile.in: Regenerate.
293 2014-05-14  Yury Gribov  <y.gribov@samsung.com>
295         PR sanitizer/61100
296         * Makefile.am (nodist_saninclude_HEADERS): Install
297         public headers.
298         * Makefile.in: Regenerate.
300 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
302         * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
303         Add ../../libbacktrace/sort.c.
304         * libbacktrace/Makefile.in: Regenerate.
305         * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
307 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
309         * configure.tgt: Unsupported for little endian PowerPC for now.
311 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
313         PR sanitizer/60055
314         * tsan/tsan_flags.cc (__tsan_default_options): Add
315         SANITIZER_INTERFACE_ATTRIBUTE.  Backport from upstream r200747.
316         * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
318         PR sanitizer/60038
319         * sanitizer_common/sanitizer_linux_libcdep.cc: Include
320         sanitizer_atomic.h and unistd.h.
321         (kThreadDescriptorSize): Made static, remove initializer and const,
322         change type to atomic_uintptr_t.
323         (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
324         query glibc version, compute kThreadDescriptorSize depending on
325         glibc version minor number.
326         (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
327         kThreadDescriptorSize directly.
329 2014-01-23  Yury Gribov  <y.gribov@samsung.com>
330             Jakub Jelinek  <jakub@redhat.com>
332         PR sanitizer/57316
333         * configure.ac: Check for missing syscalls.
334         * Makefile.am: Likewise.
335         * configure: Regenerate.
336         * Makefile.in: Regenerate.
338 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
340         * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
341         (LibbacktraceSymbolizer::Demangle): New declaration.
342         * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
343         (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
344         method if possible.
345         * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
346         "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
347         (struct CplusV3DemangleData): New type.
348         (CplusV3DemangleCallback, CplusV3Demangle): New functions.
349         (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
350         SymbolizeDataCallback): Use CplusV3Demangle.
351         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
352         -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
353         * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
354         cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
355         cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
356         cplus_demangle_init_info, cplus_demangle_mangled_name,
357         cplus_demangle_operators, cplus_demangle_print,
358         cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
359         cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
360         is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
361         Define.
362         (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
363         (memcmp, strncmp): Redefine.
364         * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
365         ../../libiberty/cp-demangle.c.
366         * libbacktrace/bridge.cc (__asan_internal_memcmp,
367         __asan_internal_strncmp): New functions.
368         * sanitizer_common/Makefile.in: Regenerated.
369         * libbacktrace/Makefile.in: Regenerated.
370         * configure: Regenerated.
371         * configure.ac: Regenerated.
372         * config.h.in: Regenerated.
374         * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
375         -isystem $(top_srcdir)/include/system.
376         * sanitizer_common/Makefile.in: Regenerated.
377         * include/system/linux/aio_abi.h: New header.
378         * include/system/linux/mroute.h: New header.
379         * include/system/linux/mroute6.h: New header.
380         * include/system/linux/perf_event.h: New header.
381         * include/system/linux/types.h: New header.
383         PR sanitizer/59136
384         * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
385         LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
386         and -I/-include flags.
387         * lsan/Makefile.am (liblsan_la_LIBADD): Add
388         libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
389         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
390         * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
391         * asan/Makefile.am (libasan_la_LIBADD): Likewise.
392         * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
393         libbacktrace.
394         * README.gcc: Document that also lsan and ubsan are
395         maintained in compiler-rt upstream.
396         * libbacktrace/Makefile.am: New file.
397         * libbacktrace/backtrace-rename.h: New file.
398         * libbacktrace/backtrace-supported.h.in: New file.
399         * libbacktrace/bridge.cc: New file.
400         * configure.ac: Add tests needed for libbacktrace build
401         within libsanitizer.
402         * sanitizer_common/Makefile.in: Regenerated.
403         * lsan/Makefile.in: Regenerated.
404         * tsan/Makefile.in: Regenerated.
405         * ubsan/Makefile.in: Regenerated.
406         * libbacktrace/Makefile.in: Generated.
407         * config.h.in: Regenerated.
408         * configure: Regenerated.
409         * Makefile.in: Regenerated.
410         * interception/Makefile.in: Regenerated.
411         * asan/Makefile.in: Regenerated.
412         * aclocal.m4: Regenerated.
414 2013-12-19  Kostya Serebryany  <kcc@google.com>
416         * sanitizer_common/sanitizer_platform_limits_posix.cc:
417         workaround for missing definition of EOWNERDEAD, backport
418         from upstream r196779.
420 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
422         * sanitizer_common/sanitizer_platform_limits_posix.h
423         (__sanitizer_shmid_ds): Use u64 on time fields for x32.
424         (__sanitizer_clock_t): Use long long for x32.
426 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
428         * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
429         <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
430         (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
432 2013-12-05  H.J. Lu  <hongjiu.lu@intel.com>
434         * configure.ac (link_sanitizer_common): Add -lm.
435         * configure: Regenerated.
437 2013-12-05  Kostya Serebryany  <kcc@google.com>
439         * All source files: Merge from upstream r196489.
440         * merge.sh: Add *.S to the list of merged files.
442 2013-12-05  Yury Gribov  <y.gribov@samsung.com>
444         PR sanitizer/59368
445         * Makefile.am (gcc_version): Added gcc_version.
446         * Makefile.in: Regenerate.
448 2013-12-05  Kostya Serebryany  <kcc@google.com>
450         * All source files: Merge from upstream r196090.
451         * tsan/Makefile.am (tsan_files): Added new files.
452         * tsan/Makefile.in: Regenerate.
453         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
454         * sanitizer_common/Makefile.in: Regenerate.
455         * lsan/Makefile.am (lsan_files): Added new files.
456         * lsan/Makefile.in: Regenerate.
458 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
459             Yury Gribov  <y.gribov@samsung.com>
461         PR sanitizer/59063
462         * libsanitizer.spec.in: Add spec file to hold link flags for
463         various sanitizer libs.
464         * configure.ac: Check whether clock_* routines come from librt.
465         * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
466         configure.ac.
467         * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
468         * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
469         * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
470         * asan/Makefile.in: Regenerate.
471         * interception/Makefile.in: Regenerate.
472         * lsan/Makefile.in: Regenerate.
473         * sanitizer_common/Makefile.in: Regenerate.
474         * tsan/Makefile.in: Regenerate.
475         * ubsan/Makefile.in: Regenerate.
476         * Makefile.in: Regenerate.
477         * configure: Regenerate.
479 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
480             Yury Gribov  <y.gribov@samsung.com>
482         PR sanitizer/59106
483         * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
484         don't need it.
485         * ubsan/Makefile.in: Regenerated.
487 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
489         PR sanitizer/59061
490         * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
491         * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
492         * configure: Regenerated.
493         * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
494         liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
495         * lsan/Makefile.in: Regenerated.
497 2013-11-22  Mike Stump  <mikestump@comcast.net>
499         * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
500         change from upstream to fix build.
502 2013-11-18  Yury Gribov  <y.gribov@samsung.com>
504         PR sanitizer/59106
505         * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
506         * interception/Makefile.am (AM_CXXFLAGS): Likewise.
507         * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
508         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
509         * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
510         * asan/Makefile.in: Regenerate.
511         * interception/Makefile.in: Regenerate.
512         * tsan/Makefile.in: Regenerate.
513         * lsan/Makefile.in: Regenerate.
514         * sanitizer_common/Makefile.in: Regenerate.
516 2013-11-15  Kostya Serebryany  <kcc@google.com>
518         PR sanitizer/58994
519         Backport from upstream revision 194573
520         * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
521         back to the original functions in the common libsanitizer
522         interceptors and the __cxa_atexit() interceptor on Darwin.
524 2013-11-13  Peter Bergner  <bergner@vnet.ibm.com>
526         PR sanitizer/59009
527         * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
528         ifdef out more source.
530 2013-11-12  Jakub Jelinek  <jakub@redhat.com>
532         * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
533         ifdef out almost the whole source.
534         * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
536 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
538         PR sanitizer/59018
539         * sanitizer_common/sanitizer_platform_limits_posix.cc
540         (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
541         defined.
543 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
545         PR sanitizer/59018
546         * sanitizer_common/sanitizer_platform_limits_linux.cc
547         (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
548         defined.
549         * sanitizer_common/sanitizer_platform_limits_posix.h
550         (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
551         defined.
552         (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
553         is defined.
554         (__sanitizer___kernel_gid_t): Likewise.
555         (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
556         is defined.
558 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
560         PR sanitizer/59018
561         * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
562         2 64-bit integers to save and restore fn and arg.  Properly load
563         newtls/child_tidptr into r8/r10.
565 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
567         PR sanitizer/59018
568         * sanitizer_common/sanitizer_linux.cc (internal_mmap,
569         internal_munmap, internal_open, internal_read, internal_write,
570         internal_stat, internal_lstat, internal_fstat, internal_readlink,
571         internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
572         BlockingMutex::Unlock, internal_ptrace, internal_getdents,
573         internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
575 2013-11-04  Kostya Serebryany  <kcc@google.com>
577         * All source files: Merge from upstream r191666.
578         * merge.sh: Added lsan.
579         * configure.ac (AC_CONFIG_FILES): Added lsan.
580         * Makefile.am (SUBDIRS): Added lsan.
581         * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
582         * asan/Makefile.am (asan_files): Added new files.
583         (libasan_la_LIBADD): Added a dependency on lsan.
584         * lsan/Makefile.am: New file.
585         * asan/Makefile.in: Regenerate.
586         * lsan/Makefile.in: Regenerate.
587         * Makefile.in: Regenerate.
588         * configure: Regenerate.
589         * sanitizer_common/Makefile.in: Regenerate.
591 2013-09-20  Alan Modra  <amodra@gmail.com>
593         * configure: Regenerate.
595 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
597         * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
598         libinterception.la for Darwin.
599         * ubsan/Makefile.in: Regenerate.
601 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
603         * Makefile.am (SUBDIRS): Add ubsan.
604         * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
605         * merge.sh: Merge ubsan.
606         * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
607         * sanitizer_common/sanitizer_printf.cc: Likewise.
608         * sanitizer_common/sanitizer_common.h: Likewise.
609         * ubsan: New directory. Import ubsan runtime from llvm.
611 2013-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
613         * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
614         Cherry pick upstream r182922.
616 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
618         * configure.tgt: Add ARM pattern.
620 2013-03-22  Jakub Jelinek  <jakub@redhat.com>
622         PR other/43620
623         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
624         * Makefile.in: Regenerated.
625         * asan/Makefile.in: Regenerated.
626         * interception/Makefile.in: Regenerated.
627         * sanitizer_common/Makefile.in: Regenerated.
628         * tsan/Makefile.in: Regenerated.
630 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
632         * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
633         * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
634         0x4fffffffffULL.
636 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
638         PR sanitizer/56393
639         * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
640         libasan_preinit.o.
641         (libasan_preinit.o): Depend on asan_preinit.o.
642         * asan/Makefile.in: Regenerated.
643         * asan/asan_preinit.cc: New file, synced from upstream.
644         * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
646 2013-02-21  Jack Howarth  <howarth@bromo.med.uc.edu>
648         * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
649         dynamic/asan_interceptors_dynamic.cc.
650         * asan/Makefile.in: Regenerated.
651         * merge.sh: Remove merge of deprecated lib/asan/dynamic.
653 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
655         * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
656         defined.  Add used attribute.
658 2013-02-21  Kostya Serebryany  <kcc@google.com>
660         * All source files: Merge from upstream r175733.
661         * sanitizer_common/Makefile.am: Added a new file.
662         * sanitizer_common/Makefile.in: Regenerated.
664 2013-02-14  H.J. Lu  <hongjiu.lu@intel.com>
666         PR bootstrap/56327
667         * interception/interception.h (OFF_T): Merged from upstream
668         r175140.
670 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
672         * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
674 2013-02-13  Kostya Serebryany  <kcc@google.com>
676         PR sanitizer/56128
677         * All source files: Merge from upstream r175049.
678         * interception/Makefile.am: added include path.
679         * interception/Makefile.in: Regenerated.
681 2013-02-11  Jack Howarth  <howarth@bromo.med.uc.edu>
683         * configure.tgt: Disable build on darwin9 and earlier.
685 2013-01-23  Kostya Serebryany  <kcc@google.com>
687         PR sanitizer/55989
688         * All source files: Merge from upstream r173241.
689         * merge.sh: Support merging .inc files.
691 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
693         * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
694         -Wno-c99-extensions.
695         * interception/Makefile.am (AM_CXXFLAGS): Likewise.
696         * asan/Makefile.am (AM_CXXFLAGS): Likewise.
697         * sanitizer_common/Makefile.in: Regenerated.
698         * interception/Makefile.in: Regenerated.
699         * asan/Makefile.in: Regenerated.
701 2013-01-10  Wei Mi  <wmi@google.com>
703         PR sanitizer/55488
704         * tsan/Makefile.am: Add tsan_rtl_amd64.S.
705         * tsan/Makefile.in: Regenerated.
706         * tsan/tsan_rtl.h: Enable HACKY_CALL.
708 2013-01-10  Kostya Serebryany  <kcc@google.com>
710         * All source files: Merge from upstream r171973.
711         * sanitizer_common/Makefile.am: Added new files.
712         * asan/Makefile.am: Likewise.
713         * tsan/Makefile.am: Likewise.
714         * sanitizer_common/Makefile.in: Regenerated.
715         * asan/Makefile.in: Likewise.
716         * tsan/Makefile.in: Likewise.
718 2013-01-07  H.J. Lu  <hongjiu.lu@intel.com>
720         * asan/Makefile.am (libasan_la_LIBADD): Replace
721         LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
722         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
723         * Makefile.in: Regenerated.
724         * configure: Likewise.
725         * asan/Makefile.in: Likewise.
726         * interception/Makefile.in: Likewise.
727         * sanitizer_common/Makefile.in: Likewise.
728         * tsan/Makefile.in: Likewise.
730 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
732         * Makefile.am (AM_MAKEFLAGS): Restored.
733         * interception/Makefile.am: Likewise.
734         * sanitizer_common/Makefile.am: Likewise.
735         * tsan/Makefile.am: Likewise.
736         * Makefile.in: Regenerated.
737         * asan/Makefile.in: Likewise.
738         * interception/Makefile.in: Likewise.
739         * sanitizer_common/Makefile.in: Likewise.
740         * tsan/Makefile.in: Likewise.
742 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
744         * Makefile.am (MAKEOVERRIDES): Restored.
745         * asan/Makefile.am: Likewise.
746         * interception/Makefile.am: Likewise.
747         * sanitizer_common/Makefile.am: Likewise.
748         * tsan/Makefile.am: Likewise.
749         * Makefile.in: Regenerated.
750         * asan/Makefile.in: Likewise.
751         * interception/Makefile.in: Likewise.
752         * sanitizer_common/Makefile.in: Likewise.
753         * tsan/Makefile.in: Likewise.
755 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
757         * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
758         * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
759         * Makefile.in: Regenerated.
760         * configure: Likewise.
761         * asan/Makefile.in: Likewise.
762         * interception/Makefile.in: Likewise.
763         * sanitizer_common/Makefile.in: Likewise.
764         * tsan/Makefile.in: Likewise.
766 2012-12-12  H.J. Lu  <hongjiu.lu@intel.com>
768         * Makefile.am (AM_MAKEFLAGS): Removed.
769         (MAKEOVERRIDES): Likewise.
770         * asan/Makefile.am: Likewise.
771         * interception/Makefile.am: Likewise.
772         * sanitizer_common/Makefile.am: Likewise.
773         * tsan/Makefile.am: Likewise.
774         * Makefile.in: Regenerated.
775         * asan/Makefile.in: Likewise.
776         * interception/Makefile.in: Likewise.
777         * sanitizer_common/Makefile.in: Likewise.
778         * tsan/Makefile.in: Likewise.
780 2012-12-11  H.J. Lu  <hongjiu.lu@intel.com>
782         PR sanitizer/55533
783         * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
784         * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
785         * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
786         (AM_MAKEFLAGS): Remove CC and CXX.
787         * interception/Makefile.am: Likewise.
788         * sanitizer_common/Makefile.am: Likewise.
789         * tsan/Makefile.am: Likewise.
790         * Makefile.in: Regenerated.
791         * aclocal.m4: Likewise.
792         * configure: Likewise.
793         * asan/Makefile.in: Likewise.
794         * interception/Makefile.in: Likewise.
795         * sanitizer_common/Makefile.in: Likewise.
796         * tsan/Makefile.in: Likewise.
798 2012-12-06  Peter Bergner  <bergner@vnet.ibm.com>
800         * configure.tgt: Enable build on powerpc*-linux.
802 2012-12-06  Jack Howarth  <howarth@bromo.med.uc.edu>
804         PR 55599/sanitizer
805         * configure.ac: Set enable_static=no on darwin.
806         * configure: Regenerated.
808 2012-12-06  Kostya Serebryany  <kcc@google.com>
810         * All files: Merge from upstream r169392.
812 2012-12-05  Kostya Serebryany  <kcc@google.com>
814         * All files: Merge from upstream r169371.
816 2012-12-04  Kostya Serebryany  <kcc@google.com>
817             Jack Howarth  <howarth@bromo.med.uc.edu>
819         PR 55521/sanitizer
820         * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
821         * Makefile.am: Don't build interception subdir when
822         USING_MAC_INTERPOSE defined.
823         * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
824         -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
825         Compile asan_interceptors_dynamic.cc but not libinterception
826         when USING_MAC_INTERPOSE defined.
827         * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
828         * configure: Regenerated.
829         * Makefile.in: Likewise.
830         * asan/Makefile.in: Likewise.
831         * interception/Makefile.in: Likewise.
832         * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
833         * asan/asan_mac.cc: Likewise.
834         * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
835         and use MISSING_BLOCKS_SUPPORT.
836         * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
837         * interception/mach_override/LICENSE.txt: Remove unused file.
838         * interception/mach_override/mach_override.c: Likewise.
839         * interception/mach_override/mach_override.h: Likewise.
840         * interception/mach_override: Remove unused directory.
842 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
844         * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
845         * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
846         * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
847         files.
848         (AM_MAKEFLAGS): Restore CC and CXX.
849         * interception/Makefile.am: Likewise.
850         * sanitizer_common/Makefile.am: Likewise.
851         * tsan/Makefile.am: Likewise.
852         * Makefile.in: Regenerated.
853         * aclocal.m4: Likewise.
854         * configure: Likewise.
855         * asan/Makefile.in: Likewise.
856         * interception/Makefile.in: Likewise.
857         * sanitizer_common/Makefile.in: Likewise.
858         * tsan/Makefile.in: Likewise.
860 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
862         * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
863         * configure.ac (ACX_NONCANONICAL_TARGET): New.
864         * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
865         files.
866         (AM_MAKEFLAGS): Remove CC and CXX.
867         * interception/Makefile.am: Likewise.
868         * sanitizer_common/Makefile.am: Likewise.
869         * tsan/Makefile.am: Likewise.
870         * Makefile.in: Regenerated.
871         * aclocal.m4: Likewise.
872         * configure: Likewise.
873         * asan/Makefile.in: Likewise.
874         * interception/Makefile.in: Likewise.
875         * sanitizer_common/Makefile.in: Likewise.
876         * tsan/Makefile.in: Likewise.
878 2012-11-27  Kostya Serebryany  <kcc@google.com>
880         * All files: Merge from upstream r168699.
882 2012-11-24  Kostya Serebryany  <kcc@google.com>
883             Jack Howarth  <howarth@bromo.med.uc.edu>
885         * interception/mach_override/mach_override.c: Migrate from llvm.
886         * interception/mach_override/mach_override.h: Likewise.
887         * interception/mach_override/LICENSE.txt: Likewise.
888         * configure.tgt: Add darwin to supported targets.
889         * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
890         * interception/Makefile.am: Compile mach_override.c when
891         USING_MACH_OVERRIDE defined.
892         * configure: Regenerated.
893         * interception/Makefile.in: Likewise.
895 2012-11-23  H.J. Lu  <hongjiu.lu@intel.com>
897         PR sanitizer/55450
898         * tsan/Makefile.am (gcc_version): New.
899         * tsan/Makefile.in: Regenerated.
901 2012-11-23  Kostya Serebryany  <kcc@google.com>
903         * merge.sh: Support tsan, support added/removed files.
904         * tsan/Makefile.am: Remove tsan_printf.cc.
905         * tsan/Makefile.in: Regenerated.
906         * other files: Merge from upstream r168514.
908 2012-11-23  Kostya Serebryany  <kcc@google.com>
910         * merge.sh: New file.
912 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
914         * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
915         * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
916         automake conditional instead of !MULTISUBDIR32.
917         * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
918         for 64-bit multilib.
919         * configure.ac: Check for void * size, source in configure.tgt,
920         define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
921         * configure: Regenerated.
922         * Makefile.in: Regenerated.
923         * tsan/Makefile.in: Regenerated.
925 2012-11-22  Wei Mi  <wmi@google.com>
927         * tsan: New directory. Import tsan runtime from llvm.
928         * configure.ac: Add 64 bits tsan build.
929         * Makefile.am: Likewise.
930         * configure: Regenerated.
931         * Makefile.in: Likewise.
933 2012-11-21  Kostya Serebryany  <kcc@google.com>
935         * README.gcc: Extend the README.gcc with mode details.
937 2012-11-20  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
939         * sanitizer_common/sanitizer_linux.cc
940         (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
941         (internal_mmap): Use it.
942         (internal_filesize): Likewise.
944 2012-11-16  Tom Tromey  <tromey@redhat.com>
946         * configure.ac: Invoke AM_MAINTAINER_MODE.
947         * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
948         interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
950 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
952         PR other/55333
953         * include/sanitizer/common_interface_defs.h (uhwptr): New type
954         for hardware pointer.
955         * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
956         Replace uptr with uhwptr for stack unwind.
958 2012-11-16  Dodji Seketeli  <dodji@redhat.com>
960         * configure.tgt: Enable build on sparc linux.
962 2012-11-15  H.J. Lu  <hongjiu.lu@intel.com>
964         * configure.ac: Properly set MULTISUBDIR.
965         * asan/Makefile.am (gcc_version): New.
966         * interception/Makefile.am (gcc_version): Likewise.
967         * sanitizer_common/Makefile.am (gcc_version): Likewise.
968         * configure: Regenerated.
969         * asan/Makefile.in: Likewise.
970         * interception/Makefile.in: Likewise.
971         * sanitizer_common/Makefile.in: Likewise.
973 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
975         PR other/55291
976         * configure.ac (--enable-version-specific-runtime-libs): New option.
977         (AC_CANONICAL_SYSTEM): New.
978         (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
979         (toolexecdir): Support multilib.
980         (toolexeclibdir): Likewise.
981         (multilib_arg): New.
982         * Makefile.in: Regenerated.
983         * aclocal.m4: Likewise.
984         * configure: Likewise.
985         * asan/Makefile.in: Likewise.
986         * interception/Makefile.in: Likewise.
987         * sanitizer_common/Makefile.in: Likewise.
989 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
991         PR other/55292
992         Backport from upstream revision 167883
993         * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
994         __x86_64__ instead of __WORDSIZE.
995         (internal_filesize): Likwise.
997 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
999         * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1000         * Makefile.in: Regenerated.
1001         * configure: Likewise.
1003 2012-11-13  H.J. Lu  <hongjiu.lu@intel.com>
1005         PR other/55304
1006         * acinclude.m4: New file.
1007         * Makefile.am (ACLOCAL_AMFLAGS): New.
1008         * configure.ac (AC_PREREQ): Set to 2.64.
1009         (AC_CONFIG_AUX_DIR): Set to "..".
1010         * Makefile.in: Regenerated.
1011         * aclocal.m4: Likewise.
1012         * configure: Likewise.
1013         * asan/Makefile.in: Likewise.
1014         * interception/Makefile.in: Likewise.
1015         * sanitizer_common/Makefile.in: Likewise.
1017         * config.guess: Removed.
1018         * config.sub: Likewise.
1019         * depcomp: Likewise.
1020         * install-sh: Likewise.
1021         * ltmain.sh: Likewise.
1022         * missing: Likewise.
1024 2012-11-13  Richard Henderson  <rth@redhat.com>
1026         * configure.tgt: New file.
1028 2012-11-12  David S. Miller  <davem@davemloft.net>
1030         * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1032 2012-10-29  Wei Mi  <wmi@google.com>
1034         Initial checkin: migrate asan runtime from llvm.