]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/ChangeLog
Reapply missing patch for libsanitizer.
[thirdparty/gcc.git] / libsanitizer / ChangeLog
CommitLineData
71e895b1
ML
12019-08-15 Martin Liska <mliska@suse.cz>
2
3 * tsan/tsan_rtl_ppc64.S: Reapply.
4
8bc1fac7
IS
52019-08-15 Iain Sandoe <iain@sandoe.co.uk>
6
7 PR bootstrap/91455
8 * Makefile.in: Regenerated.
9 * aclocal.m4: Likewise.
10 * asan/Makefile.in: Likewise.
11 * configure: Likewise.
12 * interception/Makefile.in: Likewise.
13 * libbacktrace/Makefile.in: Likewise.
14 * lsan/Makefile.in: Likewise.
15 * sanitizer_common/Makefile.am: Include top_srcdir unconditionally.
16 * sanitizer_common/Makefile.in: Regenerated.
17 * tsan/Makefile.in: Likewise.
18 * ubsan/Makefile.in: Likewise.
19
e2723123
ML
202019-08-14 Martin Liska <mliska@suse.cz>
21
22 * LOCAL_PATCHES: Refresh based on what was committed.
23
47f0255f
ML
242019-08-14 Martin Liska <mliska@suse.cz>
25
26 * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply
27 patch from trunk.
28 (CheckODRViolationViaPoisoning): Likewise.
29 (RegisterGlobal): Likewise.
30 * asan/asan_mapping.h: Likewise.
31 * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise.
32 * sanitizer_common/sanitizer_mac.cpp (defined): Likewise.
33 * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise.
34 * sanitizer_common/sanitizer_platform_limits_posix.h (defined): Likewise.
35 * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise.
36 * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
37 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
38 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
39 (struct CFICheckFailData): Likewise.
40 (RECOVERABLE): Likewise.
41 * ubsan/ubsan_platform.h: Likewise.
42
b667dd70
ML
432019-08-14 Martin Liska <mliska@suse.cz>
44
45 PR sanitizer/89832
46 PR sanitizer/91325
47 * All source files: Merge from upstream 368656.
48
7cfb7260
RO
492019-06-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
50
51 * sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick
52 compiler-rt revision 363778.
53
9553f0d2
IS
542019-06-18 Iain Sandoe <iain@sandoe.co.uk>
55
56 PR libsanitizer/87880
57 * asan/asan_interceptors.h:
58 (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New.
59 * asan/Makefile.am (DEFS): Add
60 ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0.
61 * asan/Makefile.in: Regenerated.
62 * asan/libtool-version: Bump version.
63
7f63a854
SB
642019-05-27 Segher Boessenkool <segher@kernel.crashing.org>
65
66 PR target/90639
67 * tsan/tsan_rtl_ppc64.S: Add ".machine altivec".
68
ccd1242e
RO
692019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
70
71 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
72 handling.
73 * configure: Regenerate.
74
b8e214c6
ML
752019-04-08 Martin Liska <mliska@suse.cz>
76
77 * LOCAL_PATCHES: Add revision.
78
17cf9090
ML
792019-04-08 Martin Liska <mliska@suse.cz>
80
81 PR sanitizer/89941
82 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined):
83 Reapply patch from r259664.
84 * sanitizer_common/sanitizer_platform_limits_posix.h (defined):
85 Likewise.
86
7a26e273
EB
872019-03-13 Eric Botcazou <ebotcazou@adacore.com>
88
89 PR sanitizer/80953
90 Merge from LLVM revision 355980
91 * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC.
92 (kAllocatorSize): Likewise.
93 (DefaultSizeClassMap): Likewise.
94 * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define.
95 (SHADOW_OFFSET): Define for SPARC.
96 Include asan_mapping_sparc64.h for SPARC 64-bit.
97 * asan/asan_mapping_sparc64.h: New file.
98
a196c82c
EB
992019-03-13 Eric Botcazou <ebotcazou@adacore.com>
100
101 PR sanitizer/80953
102 Merge from LLVM revision 355979
103 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
104 copy Global objects for SPARC with GCC.
105
36b50aeb
EB
1062019-03-13 Eric Botcazou <ebotcazou@adacore.com>
107
108 PR sanitizer/80953
109 Merge from LLVM revision 355978
110 * sanitizer_common/sanitizer_allocator_primary32.h
111 (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if
112 SANITIZER_SIGN_EXTENDED_ADDRESSES is set.
113 (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES.
114 (ComputeRegionId): Likewise.
115 * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return
116 appropriate value for SPARC 64-bit.
117 * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE):
118 Define for SPARC.
119 (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit.
120
017abbe3
EB
1212019-03-13 Eric Botcazou <ebotcazou@adacore.com>
122
123 PR sanitizer/80953
124 Merge from LLVM revision 355965
125 * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for
126 SPARC/Linux.
127 (GetPcSpBp): Likewise.
128 * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc):
129 Adjust for SPARC.
130 * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND):
131 Define to 1 for SPARC.
132 * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite.
133 * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack):
134 Adjust the PC address for SPARC with GCC.
135
c24847a5
ML
1362019-03-06 Martin Liska <mliska@suse.cz>
137
138 PR sanitizer/88684
139 * sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
140 (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
141 * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
142 Likewise.
143
4dfc5b35
L
1442019-02-20 H.J. Lu <hongjiu.lu@intel.com>
145
146 PR sanitizer/89409
147 * sanitizer_common/sanitizer_linux.cc (internal_readlink):
148 Cherry-pick compiler-rt r354451.
149
a795cd3d
JG
1502019-01-23 Jonny Grant <jg@jguk.org>
151
152 PR sanitizer/89010
153 * libsanitizer/README.gcc: Update to current https URLs.
154
96051ee5
ML
1552018-12-27 Martin Liska <mliska@suse.cz>
156
a795cd3d 157 PR sanitizer/86229
96051ee5
ML
158 * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
159 pick rL350085.
160 * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
161
15e109b3
ML
1622018-11-09 Martin Liska <mliska@suse.cz>
163
164 * LOCAL_PATCHES: Include one local patch.
165
d1e2e13c
ML
1662018-11-09 Martin Liska <mliska@suse.cz>
167
168 PR sanitizer/87892
169 * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return
170 1 when CPU_COUNT macro is not defined.
171
39abbb86
BS
1722018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com>
173
174 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
175 Disable ASLR for powerpc64 when using sanitizers.
176
aaabfd71
RO
1772018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
178
179 PR sanitizer/80953
180 * configure.tgt (sparc*-*-solaris2.11*): Enable.
181 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
182
0b5ccc80
RO
1832018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
184
185 PR sanitizer/80953
186 * sanitizer_common/sanitizer_internal_defs.h,
187 sanitizer_common/sanitizer_platform_limits_solaris.h,
188 sanitizer_common/sanitizer_procmaps_solaris.cc,
189 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
190 revision 346153.
191 * sanitizer_common/sanitizer_stacktrace.h,
192 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
193 compiler-rt revision 346155.
194
b40a67df
SB
1952018-11-05 Segher Boessenkool <segher@kernel.crashing.org>
196
197 * LOCAL_PATCHES: Add r258525.
198 * sanitizer_common/sanitizer_stacktrace.cc
199 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
200 for PowerPC SYSV ABI.
201
6388cb29
ML
2022018-11-05 Martin Liska <mliska@suse.cz>
203
204 PR sanitizer/87860
205 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream
206 r346129.
207
22e05272
JM
2082018-10-31 Joseph Myers <joseph@codesourcery.com>
209
210 PR bootstrap/82856
211 * Makefile.am: Include multilib.am.
212 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
213 * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
214 interception/Makefile.in, libbacktrace/Makefile.in,
215 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
216 ubsan/Makefile.in: Regenerate.
217
088371bf
ML
2182018-10-31 Martin Liska <mliska@suse.cz>
219
220 * LOCAL_PATCHES: Update to installed revisions.
221
c244886c
ML
2222018-10-31 Martin Liska <mliska@suse.cz>
223
224 * ubsan/ubsan_platform.h: Add ifndef as we define it with
225 -DCAN_SANITIZE_UB CFLAGS.
226
f607b87c
ML
2272018-10-31 Martin Liska <mliska@suse.cz>
228
229 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
230
e63c9677
ML
2312018-10-31 Martin Liska <mliska@suse.cz>
232
233 * LOCAL_PATCHES: Update patch list.
234 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
235 patches from GCC's trunk.
236 (CheckODRViolationViaPoisoning): Likewise.
237 (RegisterGlobal): Likewise.
238 * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
239 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
240 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
241 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
242 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
243 (struct CFICheckFailData): Likewise.
244 (RECOVERABLE): Likewise.
245
8468f944
ML
2462018-10-31 Martin Liska <mliska@suse.cz>
247
248 * config.h.in: Regenerate.
249 * configure: Likewise.
250 * sanitizer_common/Makefile.am: Include new files, remove old
251 files.
252 * sanitizer_common/Makefile.in: Regenerate.
253 * ubsan/Makefile.am: Include new files, remove old
254 files.
255 * ubsan/Makefile.in: Likewise.
256 * asan/Makefile.am: Include new files.
257 * asan/Makefile.in: Regenerate.
258
eac97531
ML
2592018-10-31 Martin Liska <mliska@suse.cz>
260
261 * All source files: Merge from upstream 345033.
262
95fba530
ML
2632018-10-31 Martin Liska <mliska@suse.cz>
264
265 * HOWTO_MERGE: Enhance documentation.
266 * merge.sh: Add support for git as well.
267
b4f1f01d
ML
2682018-08-02 Martin Liska <mliska@suse.cz>
269
92a285c1 270 PR sanitizer/86022
b4f1f01d 271 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
92a285c1 272 Cherry-pick compiler-rt revision 338606.
b4f1f01d 273
c191b1ab
MP
2742018-08-01 Marek Polacek <polacek@redhat.com>
275
276 PR sanitizer/86759
277 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
278 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
279 319180.
280
c83b4b82
L
2812018-07-25 H.J. Lu <hongjiu.lu@intel.com>
282
283 PR target/86560
284 * asan/asan_interceptors.cc (swapcontext) Cherry-pick
285 compiler-rt revision 337603.
286 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
287 Likewise.
288
bdfc619e
JJ
2892018-07-05 Jakub Jelinek <jakub@redhat.com>
290
291 Revert
292 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
293
294 PR sanitizer/84250
295 * Makefile.am: Reorder libs.
296 * Makefile.in: Regenerate.
297 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
298 libsanitizer_ubsan.la.
299 * asan/Makefile.in: Regenerate.
300 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
301 * ubsan/Makefile.in: Regenerate.
302
ca8dd9f2
MO
3032018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
304
305 PR sanitizer/84250
306 * Makefile.am: Reorder libs.
307 * Makefile.in: Regenerate.
308 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
309 libsanitizer_ubsan.la.
310 * asan/Makefile.in: Regenerate.
311 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
312 * ubsan/Makefile.in: Regenerate.
313
3b07c0e5
DK
3142018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
315
92a285c1
ML
316 PR sanitizer/86090
317 * configure.ac: Check for lstat and readlink.
318 * configure, config.h.in: Rebuild.
3b07c0e5 319
5b87c1fe
MK
3202018-05-31 Matthias Klose <doko@ubuntu.com>
321
322 PR sanitizer/86012
323 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
324 SIZEOF_STRUCT_USTAT for 32bit sparc.
325
71b55d45
L
3262018-05-24 H.J. Lu <hongjiu.lu@intel.com>
327
328 PR sanitizer/85835
329 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
330 include <sys/ustat.h> for Linux.
331 (SIZEOF_STRUCT_USTAT): New.
332 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
333
bc40f166
HPN
3342018-04-26 Hans-Peter Nilsson <hp@axis.com>
335
752361c9
HPN
336 * configure.tgt <mips*-*-linux*>: Enable build, excluding
337 mips*64*-*-linux*.
338
9f943b24
HPN
339 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
340 take the shortcut to #include <sys/stat.h> for MIPS instead of
341 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
342 or wrong to get the kernel struct stat.
343 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
344 Correct the value for 32-bit non-android struct_kernel_stat_sz.
345
bc40f166
HPN
346 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
347 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
348
7b47ecf2
L
3492018-04-24 H.J. Lu <hongjiu.lu@intel.com>
350
351 * configure: Regenerated.
352
a0e1df88
JJ
3532018-04-19 Jakub Jelinek <jakub@redhat.com>
354
355 * configure: Regenerated.
356
001ddaa8
DM
3572018-04-18 David Malcolm <dmalcolm@redhat.com>
358
359 PR jit/85384
360 * configure: Regenerate.
361
19ddb884
BS
3622018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
363
364 PR sanitizer/85389
365 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
366 from 0xa0000000000ULL to ~(uptr)0.
367
359ea407
JJ
3682018-03-19 Jakub Jelinek <jakub@redhat.com>
369
370 PR sanitizer/84761
371 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
372 Define if not defined.
373 (DL_INTERNAL_FUNCTION): Don't define.
374 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
375 determine at runtime whether to use regparm(3), stdcall calling
376 convention for older glibcs or normal calling convention for
377 newer glibcs for call to _dl_get_tls_static_info.
378
1422855a
SB
3792018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
380
381 * sanitizer_common/sanitizer_stacktrace.cc
382 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
383 for PowerPC SYSV ABI.
384
14e335ed
IT
3852018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
386
387 PR target/84148
388 * configure: Regenerate.
389
4c4f3c3f
ML
3902018-02-05 Martin Liska <mliska@suse.cz>
391
392 * asan/asan_flags.inc: Cherry-pick upstream r323995.
393 * asan/asan_report.cc (CheckForInvalidPointerPair):
394 Cherry-pick upstream r323995.
395
2d509539
RO
3962018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
397
398 PR sanitizer/82825
399 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
9dfc6e83 400 r324284.
2d509539 401
1f7273e5
RO
4022018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
403
404 PR sanitizer/82824
405 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
406
05abad4c
ML
4072017-12-05 Martin Liska <mliska@suse.cz>
408 Jakub Jelinek <jakub@redhat.com>
409
410 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
411 * asan/asan_descriptions.h: Likewise.
412 * asan/asan_report.cc: Likewise.
413 * asan/asan_thread.cc: Likewise.
414 * asan/asan_thread.h: Likewise.
415
9069eb28
IT
4162017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
417
418 * acinclude.m4: Add enable.m4 and cet.m4.
419 * Makefile.in: Regenerate.
420 * asan/Makefile.am: Update AM_CXXFLAGS.
421 * asan/Makefile.in: Regenerate.
422 * configure: Likewise.
423 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
424 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
425 * interception/Makefile.am: Update AM_CXXFLAGS.
426 * interception/Makefile.in: Regenerate.
427 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
428 * libbacktrace/Makefile.in: Regenerate.
429 * lsan/Makefile.am: Update AM_CXXFLAGS.
430 * lsan/Makefile.in: Regenerate.
431 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
432 AM_CCASFLAGS.
433 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
434 Add _CET_ENDBR macro.
435 * sanitizer_common/Makefile.in: Regenerate.
436 * tsan/Makefile.am: Update AM_CXXFLAGS.
437 * tsan/Makefile.in: Regenerate.
438 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
439 * ubsan/Makefile.am: Update AM_CXXFLAGS.
440 * ubsan/Makefile.in: Regenerate.
441
5925290f
JJ
4422017-11-08 Jakub Jelinek <jakub@redhat.com>
443
444 PR bootstrap/82670
445 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
446 and ubsan_signals_standalone.cc.
447 * ubsan/Makefile.in: Regenerated.
448
735e62b9
TV
4492017-11-05 Tom de Vries <tom@codesourcery.com>
450
451 PR other/82784
452 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
453 "do {} while (0)".
454 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
455
9a45ffbd
JJ
4562017-10-20 Jakub Jelinek <jakub@redhat.com>
457
458 PR sanitizer/82595
459 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
460 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
461 liblsan_preinit.o.
462 (lsan_files): Remove lsan_preinit.cc.
463 (liblsan_preinit.o): New rule.
464 * lsan/Makefile.in: Regenerated.
465
5d3805fc
JJ
4662017-10-19 Jakub Jelinek <jakub@redhat.com>
467
468 * All source files: Merge from upstream 315899.
92a285c1 469 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
5d3805fc 470 include/sanitizer/tsan_interface.h.
92a285c1 471 * asan/libtool-version: Bump the libasan SONAME.
5d3805fc
JJ
472 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
473 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
92a285c1 474 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
5d3805fc
JJ
475 sancov_flags.cc, sanitizer_allocator_checks.cc,
476 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
477 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
478 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
479 and sanitizer_coverage_mapping_libcdep.cc.
92a285c1 480 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
5d3805fc
JJ
481 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
482 (ubsan_files): Add ubsan_init_standalone.cc and
483 ubsan_signals_standalone.cc.
484 * ubsan/libtool-version: Bump the libubsan SONAME.
92a285c1
ML
485 * asan/Makefile.in: Regenerate.
486 * lsan/Makefile.in: Regenerate.
487 * sanitizer_common/Makefile.in: Regenerate.
488 * tsan/Makefile.in: Regenerate.
5d3805fc
JJ
489 * ubsan/Makefile.in: Regenerate.
490
bf4df9e6
L
4912017-10-05 H.J. Lu <hongjiu.lu@intel.com>
492
493 PR sanitizer/82379
494 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
495 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
496
d1453bec
JJ
4972017-10-02 Jakub Jelinek <jakub@redhat.com>
498
499 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
500 Define.
501
a5320f3c
JJ
5022017-08-07 Jakub Jelinek <jakub@redhat.com>
503
504 * include/system/sys/ptrace.h: New file.
505
c9b39a49
JJ
5062017-07-28 Jakub Jelinek <jakub@redhat.com>
507
508 PR sanitizer/80998
509 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
510 * ubsan/ubsan_checks.inc: Likewise.
511 * ubsan/ubsan_handlers.h: Likewise.
512
144e36a7
JJ
5132017-07-14 Jakub Jelinek <jakub@redhat.com>
514
515 PR sanitizer/81066
516 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
517 * sanitizer_common/sanitizer_linux.cc: Likewise.
518 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
519 * tsan/tsan_platform_linux.cc: Likewise.
520
d9f8c5af
ML
5212017-04-06 Martin Liska <mliska@suse.cz>
522
523 PR sanitizer/80166
524 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
525 Cherry-pick upstream r299036.
526
fd6cba40
JJ
5272017-03-22 Jakub Jelinek <jakub@redhat.com>
528
529 PR sanitizer/78158
530 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
531
9b9ad360
AT
5322017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
533
534 PR sanitizer/79562
535 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
536 upstream r294806.
537
1509524b
JJ
5382017-02-11 Jakub Jelinek <jakub@redhat.com>
539
540 PR sanitizer/79341
541 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
542 s390-linux 31-bit.
543 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
544 r294793.
545 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
546 upstream r294790.
547 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
548 r294799.
549
778e0ac3
MO
5502017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
551
552 PR sanitizer/78663
553 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
554 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
555
4997a71d
JJ
5562017-01-31 Jakub Jelinek <jakub@redhat.com>
557
558 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
559
86b2a558
JJ
5602017-01-24 Jakub Jelinek <jakub@redhat.com>
561
c831801d
JJ
562 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
563
86b2a558
JJ
564 PR sanitizer/79168
565 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
566 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
567 text.
568 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
569 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
570 * tsan/tsan_ppc_regs.h: Likewise.
571 * tsan/tsan_rtl_aarch64.S: Likewise.
572 * tsan/tsan_rtl_mips64.S: Likewise.
573 * tsan/tsan_rtl_ppc64.S: Likewise.
574
73aa401e
JJ
5752017-01-21 Jakub Jelinek <jakub@redhat.com>
576
577 PR other/79046
578 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
579 instead of cat to get version from BASE-VER file.
580 * asan/Makefile.am (gcc_version): Likewise.
581 * ubsan/Makefile.am (gcc_version): Likewise.
582 * sanitizer_common/Makefile.am (gcc_version): Likewise.
583 * lsan/Makefile.am (gcc_version): Likewise.
584 * tsan/Makefile.am (gcc_version): Likewise.
585 * interception/Makefile.in: Regenerated.
586 * asan/Makefile.in: Regenerated.
587 * ubsan/Makefile.in: Regenerated.
588 * sanitizer_common/Makefile.in: Regenerated.
589 * lsan/Makefile.in: Regenerated.
590 * tsan/Makefile.in: Regenerated.
591
3c36aa6b
JJ
5922017-01-17 Jakub Jelinek <jakub@redhat.com>
593
594 PR other/79046
595 * configure.ac: Add GCC_BASE_VER.
596 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
597 get version from BASE-VER file.
598 * libbacktrace/Makefile.in: Regenerated.
599 * interception/Makefile.in: Regenerated.
600 * asan/Makefile.in: Regenerated.
601 * ubsan/Makefile.in: Regenerated.
602 * configure: Regenerated.
603 * sanitizer_common/Makefile.in: Regenerated.
604 * lsan/Makefile.in: Regenerated.
605 * Makefile.in: Regenerated.
606 * tsan/Makefile.in: Regenerated.
607
942136a4
JC
6082017-01-10 James Clarke <jrtc27@jrtc27.com>
609
610 PR sanitizer/78992
611 * sanitizer_common/sanitizer_platform_limits_posix.h
612 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
613
11bbe995
MO
6142016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
615
616 * LOCAL_PATCHES: Add revision.
617
d61ed91e
MO
6182016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
619
620 PR sanitizer/78532
621 * sanitizer_common/sanitizer_platform_limits_posix.h
622 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
623 versions.
624
f4214e23
MT
6252016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
626
627 * LOCAL_PATCHES: Remove r242480.
628
00212843
RO
6292016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
630
631 * LOCAL_PATCHES: Add revision.
632
97448adf
RO
6332016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
634
635 PR sanitizer/78267
636 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
637 compiler supports blocks extension.
638
61a58d07
MT
6392016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
640
641 * LOCAL_PATCHES: Add revision.
642
8c32ae0e
MT
6432016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
644
645 PR sanitizer/78294
646 * tsan/tsan_rtl.cc: Add missing attribute.
647
949cc52d
MO
6482016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
649
650 * LOCAL_PATCHES: New file.
651
511c8687
MO
6522016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
653
654 PR sanitizer/78307
655 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
656 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
657 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
658 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
659 function.
660 (__ubsan_handle_cfi_bad_type_abort): Likewise.
661 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
662 (__ubsan_handle_cfi_bad_type): Export function.
663 (__ubsan_handle_cfi_bad_type_abort): Likewise.
664 * HOWTO_MERGE: Update documentation.
665
84c1b9d3
MK
6662016-11-15 Matthias Klose <doko@ubuntu.com>
667
668 * configure: Regenerate.
669
8f16b6ca
MO
6702016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
671
672 * asan/asan_globals.cc (RegisterGlobal): Do not call
673 CheckODRViolationViaPoisoning.
674 (CheckODRViolationViaPoisoning): Remove.
675
789306de
MO
6762016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
677
678 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
679 compiled code with GCC when extracting the caller PC for ARM if no
680 valid frame pointer is available.
681
fe7913f6
MO
6822016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
683
684 PR sanitizer/63958
685 Reapply:
686 2014-10-14 David S. Miller <davem@davemloft.net>
687
688 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
689 Define at __kernel_time_t, as needed for sparc.
690 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
691 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
692 (__sanitizer): Define struct___old_kernel_stat_sz,
693 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
694 (__sanitizer_ipc_perm): Adjust for sparc targets.
695 (__sanitizer_shmid_ds): Likewsie.
696 (__sanitizer_sigaction): Likewise.
697 (IOC_SIZE): Likewsie.
698
10189819
MO
6992016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
700
701 * All source files: Merge from upstream 285547.
702 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
703 variable.
704 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
705 * asan/Makefile.am (asan_files): Add new files.
706 * asan/Makefile.in: Regenerate.
707 * ubsan/Makefile.in: Likewise.
708 * lsan/Makefile.in: Likewise.
709 * tsan/Makefile.am (tsan_files): Add new files.
710 * tsan/Makefile.in: Regenerate.
711 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
712 (EXTRA_libsanitizer_common_la_SOURCES): Define.
713 (libsanitizer_common_la_LIBADD): Likewise.
714 (libsanitizer_common_la_DEPENDENCIES): Likewise.
715 * sanitizer_common/Makefile.in: Regenerate.
716 * interception/Makefile.in: Likewise.
717 * libbacktace/Makefile.in: Likewise.
718 * Makefile.in: Likewise.
719 * configure: Likewise.
720 * merge.sh: Handle builtins/assembly.h merging.
721 * builtins/assembly.h: New file.
722 * asan/libtool-version: Bump the libasan SONAME.
723
aef6a97c
JJ
7242016-09-21 Jakub Jelinek <jakub@redhat.com>
725
726 PR sanitizer/77567
727 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
728
0ce48391
JJ
7292016-09-05 Jakub Jelinek <jakub@redhat.com>
730
731 PR sanitizer/77396
732 * asan/asan_globals.cc: Cherry-pick upstream r280657.
733
e23a7a99
JJ
7342016-08-12 Jakub Jelinek <jakub@redhat.com>
735
736 PR sanitizer/71042
737 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
738 * tsan/tsan_rtl_aarch64.S: Likewise.
739
aa00995c
AM
7402016-07-23 Alan Modra <amodra@gmail.com>
741
742 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
743 * configure.ac: Don't substitute OBSTACK_DEFS.
744 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
745 * tsan/Makefile.am: Likewise.
746 * configure: Regenerate.
747 * Makefile.in: Regenerate.
748 * asan/Makefile.in: Regenerate.
749 * interception/Makefile.in: Regenerate.
750 * libbacktrace/Makefile.in: Regenerate.
751 * lsan/Makefile.in: Regenerate.
752 * sanitizer_common/Makefile.in: Regenerate.
753 * tsan/Makefile.in: Regenerate.
754 * ubsan/Makefile.in: Regenerate.
755
69af4eec
JJ
7562016-05-17 Jakub Jelinek <jakub@redhat.com>
757
758 PR sanitizer/71160
759 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
760 and r269633.
761
fefddbef
MO
7622016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
763
764 PR sanitizer/70624
765 * asan/asan_mac.cc: Cherry pick upstream r266868.
766
e4729419
JJ
7672016-01-19 Jakub Jelinek <jakub@redhat.com>
768
769 PR sanitizer/68824
770 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
771 InitializeInterceptors): Cherry pick upstream r258119.
772
bf93d543
AT
7732016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
774
775 * configure.ac: Replace the hard-coded -ldl requirement for
776 link_sanitizer_common with a configure time check for -ldl.
777 * configure: Regenerate.
778
9211bbb2
MO
7792015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
780
781 * include/system/linux/asm/ptrace.h: Move to ...
782 * include/system/asm/ptrace.h: ... this.
783
664dd3cf
MO
7842015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
785
786 * include/system/linux/asm/ptrace.h: New header.
787
55aea9f5
MO
7882015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
789
790 * All source files: Merge from upstream r253555.
791 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
792 dependences for TSan for aarch64-*-linux* targets.
793 * tsan/Makefile.am: Add new source files.
794 * configure: Regenerate.
795 * tsan/Makefile.in: Likewise.
796
62c0f0a6
AM
7972015-11-09 Alan Modra <amodra@gmail.com>
798
799 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
800 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
801 interceptors.
802 * configure.ac: Substitute OBSTACK_DEFS.
803 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
804 * tsan/Makefile.am: Likewise.
805 * configure: Regenerate.
806 * Makefile.in: Regenerate.
807 * asan/Makefile.in: Regenerate.
808 * interception/Makefile.in: Regenerate.
809 * libbacktrace/Makefile.in: Regenerate.
810 * lsan/Makefile.in: Regenerate.
811 * sanitizer_common/Makefile.in: Regenerate.
812 * tsan/Makefile.in: Regenerate.
813 * ubsan/Makefile.in: Regenerate.
814
692b1131
MO
8152015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
816
817 PR bootstrap/68041
818 * configure.ac (link_sanitizer_common): Link against librt only if it
819 contains shm_open, required by sanitizers.
820 (CXX_ABI_NEEDED): Remove variable.
821 * configure: Regenerate.
822 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
823 * ubsan/Makefile.in: Regenerate.
824
7047bc9c
MO
8252015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
826
827 * HOWTO_MERGE: New file.
828
21d61063
MO
8292015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
830
831 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
832 compiled code with GCC when extracting the caller PC for ARM if no
833 valid frame pointer is available.
834
15ebe1fe
MO
8352015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
836
837 PR bootstrap/63888
838 Reapply:
839 2015-02-20 Jakub Jelinek <jakub@redhat.com>
840
841 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
842 support until it is rewritten upstream.
843
844 * c-c++-common/asan/pr63888.c: New test.
845
0d57d3e0
MO
8462015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
847
848 PR sanitizer/63958
849 Reapply:
850 2014-10-14 David S. Miller <davem@davemloft.net>
851
852 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
853 Define at __kernel_time_t, as needed for sparc.
854 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
855 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
856 (__sanitizer): Define struct___old_kernel_stat_sz,
857 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
858 (__sanitizer_ipc_perm): Adjust for sparc targets.
859 (__sanitizer_shmid_ds): Likewsie.
860 (__sanitizer_sigaction): Likewise.
861 (IOC_SIZE): Likewsie.
862
696d846a
MO
8632015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
864
865 * All source files: Merge from upstream r250806.
866 * configure.ac (link_sanitizer_common): Add -lrt flag.
867 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
868 Set USE_CXX_ABI_FLAG=true for darwin.
869 * asan/Makefile.am (asan_files): Add new files.
870 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
871 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
872 * asan/Makefile.in: Regenerate.
873 * ubsan/Makefile.am (ubsan_files): Add new files.
874 (DEFS): Add DCAN_SANITIZE_UB=1.
875 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
876 * ubsan/Makefile.in: Regenerate.
877 * tsan/Makefile.am (tsan_files): Add new files.
878 (DEFS): Add DCAN_SANITIZE_UB=0.
879 * tsan/Makefile.in: Regenerate.
880 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
881 * sanitizer_common/Makefile.in: Regenerate.
882 * asan/libtool-version: Bump the libasan SONAME.
883
1842a04c
MT
8842015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
885
886 PR sanitizer/67258
887 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
888
97d8f801
MT
8892015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
890
891 PR sanitizer/63927
892 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
893 for PowerPC.
894
3d61d875
BS
8952015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
896
897 PR sanitizer/63927
898 * sanitizer_common/sanitizer_stacktrace.cc
899 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
900 find the link register at an offset of 16 from the base of the
901 caller's stack frame.
902
f3915b42
MH
9032015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
904
905 * Makefile.in: Regenerated with automake-1.11.6.
906 * aclocal.m4: Likewise.
907 * asan/Makefile.in: Likewise.
908 * configure: Likewise.
909 * interception/Makefile.in: Likewise.
910 * libbacktrace/Makefile.in: Likewise.
911 * lsan/Makefile.in: Likewise.
912 * sanitizer_common/Makefile.in: Likewise.
913 * tsan/Makefile.in: Likewise.
914 * ubsan/Makefile.in: Likewise.
915
d041a6fc
YG
9162015-04-13 Yury Gribov <y.gribov@samsung.com>
917
918 PR sanitizer/64839
919 * sanitizer_common/sanitizer_platform.h: Cherry pick
920 upstream r234470.
921 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
922 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
923 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
924 * Makefile.in: Regenerate.
925 * asan/Makefile.in: Regenerate.
926 * config.h.in: Regenerate.
927 * configure: Regenerate.
928 * interception/Makefile.in: Regenerate.
929 * libbacktrace/Makefile.in: Regenerate.
930 * lsan/Makefile.in: Regenerate.
931 * sanitizer_common/Makefile.in: Regenerate.
932 * tsan/Makefile.in: Regenerate.
933 * ubsan/Makefile.in: Regenerate.
934
935
d886f7cc
CL
9362015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
937
938 PR sanitizer/59009
939 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
940 upstream r230324.
941 * sanitizer_common/sanitizer_platform.h: Likewise.
942 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
943
563fb64a
BE
9442015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
945
946 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
947 upstream 224508 and 224755.
948
ee876e59
JJ
9492015-03-09 Jakub Jelinek <jakub@redhat.com>
950
951 PR sanitizer/63958
952 Reapply:
953 2014-10-14 David S. Miller <davem@davemloft.net>
954
955 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
956 Define at __kernel_time_t, as needed for sparc.
957 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
958 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
959 (__sanitizer): Define struct___old_kernel_stat_sz,
960 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
961 (__sanitizer_ipc_perm): Adjust for sparc targets.
962 (__sanitizer_shmid_ds): Likewsie.
963 (__sanitizer_sigaction): Likewise.
964 (IOC_SIZE): Likewsie.
965
6ad0611b
PB
9662015-02-27 Peter Bergner <bergner@vnet.ibm.com>
967
968 * configure.tgt: Enable build on powerpc*le-*-linux.
969
09901e8a 9702015-02-23 Jakub Jelinek <jakub@redhat.com>
86ee2038
JJ
971
972 PR bootstrap/63888
973 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
974 support until it is rewritten upstream.
975
94213c10
MK
9762015-01-26 Matthias Klose <doko@ubuntu.com>
977
978 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
979 * configure: Regenerate.
980
8790f572
VK
9812015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
982
94213c10 983 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
8790f572 984 * configure: Regenerate.
94213c10 985 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
8790f572 986
b0edd457
VK
9872015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
988
989 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
990 * configure: Regenerate.
991 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
992 (libtsan_la_DEPENDENCIES): Likewise.
993 * Makefile.in: Regenerate.
994 * asan/Makefile.in: Regenerate.
995 * interception/Makefile.in: Regenerate.
996 * libbacktrace/Makefile.in: Regenerate.
997 * lsan/Makefile.in: Regenerate.
998 * sanitizer_common/Makefile.in: Regenerate.
999 * tsan/Makefile.in: Regenerate.
1000 * ubsan/Makefile.in: Regenerate.
1001
19ac475f
JJ
10022015-01-22 Jakub Jelinek <jakub@redhat.com>
1003
1004 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
1005
8b08ef25
JJ
10062015-01-21 Jakub Jelinek <jakub@redhat.com>
1007
1008 PR sanitizer/64435
1009 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
1010 upstream r226637.
1011 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
1012 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
1013
3ea36418
JJ
10142015-01-20 Jakub Jelinek <jakub@redhat.com>
1015
1016 PR sanitizer/64632
1017 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
1018
9deaf59d
JJ
10192015-01-19 Jakub Jelinek <jakub@redhat.com>
1020
1021 PR sanitizer/64435
1022 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
1023 upstream r223925.
1024
b6a8bacc
JJ
10252015-01-13 Jakub Jelinek <jakub@redhat.com>
1026
1027 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
1028 upstream r224518 and r224519.
1029 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
1030 r224834.
1031
f2798565
JJ
10322014-12-16 Jakub Jelinek <jakub@redhat.com>
1033
1034 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
1035 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
1036 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
1037 upstream r224308.
1038
a699d672
L
10392014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1040
1041 PR bootstrap/63784
1042 * configure: Regenerated.
1043
7697b16f
JJ
10442014-11-21 Jakub Jelinek <jakub@redhat.com>
1045
1046 PR target/61137
1047 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
1048 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
1049
7f201a67
UB
10502014-11-14 Uros Bizjak <ubizjak@gmail.com>
1051
1052 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
1053 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
1054 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
1055 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
1056 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
1057 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
1058 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
1059 * sanitizer_common/Makefile.in: Regenerate.
1060 * asan/Makefile.in: Ditto.
1061 * lsan/Makefile.in: Ditto.
1062 * interception/Makefile.in: Ditto.
1063 * tsan/Makefile.in: Ditto.
1064 * libbacktrace/Makefile.in: Ditto.
1065 * ubsan/Makefile.in: Ditto.
1066
c5be964a
KS
10672014-11-13 Kostya Serebryany <kcc@google.com>
1068
1069 * All source files: Merge from upstream r221802.
1070 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
1071 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
1072 with 'start' to follow the new interface.
1073 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1074 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1075 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1076 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1077 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1078 files.
1079 (AM_CXXFLAGS): Added -std=c++11.
1080 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1081 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1082 * asan/Makefile.in: Regenerate.
1083 * interception/Makefile.in: Regenerate.
1084 * libbacktrace/Makefile.in: Regenerate.
1085 * lsan/Makefile.in: Regenerate.
1086 * sanitizer_common/Makefile.in: Regenerate.
1087 * tsan/Makefile.in: Regenerate.
1088 * ubsan/Makefile.in: Regenerate.
1089
ebf6d33b
FXC
10902014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1091
1092 PR target/63610
1093 * configure: Regenerate.
1094
d13fc1ed
ML
10952014-10-16 Martin Liska <mliska@suse.cz>
1096
1097 * asan/Makefile.am: IPA ICF pass is disabled.
1098 * asan/Makefile.in: Likewise.
1099
c8473336
DM
11002014-10-14 David S. Miller <davem@davemloft.net>
1101
1102 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1103 Define at __kernel_time_t, as needed for sparc.
1104 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1105 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1106 (__sanitizer): Define struct___old_kernel_stat_sz,
1107 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1108 (__sanitizer_ipc_perm): Adjust for sparc targets.
1109 (__sanitizer_shmid_ds): Likewsie.
1110 (__sanitizer_sigaction): Likewsie.
1111 (IOC_SIZE): Likewsie.
1112
694b4cfa
JJ
11132014-10-14 Jakub Jelinek <jakub@redhat.com>
1114
1115 * ubsan/Makefile.am (DEFS): Add -DPIC.
1116 * ubsan/Makefile.in: Regenerated.
1117
a3125fc2
CL
11182014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
1119
1120 * configure.tgt: Enable build on aarch64*-linux.
1121
866e32ad
KS
11222014-09-19 Kostya Serebryany <kcc@google.com>
1123
1124 * All source files: Merge from upstream r218156.
1125 * asan/Makefile.am (asan_files): Added new files.
1126 * asan/Makefile.in: Regenerate.
1127 * ubsan/Makefile.am (ubsan_files): Added new files.
1128 * ubsan/Makefile.in: Regenerate.
1129 * tsan/Makefile.am (tsan_files): Added new files.
1130 * tsan/Makefile.in: Regenerate.
1131 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1132 files.
1133 * sanitizer_common/Makefile.in: Regenerate.
1134 * asan/libtool-version: Bump the libasan SONAME.
1135
126edc3f
JJ
11362014-09-10 Jakub Jelinek <jakub@redhat.com>
1137
1138 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
1139 upstream r215485, r217389, r217391 and r217400.
1140
0d807c80
PC
11412014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
1142
1143 * sanitizer_common/sanitizer_common_interceptors.inc:
1144 Cherry pick upstream r211008.
1145
4622301b
RB
11462014-06-11 Richard Biener <rguenther@suse.de>
1147
1148 * asan/asan_linux.cc: Cherry pick upstream r210012.
1149
ecd5543f
JJ
11502014-05-30 Jakub Jelinek <jakub@redhat.com>
1151
1152 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
1153 r209879.
1154 * sanitizer_common/sanitizer_common.h: Likewise.
1155 * asan/asan_mapping.h: Likewise.
1156 * asan/asan_linux.cc: Likewise.
1157 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
1158 * sanitizer_common/sanitizer_allocator.h: Likewise.
1159
85a16bf8
MP
11602014-05-23 Marek Polacek <polacek@redhat.com>
1161
1162 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
1163 floating-point types.
1164
dee5ea7a
KS
11652014-05-22 Kostya Serebryany <kcc@google.com>
1166
1167 * All source files: Merge from upstream r209283.
1168 * asan/Makefile.am (asan_files): Added new files.
1169 * asan/Makefile.in: Regenerate.
1170 * tsan/Makefile.am (tsan_files): Added new files.
1171 * tsan/Makefile.in: Regenerate.
0d807c80
PC
1172 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1173 files.
dee5ea7a
KS
1174 * sanitizer_common/Makefile.in: Regenerate.
1175
2675305b
YG
11762014-05-14 Yury Gribov <y.gribov@samsung.com>
1177
1178 PR sanitizer/61100
1179 * Makefile.am (nodist_saninclude_HEADERS): Install
1180 public headers.
1181 * Makefile.in: Regenerate.
1182
a6c9ab4e
RO
11832014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1184
1185 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1186 Add ../../libbacktrace/sort.c.
1187 * libbacktrace/Makefile.in: Regenerate.
1188 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1189
a42a7046
BS
11902014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1191
1192 * configure.tgt: Unsupported for little endian PowerPC for now.
1193
5ab39ec3
JJ
11942014-02-04 Jakub Jelinek <jakub@redhat.com>
1195
81c87471
JJ
1196 PR sanitizer/60055
1197 * tsan/tsan_flags.cc (__tsan_default_options): Add
1198 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
1199 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1200
5ab39ec3
JJ
1201 PR sanitizer/60038
1202 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1203 sanitizer_atomic.h and unistd.h.
1204 (kThreadDescriptorSize): Made static, remove initializer and const,
1205 change type to atomic_uintptr_t.
1206 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1207 query glibc version, compute kThreadDescriptorSize depending on
1208 glibc version minor number.
1209 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1210 kThreadDescriptorSize directly.
1211
4a7eaf5f
YG
12122014-01-23 Yury Gribov <y.gribov@samsung.com>
1213 Jakub Jelinek <jakub@redhat.com>
1214
1215 PR sanitizer/57316
1216 * configure.ac: Check for missing syscalls.
1217 * Makefile.am: Likewise.
1218 * configure: Regenerate.
1219 * Makefile.in: Regenerate.
1220
2613419a
JJ
12212014-01-09 Jakub Jelinek <jakub@redhat.com>
1222
b5f58ba3
JJ
1223 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1224 (LibbacktraceSymbolizer::Demangle): New declaration.
1225 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1226 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1227 method if possible.
1228 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1229 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1230 (struct CplusV3DemangleData): New type.
1231 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1232 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1233 SymbolizeDataCallback): Use CplusV3Demangle.
1234 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1235 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1236 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1237 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1238 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1239 cplus_demangle_init_info, cplus_demangle_mangled_name,
1240 cplus_demangle_operators, cplus_demangle_print,
1241 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1242 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1243 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1244 Define.
1245 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1246 (memcmp, strncmp): Redefine.
1247 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1248 ../../libiberty/cp-demangle.c.
1249 * libbacktrace/bridge.cc (__asan_internal_memcmp,
1250 __asan_internal_strncmp): New functions.
1251 * sanitizer_common/Makefile.in: Regenerated.
1252 * libbacktrace/Makefile.in: Regenerated.
1253 * configure: Regenerated.
1254 * configure.ac: Regenerated.
1255 * config.h.in: Regenerated.
1256
2613419a
JJ
1257 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1258 -isystem $(top_srcdir)/include/system.
1259 * sanitizer_common/Makefile.in: Regenerated.
1260 * include/system/linux/aio_abi.h: New header.
1261 * include/system/linux/mroute.h: New header.
1262 * include/system/linux/mroute6.h: New header.
1263 * include/system/linux/perf_event.h: New header.
1264 * include/system/linux/types.h: New header.
c915a581
JJ
1265
1266 PR sanitizer/59136
1267 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1268 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1269 and -I/-include flags.
1270 * lsan/Makefile.am (liblsan_la_LIBADD): Add
1271 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1272 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1273 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1274 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1275 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1276 libbacktrace.
1277 * README.gcc: Document that also lsan and ubsan are
1278 maintained in compiler-rt upstream.
1279 * libbacktrace/Makefile.am: New file.
1280 * libbacktrace/backtrace-rename.h: New file.
1281 * libbacktrace/backtrace-supported.h.in: New file.
1282 * libbacktrace/bridge.cc: New file.
1283 * configure.ac: Add tests needed for libbacktrace build
1284 within libsanitizer.
1285 * sanitizer_common/Makefile.in: Regenerated.
1286 * lsan/Makefile.in: Regenerated.
1287 * tsan/Makefile.in: Regenerated.
1288 * ubsan/Makefile.in: Regenerated.
1289 * libbacktrace/Makefile.in: Generated.
1290 * config.h.in: Regenerated.
1291 * configure: Regenerated.
1292 * Makefile.in: Regenerated.
1293 * interception/Makefile.in: Regenerated.
1294 * asan/Makefile.in: Regenerated.
1295 * aclocal.m4: Regenerated.
1296
409f3b46
KS
12972013-12-19 Kostya Serebryany <kcc@google.com>
1298
92a285c1 1299 * sanitizer_common/sanitizer_platform_limits_posix.cc:
409f3b46
KS
1300 workaround for missing definition of EOWNERDEAD, backport
1301 from upstream r196779.
1302
079db27b
L
13032013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1304
1305 * sanitizer_common/sanitizer_platform_limits_posix.h
1306 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1307 (__sanitizer_clock_t): Use long long for x32.
1308
7efb96c0
L
13092013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1310
1311 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1312 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1313 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1314
df9d1700
L
13152013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1316
1317 * configure.ac (link_sanitizer_common): Add -lm.
1318 * configure: Regenerated.
1319
c4c16f74
KS
13202013-12-05 Kostya Serebryany <kcc@google.com>
1321
1322 * All source files: Merge from upstream r196489.
1323 * merge.sh: Add *.S to the list of merged files.
1324
666ee4d6
YG
13252013-12-05 Yury Gribov <y.gribov@samsung.com>
1326
1327 PR sanitizer/59368
1328 * Makefile.am (gcc_version): Added gcc_version.
1329 * Makefile.in: Regenerate.
1330
df77f0e4
KS
13312013-12-05 Kostya Serebryany <kcc@google.com>
1332
1333 * All source files: Merge from upstream r196090.
1334 * tsan/Makefile.am (tsan_files): Added new files.
1335 * tsan/Makefile.in: Regenerate.
1336 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1337 * sanitizer_common/Makefile.in: Regenerate.
1338 * lsan/Makefile.am (lsan_files): Added new files.
1339 * lsan/Makefile.in: Regenerate.
1340
35814b03
JJ
13412013-11-29 Jakub Jelinek <jakub@redhat.com>
1342 Yury Gribov <y.gribov@samsung.com>
1343
1344 PR sanitizer/59063
1345 * libsanitizer.spec.in: Add spec file to hold link flags for
1346 various sanitizer libs.
1347 * configure.ac: Check whether clock_* routines come from librt.
1348 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1349 configure.ac.
1350 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1351 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1352 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1353 * asan/Makefile.in: Regenerate.
1354 * interception/Makefile.in: Regenerate.
1355 * lsan/Makefile.in: Regenerate.
1356 * sanitizer_common/Makefile.in: Regenerate.
1357 * tsan/Makefile.in: Regenerate.
1358 * ubsan/Makefile.in: Regenerate.
1359 * Makefile.in: Regenerate.
1360 * configure: Regenerate.
1361
049558ed
JJ
13622013-11-28 Jakub Jelinek <jakub@redhat.com>
1363 Yury Gribov <y.gribov@samsung.com>
1364
1365 PR sanitizer/59106
1366 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1367 don't need it.
1368 * ubsan/Makefile.in: Regenerated.
1369
9065ada9
JJ
13702013-11-22 Jakub Jelinek <jakub@redhat.com>
1371
1372 PR sanitizer/59061
1373 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1374 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1375 * configure: Regenerated.
1376 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1377 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1378 * lsan/Makefile.in: Regenerated.
1379
486294d4
MS
13802013-11-22 Mike Stump <mikestump@comcast.net>
1381
1382 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1383 change from upstream to fix build.
1384
2621c860
YG
13852013-11-18 Yury Gribov <y.gribov@samsung.com>
1386
1387 PR sanitizer/59106
1388 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1389 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1390 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1391 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1392 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1393 * asan/Makefile.in: Regenerate.
1394 * interception/Makefile.in: Regenerate.
1395 * tsan/Makefile.in: Regenerate.
1396 * lsan/Makefile.in: Regenerate.
1397 * sanitizer_common/Makefile.in: Regenerate.
1398
c8e1377b
KS
13992013-11-15 Kostya Serebryany <kcc@google.com>
1400
1401 PR sanitizer/58994
92a285c1
ML
1402 Backport from upstream revision 194573
1403 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1404 back to the original functions in the common libsanitizer
1405 interceptors and the __cxa_atexit() interceptor on Darwin.
c8e1377b 1406
c3d77f3a
PB
14072013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1408
1409 PR sanitizer/59009
1410 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1411 ifdef out more source.
1412
d00106f4
JJ
14132013-11-12 Jakub Jelinek <jakub@redhat.com>
1414
1415 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1416 ifdef out almost the whole source.
1417 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1418
e276866f
L
14192013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 PR sanitizer/59018
1422 * sanitizer_common/sanitizer_platform_limits_posix.cc
1423 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1424 defined.
1425
f5c36cfc
L
14262013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1427
1428 PR sanitizer/59018
1429 * sanitizer_common/sanitizer_platform_limits_linux.cc
1430 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1431 defined.
1432 * sanitizer_common/sanitizer_platform_limits_posix.h
1433 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1434 defined.
1435 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1436 is defined.
1437 (__sanitizer___kernel_gid_t): Likewise.
1438 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1439 is defined.
1440
e45de14e
L
14412013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1442
1443 PR sanitizer/59018
1444 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1445 2 64-bit integers to save and restore fn and arg. Properly load
1446 newtls/child_tidptr into r8/r10.
1447
38693e39
L
14482013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1449
1450 PR sanitizer/59018
1451 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1452 internal_munmap, internal_open, internal_read, internal_write,
1453 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1454 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1455 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1456 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1457
ef1b3fda
KS
14582013-11-04 Kostya Serebryany <kcc@google.com>
1459
1460 * All source files: Merge from upstream r191666.
1461 * merge.sh: Added lsan.
1462 * configure.ac (AC_CONFIG_FILES): Added lsan.
1463 * Makefile.am (SUBDIRS): Added lsan.
1464 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1465 * asan/Makefile.am (asan_files): Added new files.
1466 (libasan_la_LIBADD): Added a dependency on lsan.
1467 * lsan/Makefile.am: New file.
1468 * asan/Makefile.in: Regenerate.
1469 * lsan/Makefile.in: Regenerate.
1470 * Makefile.in: Regenerate.
1471 * configure: Regenerate.
1472 * sanitizer_common/Makefile.in: Regenerate.
1473
3cbe17f7
AM
14742013-09-20 Alan Modra <amodra@gmail.com>
1475
1476 * configure: Regenerate.
1477
0cea211e
IS
14782013-09-01 Iain Sandoe <iain@codesourcery.com>
1479
1480 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1481 libinterception.la for Darwin.
1482 * ubsan/Makefile.in: Regenerate.
1483
de5a5fa1
MP
14842013-08-30 Jakub Jelinek <jakub@redhat.com>
1485
1486 * Makefile.am (SUBDIRS): Add ubsan.
1487 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1488 * merge.sh: Merge ubsan.
1489 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1490 * sanitizer_common/sanitizer_printf.cc: Likewise.
1491 * sanitizer_common/sanitizer_common.h: Likewise.
1492 * ubsan: New directory. Import ubsan runtime from llvm.
1493
634cfa2b
CL
14942013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1495
1496 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1497 Cherry pick upstream r182922.
1498
8a5800b8
CL
14992013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1500
1501 * configure.tgt: Add ARM pattern.
1502
a745e444 15032013-03-22 Jakub Jelinek <jakub@redhat.com>
1868beee
JJ
1504
1505 PR other/43620
1506 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1507 * Makefile.in: Regenerated.
1508 * asan/Makefile.in: Regenerated.
1509 * interception/Makefile.in: Regenerated.
1510 * sanitizer_common/Makefile.in: Regenerated.
1511 * tsan/Makefile.in: Regenerated.
1512
4c376126
JJ
15132013-02-28 Jakub Jelinek <jakub@redhat.com>
1514
1515 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1516 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1517 0x4fffffffffULL.
1518
7d613735
JJ
15192013-02-22 Jakub Jelinek <jakub@redhat.com>
1520
1521 PR sanitizer/56393
1522 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1523 libasan_preinit.o.
1524 (libasan_preinit.o): Depend on asan_preinit.o.
1525 * asan/Makefile.in: Regenerated.
1526 * asan/asan_preinit.cc: New file, synced from upstream.
1527 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1528
ecdbd01a 15292013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
304886c5
JH
1530
1531 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1532 dynamic/asan_interceptors_dynamic.cc.
1533 * asan/Makefile.in: Regenerated.
1534 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1535
4be7da26
JJ
15362013-02-21 Jakub Jelinek <jakub@redhat.com>
1537
1538 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1539 defined. Add used attribute.
1540
7df59255
KS
15412013-02-21 Kostya Serebryany <kcc@google.com>
1542
1543 * All source files: Merge from upstream r175733.
1544 * sanitizer_common/Makefile.am: Added a new file.
1545 * sanitizer_common/Makefile.in: Regenerated.
1546
8afd2ed7
L
15472013-02-14 H.J. Lu <hongjiu.lu@intel.com>
1548
1549 PR bootstrap/56327
1550 * interception/interception.h (OFF_T): Merged from upstream
1551 r175140.
1552
6422242b
JJ
15532013-02-13 Jakub Jelinek <jakub@redhat.com>
1554
1555 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1556
b4ab7d34
KS
15572013-02-13 Kostya Serebryany <kcc@google.com>
1558
8afd2ed7 1559 PR sanitizer/56128
b4ab7d34
KS
1560 * All source files: Merge from upstream r175049.
1561 * interception/Makefile.am: added include path.
1562 * interception/Makefile.in: Regenerated.
1563
34dc17ed
JH
15642013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
1565
1566 * configure.tgt: Disable build on darwin9 and earlier.
1567
2660d12d
KS
15682013-01-23 Kostya Serebryany <kcc@google.com>
1569
8afd2ed7 1570 PR sanitizer/55989
2660d12d
KS
1571 * All source files: Merge from upstream r173241.
1572 * merge.sh: Support merging .inc files.
1573
19006c45
JJ
15742013-01-16 Jakub Jelinek <jakub@redhat.com>
1575
1576 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1577 -Wno-c99-extensions.
1578 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1579 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1580 * sanitizer_common/Makefile.in: Regenerated.
1581 * interception/Makefile.in: Regenerated.
1582 * asan/Makefile.in: Regenerated.
1583
edadb734
WM
15842013-01-10 Wei Mi <wmi@google.com>
1585
1586 PR sanitizer/55488
1587 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1588 * tsan/Makefile.in: Regenerated.
1589 * tsan/tsan_rtl.h: Enable HACKY_CALL.
1590
e9772e16
KS
15912013-01-10 Kostya Serebryany <kcc@google.com>
1592
1593 * All source files: Merge from upstream r171973.
1594 * sanitizer_common/Makefile.am: Added new files.
1595 * asan/Makefile.am: Likewise.
1596 * tsan/Makefile.am: Likewise.
1597 * sanitizer_common/Makefile.in: Regenerated.
1598 * asan/Makefile.in: Likewise.
1599 * tsan/Makefile.in: Likewise.
1600
7f7162cf
L
16012013-01-07 H.J. Lu <hongjiu.lu@intel.com>
1602
1603 * asan/Makefile.am (libasan_la_LIBADD): Replace
1604 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1605 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1606 * Makefile.in: Regenerated.
1607 * configure: Likewise.
1608 * asan/Makefile.in: Likewise.
1609 * interception/Makefile.in: Likewise.
1610 * sanitizer_common/Makefile.in: Likewise.
1611 * tsan/Makefile.in: Likewise.
1612
b488a2c7
L
16132012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1614
1615 * Makefile.am (AM_MAKEFLAGS): Restored.
1616 * interception/Makefile.am: Likewise.
1617 * sanitizer_common/Makefile.am: Likewise.
1618 * tsan/Makefile.am: Likewise.
1619 * Makefile.in: Regenerated.
1620 * asan/Makefile.in: Likewise.
1621 * interception/Makefile.in: Likewise.
1622 * sanitizer_common/Makefile.in: Likewise.
1623 * tsan/Makefile.in: Likewise.
1624
e8adb21b
L
16252012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1626
1627 * Makefile.am (MAKEOVERRIDES): Restored.
1628 * asan/Makefile.am: Likewise.
1629 * interception/Makefile.am: Likewise.
1630 * sanitizer_common/Makefile.am: Likewise.
1631 * tsan/Makefile.am: Likewise.
1632 * Makefile.in: Regenerated.
1633 * asan/Makefile.in: Likewise.
1634 * interception/Makefile.in: Likewise.
1635 * sanitizer_common/Makefile.in: Likewise.
1636 * tsan/Makefile.in: Likewise.
1637
e1e953d9
L
16382012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1639
1640 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1641 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1642 * Makefile.in: Regenerated.
1643 * configure: Likewise.
1644 * asan/Makefile.in: Likewise.
1645 * interception/Makefile.in: Likewise.
1646 * sanitizer_common/Makefile.in: Likewise.
1647 * tsan/Makefile.in: Likewise.
1648
a62d3903
L
16492012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1650
1651 * Makefile.am (AM_MAKEFLAGS): Removed.
1652 (MAKEOVERRIDES): Likewise.
1653 * asan/Makefile.am: Likewise.
1654 * interception/Makefile.am: Likewise.
1655 * sanitizer_common/Makefile.am: Likewise.
1656 * tsan/Makefile.am: Likewise.
1657 * Makefile.in: Regenerated.
1658 * asan/Makefile.in: Likewise.
1659 * interception/Makefile.in: Likewise.
1660 * sanitizer_common/Makefile.in: Likewise.
1661 * tsan/Makefile.in: Likewise.
1662
d10a2df2
L
16632012-12-11 H.J. Lu <hongjiu.lu@intel.com>
1664
1665 PR sanitizer/55533
1666 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1667 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1668 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1669 (AM_MAKEFLAGS): Remove CC and CXX.
1670 * interception/Makefile.am: Likewise.
1671 * sanitizer_common/Makefile.am: Likewise.
1672 * tsan/Makefile.am: Likewise.
1673 * Makefile.in: Regenerated.
1674 * aclocal.m4: Likewise.
1675 * configure: Likewise.
1676 * asan/Makefile.in: Likewise.
1677 * interception/Makefile.in: Likewise.
1678 * sanitizer_common/Makefile.in: Likewise.
1679 * tsan/Makefile.in: Likewise.
1680
957fee09
PB
16812012-12-06 Peter Bergner <bergner@vnet.ibm.com>
1682
1683 * configure.tgt: Enable build on powerpc*-linux.
1684
ecdbd01a 16852012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
3157880f
JH
1686
1687 PR 55599/sanitizer
d10a2df2
L
1688 * configure.ac: Set enable_static=no on darwin.
1689 * configure: Regenerated.
3157880f 1690
695edbac
KS
16912012-12-06 Kostya Serebryany <kcc@google.com>
1692
1693 * All files: Merge from upstream r169392.
1694
a0408454
KS
16952012-12-05 Kostya Serebryany <kcc@google.com>
1696
1697 * All files: Merge from upstream r169371.
1698
41d37c56 16992012-12-04 Kostya Serebryany <kcc@google.com>
ecdbd01a 1700 Jack Howarth <howarth@bromo.med.uc.edu>
8c4d267c
KS
1701
1702 PR 55521/sanitizer
1703 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1704 * Makefile.am: Don't build interception subdir when
1705 USING_MAC_INTERPOSE defined.
1706 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1707 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1708 Compile asan_interceptors_dynamic.cc but not libinterception
1709 when USING_MAC_INTERPOSE defined.
1710 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1711 * configure: Regenerated.
1712 * Makefile.in: Likewise.
1713 * asan/Makefile.in: Likewise.
1714 * interception/Makefile.in: Likewise.
1715 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1716 * asan/asan_mac.cc: Likewise.
1717 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1718 and use MISSING_BLOCKS_SUPPORT.
1719 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1720 * interception/mach_override/LICENSE.txt: Remove unused file.
1721 * interception/mach_override/mach_override.c: Likewise.
1722 * interception/mach_override/mach_override.h: Likewise.
1723 * interception/mach_override: Remove unused directory.
1724
a23ed040
L
17252012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1726
1727 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1728 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1729 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1730 files.
1731 (AM_MAKEFLAGS): Restore CC and CXX.
1732 * interception/Makefile.am: Likewise.
1733 * sanitizer_common/Makefile.am: Likewise.
1734 * tsan/Makefile.am: Likewise.
1735 * Makefile.in: Regenerated.
1736 * aclocal.m4: Likewise.
1737 * configure: Likewise.
1738 * asan/Makefile.in: Likewise.
1739 * interception/Makefile.in: Likewise.
1740 * sanitizer_common/Makefile.in: Likewise.
1741 * tsan/Makefile.in: Likewise.
1742
2ed685b8
L
17432012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1744
1745 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1746 * configure.ac (ACX_NONCANONICAL_TARGET): New.
1747 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1748 files.
1749 (AM_MAKEFLAGS): Remove CC and CXX.
1750 * interception/Makefile.am: Likewise.
1751 * sanitizer_common/Makefile.am: Likewise.
1752 * tsan/Makefile.am: Likewise.
1753 * Makefile.in: Regenerated.
1754 * aclocal.m4: Likewise.
1755 * configure: Likewise.
1756 * asan/Makefile.in: Likewise.
1757 * interception/Makefile.in: Likewise.
1758 * sanitizer_common/Makefile.in: Likewise.
1759 * tsan/Makefile.in: Likewise.
1760
4ba5ca46
KS
17612012-11-27 Kostya Serebryany <kcc@google.com>
1762
1763 * All files: Merge from upstream r168699.
1764
41d37c56 17652012-11-24 Kostya Serebryany <kcc@google.com>
ecdbd01a 1766 Jack Howarth <howarth@bromo.med.uc.edu>
f246eadc
JH
1767
1768 * interception/mach_override/mach_override.c: Migrate from llvm.
1769 * interception/mach_override/mach_override.h: Likewise.
1770 * interception/mach_override/LICENSE.txt: Likewise.
1771 * configure.tgt: Add darwin to supported targets.
1772 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1773 * interception/Makefile.am: Compile mach_override.c when
1774 USING_MACH_OVERRIDE defined.
1775 * configure: Regenerated.
1776 * interception/Makefile.in: Likewise.
1777
9cb5411c
L
17782012-11-23 H.J. Lu <hongjiu.lu@intel.com>
1779
1780 PR sanitizer/55450
1781 * tsan/Makefile.am (gcc_version): New.
1782 * tsan/Makefile.in: Regenerated.
1783
3409d40e 17842012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1785
e297eb60
KS
1786 * merge.sh: Support tsan, support added/removed files.
1787 * tsan/Makefile.am: Remove tsan_printf.cc.
1788 * tsan/Makefile.in: Regenerated.
1789 * other files: Merge from upstream r168514.
1790
17912012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1792
e297eb60 1793 * merge.sh: New file.
3409d40e 1794
64548f3b
JJ
17952012-11-23 Jakub Jelinek <jakub@redhat.com>
1796
1797 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1798 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1799 automake conditional instead of !MULTISUBDIR32.
1800 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1801 for 64-bit multilib.
1802 * configure.ac: Check for void * size, source in configure.tgt,
1803 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1804 * configure: Regenerated.
1805 * Makefile.in: Regenerated.
1806 * tsan/Makefile.in: Regenerated.
1807
cd0be65c
WM
18082012-11-22 Wei Mi <wmi@google.com>
1809
1810 * tsan: New directory. Import tsan runtime from llvm.
1811 * configure.ac: Add 64 bits tsan build.
1812 * Makefile.am: Likewise.
1813 * configure: Regenerated.
1814 * Makefile.in: Likewise.
1815
5cba83a8
KS
18162012-11-21 Kostya Serebryany <kcc@google.com>
1817
9cb5411c 1818 * README.gcc: Extend the README.gcc with mode details.
5cba83a8 1819
b014e124
KS
18202012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1821
1822 * sanitizer_common/sanitizer_linux.cc
1823 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1824 (internal_mmap): Use it.
1825 (internal_filesize): Likewise.
1826
2b723e21
TT
18272012-11-16 Tom Tromey <tromey@redhat.com>
1828
1829 * configure.ac: Invoke AM_MAINTAINER_MODE.
1830 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1831 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1832
d1caed14
L
18332012-11-16 H.J. Lu <hongjiu.lu@intel.com>
1834
1835 PR other/55333
1836 * include/sanitizer/common_interface_defs.h (uhwptr): New type
1837 for hardware pointer.
1838 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1839 Replace uptr with uhwptr for stack unwind.
1840
f3754998
DS
18412012-11-16 Dodji Seketeli <dodji@redhat.com>
1842
1843 * configure.tgt: Enable build on sparc linux.
1844
f64bcb29
L
18452012-11-15 H.J. Lu <hongjiu.lu@intel.com>
1846
1847 * configure.ac: Properly set MULTISUBDIR.
1848 * asan/Makefile.am (gcc_version): New.
1849 * interception/Makefile.am (gcc_version): Likewise.
1850 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1851 * configure: Regenerated.
1852 * asan/Makefile.in: Likewise.
1853 * interception/Makefile.in: Likewise.
1854 * sanitizer_common/Makefile.in: Likewise.
1855
2a6346c4
L
18562012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1857
1858 PR other/55291
1859 * configure.ac (--enable-version-specific-runtime-libs): New option.
1860 (AC_CANONICAL_SYSTEM): New.
1861 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1862 (toolexecdir): Support multilib.
1863 (toolexeclibdir): Likewise.
1864 (multilib_arg): New.
1865 * Makefile.in: Regenerated.
1866 * aclocal.m4: Likewise.
1867 * configure: Likewise.
1868 * asan/Makefile.in: Likewise.
1869 * interception/Makefile.in: Likewise.
1870 * sanitizer_common/Makefile.in: Likewise.
1871
4a56a7be
L
18722012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1873
1874 PR other/55292
1875 Backport from upstream revision 167883
1876 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1877 __x86_64__ instead of __WORDSIZE.
1878 (internal_filesize): Likwise.
1879
4053ca2c
L
18802012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1881
1882 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1883 * Makefile.in: Regenerated.
1884 * configure: Likewise.
1885
a2479b3d
L
18862012-11-13 H.J. Lu <hongjiu.lu@intel.com>
1887
1888 PR other/55304
1889 * acinclude.m4: New file.
1890 * Makefile.am (ACLOCAL_AMFLAGS): New.
1891 * configure.ac (AC_PREREQ): Set to 2.64.
1892 (AC_CONFIG_AUX_DIR): Set to "..".
1893 * Makefile.in: Regenerated.
1894 * aclocal.m4: Likewise.
1895 * configure: Likewise.
1896 * asan/Makefile.in: Likewise.
1897 * interception/Makefile.in: Likewise.
1898 * sanitizer_common/Makefile.in: Likewise.
1899
1900 * config.guess: Removed.
1901 * config.sub: Likewise.
1902 * depcomp: Likewise.
1903 * install-sh: Likewise.
1904 * ltmain.sh: Likewise.
1905 * missing: Likewise.
1906
93bf5390
RH
19072012-11-13 Richard Henderson <rth@redhat.com>
1908
1909 * configure.tgt: New file.
1910
d2860e72
DM
19112012-11-12 David S. Miller <davem@davemloft.net>
1912
1913 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1914
f35db108
WM
19152012-10-29 Wei Mi <wmi@google.com>
1916
1917 Initial checkin: migrate asan runtime from llvm.