]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/ChangeLog
re PR c++/67184 (Missed optimization with C++11 final specifier)
[thirdparty/gcc.git] / libsanitizer / ChangeLog
CommitLineData
9553f0d2
IS
12019-06-18 Iain Sandoe <iain@sandoe.co.uk>
2
3 PR libsanitizer/87880
4 * asan/asan_interceptors.h:
5 (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New.
6 * asan/Makefile.am (DEFS): Add
7 ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0.
8 * asan/Makefile.in: Regenerated.
9 * asan/libtool-version: Bump version.
10
7f63a854
SB
112019-05-27 Segher Boessenkool <segher@kernel.crashing.org>
12
13 PR target/90639
14 * tsan/tsan_rtl_ppc64.S: Add ".machine altivec".
15
ccd1242e
RO
162019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17
18 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
19 handling.
20 * configure: Regenerate.
21
b8e214c6
ML
222019-04-08 Martin Liska <mliska@suse.cz>
23
24 * LOCAL_PATCHES: Add revision.
25
17cf9090
ML
262019-04-08 Martin Liska <mliska@suse.cz>
27
28 PR sanitizer/89941
29 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined):
30 Reapply patch from r259664.
31 * sanitizer_common/sanitizer_platform_limits_posix.h (defined):
32 Likewise.
33
7a26e273
EB
342019-03-13 Eric Botcazou <ebotcazou@adacore.com>
35
36 PR sanitizer/80953
37 Merge from LLVM revision 355980
38 * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC.
39 (kAllocatorSize): Likewise.
40 (DefaultSizeClassMap): Likewise.
41 * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define.
42 (SHADOW_OFFSET): Define for SPARC.
43 Include asan_mapping_sparc64.h for SPARC 64-bit.
44 * asan/asan_mapping_sparc64.h: New file.
45
a196c82c
EB
462019-03-13 Eric Botcazou <ebotcazou@adacore.com>
47
48 PR sanitizer/80953
49 Merge from LLVM revision 355979
50 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
51 copy Global objects for SPARC with GCC.
52
36b50aeb
EB
532019-03-13 Eric Botcazou <ebotcazou@adacore.com>
54
55 PR sanitizer/80953
56 Merge from LLVM revision 355978
57 * sanitizer_common/sanitizer_allocator_primary32.h
58 (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if
59 SANITIZER_SIGN_EXTENDED_ADDRESSES is set.
60 (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES.
61 (ComputeRegionId): Likewise.
62 * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return
63 appropriate value for SPARC 64-bit.
64 * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE):
65 Define for SPARC.
66 (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit.
67
017abbe3
EB
682019-03-13 Eric Botcazou <ebotcazou@adacore.com>
69
70 PR sanitizer/80953
71 Merge from LLVM revision 355965
72 * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for
73 SPARC/Linux.
74 (GetPcSpBp): Likewise.
75 * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc):
76 Adjust for SPARC.
77 * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND):
78 Define to 1 for SPARC.
79 * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite.
80 * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack):
81 Adjust the PC address for SPARC with GCC.
82
c24847a5
ML
832019-03-06 Martin Liska <mliska@suse.cz>
84
85 PR sanitizer/88684
86 * sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
87 (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
88 * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
89 Likewise.
90
4dfc5b35
L
912019-02-20 H.J. Lu <hongjiu.lu@intel.com>
92
93 PR sanitizer/89409
94 * sanitizer_common/sanitizer_linux.cc (internal_readlink):
95 Cherry-pick compiler-rt r354451.
96
a795cd3d
JG
972019-01-23 Jonny Grant <jg@jguk.org>
98
99 PR sanitizer/89010
100 * libsanitizer/README.gcc: Update to current https URLs.
101
96051ee5
ML
1022018-12-27 Martin Liska <mliska@suse.cz>
103
a795cd3d 104 PR sanitizer/86229
96051ee5
ML
105 * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
106 pick rL350085.
107 * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
108
15e109b3
ML
1092018-11-09 Martin Liska <mliska@suse.cz>
110
111 * LOCAL_PATCHES: Include one local patch.
112
d1e2e13c
ML
1132018-11-09 Martin Liska <mliska@suse.cz>
114
115 PR sanitizer/87892
116 * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return
117 1 when CPU_COUNT macro is not defined.
118
39abbb86
BS
1192018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com>
120
121 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
122 Disable ASLR for powerpc64 when using sanitizers.
123
aaabfd71
RO
1242018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
125
126 PR sanitizer/80953
127 * configure.tgt (sparc*-*-solaris2.11*): Enable.
128 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
129
0b5ccc80
RO
1302018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131
132 PR sanitizer/80953
133 * sanitizer_common/sanitizer_internal_defs.h,
134 sanitizer_common/sanitizer_platform_limits_solaris.h,
135 sanitizer_common/sanitizer_procmaps_solaris.cc,
136 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
137 revision 346153.
138 * sanitizer_common/sanitizer_stacktrace.h,
139 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
140 compiler-rt revision 346155.
141
b40a67df
SB
1422018-11-05 Segher Boessenkool <segher@kernel.crashing.org>
143
144 * LOCAL_PATCHES: Add r258525.
145 * sanitizer_common/sanitizer_stacktrace.cc
146 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
147 for PowerPC SYSV ABI.
148
6388cb29
ML
1492018-11-05 Martin Liska <mliska@suse.cz>
150
151 PR sanitizer/87860
152 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream
153 r346129.
154
22e05272
JM
1552018-10-31 Joseph Myers <joseph@codesourcery.com>
156
157 PR bootstrap/82856
158 * Makefile.am: Include multilib.am.
159 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
160 * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
161 interception/Makefile.in, libbacktrace/Makefile.in,
162 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
163 ubsan/Makefile.in: Regenerate.
164
088371bf
ML
1652018-10-31 Martin Liska <mliska@suse.cz>
166
167 * LOCAL_PATCHES: Update to installed revisions.
168
c244886c
ML
1692018-10-31 Martin Liska <mliska@suse.cz>
170
171 * ubsan/ubsan_platform.h: Add ifndef as we define it with
172 -DCAN_SANITIZE_UB CFLAGS.
173
f607b87c
ML
1742018-10-31 Martin Liska <mliska@suse.cz>
175
176 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
177
e63c9677
ML
1782018-10-31 Martin Liska <mliska@suse.cz>
179
180 * LOCAL_PATCHES: Update patch list.
181 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
182 patches from GCC's trunk.
183 (CheckODRViolationViaPoisoning): Likewise.
184 (RegisterGlobal): Likewise.
185 * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
186 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
187 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
188 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
189 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
190 (struct CFICheckFailData): Likewise.
191 (RECOVERABLE): Likewise.
192
8468f944
ML
1932018-10-31 Martin Liska <mliska@suse.cz>
194
195 * config.h.in: Regenerate.
196 * configure: Likewise.
197 * sanitizer_common/Makefile.am: Include new files, remove old
198 files.
199 * sanitizer_common/Makefile.in: Regenerate.
200 * ubsan/Makefile.am: Include new files, remove old
201 files.
202 * ubsan/Makefile.in: Likewise.
203 * asan/Makefile.am: Include new files.
204 * asan/Makefile.in: Regenerate.
205
eac97531
ML
2062018-10-31 Martin Liska <mliska@suse.cz>
207
208 * All source files: Merge from upstream 345033.
209
95fba530
ML
2102018-10-31 Martin Liska <mliska@suse.cz>
211
212 * HOWTO_MERGE: Enhance documentation.
213 * merge.sh: Add support for git as well.
214
b4f1f01d
ML
2152018-08-02 Martin Liska <mliska@suse.cz>
216
92a285c1 217 PR sanitizer/86022
b4f1f01d 218 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
92a285c1 219 Cherry-pick compiler-rt revision 338606.
b4f1f01d 220
c191b1ab
MP
2212018-08-01 Marek Polacek <polacek@redhat.com>
222
223 PR sanitizer/86759
224 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
225 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
226 319180.
227
c83b4b82
L
2282018-07-25 H.J. Lu <hongjiu.lu@intel.com>
229
230 PR target/86560
231 * asan/asan_interceptors.cc (swapcontext) Cherry-pick
232 compiler-rt revision 337603.
233 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
234 Likewise.
235
bdfc619e
JJ
2362018-07-05 Jakub Jelinek <jakub@redhat.com>
237
238 Revert
239 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
240
241 PR sanitizer/84250
242 * Makefile.am: Reorder libs.
243 * Makefile.in: Regenerate.
244 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
245 libsanitizer_ubsan.la.
246 * asan/Makefile.in: Regenerate.
247 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
248 * ubsan/Makefile.in: Regenerate.
249
ca8dd9f2
MO
2502018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
251
252 PR sanitizer/84250
253 * Makefile.am: Reorder libs.
254 * Makefile.in: Regenerate.
255 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
256 libsanitizer_ubsan.la.
257 * asan/Makefile.in: Regenerate.
258 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
259 * ubsan/Makefile.in: Regenerate.
260
3b07c0e5
DK
2612018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
262
92a285c1
ML
263 PR sanitizer/86090
264 * configure.ac: Check for lstat and readlink.
265 * configure, config.h.in: Rebuild.
3b07c0e5 266
5b87c1fe
MK
2672018-05-31 Matthias Klose <doko@ubuntu.com>
268
269 PR sanitizer/86012
270 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
271 SIZEOF_STRUCT_USTAT for 32bit sparc.
272
71b55d45
L
2732018-05-24 H.J. Lu <hongjiu.lu@intel.com>
274
275 PR sanitizer/85835
276 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
277 include <sys/ustat.h> for Linux.
278 (SIZEOF_STRUCT_USTAT): New.
279 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
280
bc40f166
HPN
2812018-04-26 Hans-Peter Nilsson <hp@axis.com>
282
752361c9
HPN
283 * configure.tgt <mips*-*-linux*>: Enable build, excluding
284 mips*64*-*-linux*.
285
9f943b24
HPN
286 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
287 take the shortcut to #include <sys/stat.h> for MIPS instead of
288 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
289 or wrong to get the kernel struct stat.
290 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
291 Correct the value for 32-bit non-android struct_kernel_stat_sz.
292
bc40f166
HPN
293 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
294 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
295
7b47ecf2
L
2962018-04-24 H.J. Lu <hongjiu.lu@intel.com>
297
298 * configure: Regenerated.
299
a0e1df88
JJ
3002018-04-19 Jakub Jelinek <jakub@redhat.com>
301
302 * configure: Regenerated.
303
001ddaa8
DM
3042018-04-18 David Malcolm <dmalcolm@redhat.com>
305
306 PR jit/85384
307 * configure: Regenerate.
308
19ddb884
BS
3092018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
310
311 PR sanitizer/85389
312 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
313 from 0xa0000000000ULL to ~(uptr)0.
314
359ea407
JJ
3152018-03-19 Jakub Jelinek <jakub@redhat.com>
316
317 PR sanitizer/84761
318 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
319 Define if not defined.
320 (DL_INTERNAL_FUNCTION): Don't define.
321 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
322 determine at runtime whether to use regparm(3), stdcall calling
323 convention for older glibcs or normal calling convention for
324 newer glibcs for call to _dl_get_tls_static_info.
325
1422855a
SB
3262018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
327
328 * sanitizer_common/sanitizer_stacktrace.cc
329 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
330 for PowerPC SYSV ABI.
331
14e335ed
IT
3322018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
333
334 PR target/84148
335 * configure: Regenerate.
336
4c4f3c3f
ML
3372018-02-05 Martin Liska <mliska@suse.cz>
338
339 * asan/asan_flags.inc: Cherry-pick upstream r323995.
340 * asan/asan_report.cc (CheckForInvalidPointerPair):
341 Cherry-pick upstream r323995.
342
2d509539
RO
3432018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
344
345 PR sanitizer/82825
346 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
9dfc6e83 347 r324284.
2d509539 348
1f7273e5
RO
3492018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
350
351 PR sanitizer/82824
352 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
353
05abad4c
ML
3542017-12-05 Martin Liska <mliska@suse.cz>
355 Jakub Jelinek <jakub@redhat.com>
356
357 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
358 * asan/asan_descriptions.h: Likewise.
359 * asan/asan_report.cc: Likewise.
360 * asan/asan_thread.cc: Likewise.
361 * asan/asan_thread.h: Likewise.
362
9069eb28
IT
3632017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
364
365 * acinclude.m4: Add enable.m4 and cet.m4.
366 * Makefile.in: Regenerate.
367 * asan/Makefile.am: Update AM_CXXFLAGS.
368 * asan/Makefile.in: Regenerate.
369 * configure: Likewise.
370 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
371 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
372 * interception/Makefile.am: Update AM_CXXFLAGS.
373 * interception/Makefile.in: Regenerate.
374 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
375 * libbacktrace/Makefile.in: Regenerate.
376 * lsan/Makefile.am: Update AM_CXXFLAGS.
377 * lsan/Makefile.in: Regenerate.
378 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
379 AM_CCASFLAGS.
380 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
381 Add _CET_ENDBR macro.
382 * sanitizer_common/Makefile.in: Regenerate.
383 * tsan/Makefile.am: Update AM_CXXFLAGS.
384 * tsan/Makefile.in: Regenerate.
385 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
386 * ubsan/Makefile.am: Update AM_CXXFLAGS.
387 * ubsan/Makefile.in: Regenerate.
388
5925290f
JJ
3892017-11-08 Jakub Jelinek <jakub@redhat.com>
390
391 PR bootstrap/82670
392 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
393 and ubsan_signals_standalone.cc.
394 * ubsan/Makefile.in: Regenerated.
395
735e62b9
TV
3962017-11-05 Tom de Vries <tom@codesourcery.com>
397
398 PR other/82784
399 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
400 "do {} while (0)".
401 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
402
9a45ffbd
JJ
4032017-10-20 Jakub Jelinek <jakub@redhat.com>
404
405 PR sanitizer/82595
406 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
407 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
408 liblsan_preinit.o.
409 (lsan_files): Remove lsan_preinit.cc.
410 (liblsan_preinit.o): New rule.
411 * lsan/Makefile.in: Regenerated.
412
5d3805fc
JJ
4132017-10-19 Jakub Jelinek <jakub@redhat.com>
414
415 * All source files: Merge from upstream 315899.
92a285c1 416 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
5d3805fc 417 include/sanitizer/tsan_interface.h.
92a285c1 418 * asan/libtool-version: Bump the libasan SONAME.
5d3805fc
JJ
419 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
420 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
92a285c1 421 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
5d3805fc
JJ
422 sancov_flags.cc, sanitizer_allocator_checks.cc,
423 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
424 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
425 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
426 and sanitizer_coverage_mapping_libcdep.cc.
92a285c1 427 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
5d3805fc
JJ
428 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
429 (ubsan_files): Add ubsan_init_standalone.cc and
430 ubsan_signals_standalone.cc.
431 * ubsan/libtool-version: Bump the libubsan SONAME.
92a285c1
ML
432 * asan/Makefile.in: Regenerate.
433 * lsan/Makefile.in: Regenerate.
434 * sanitizer_common/Makefile.in: Regenerate.
435 * tsan/Makefile.in: Regenerate.
5d3805fc
JJ
436 * ubsan/Makefile.in: Regenerate.
437
bf4df9e6
L
4382017-10-05 H.J. Lu <hongjiu.lu@intel.com>
439
440 PR sanitizer/82379
441 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
442 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
443
d1453bec
JJ
4442017-10-02 Jakub Jelinek <jakub@redhat.com>
445
446 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
447 Define.
448
a5320f3c
JJ
4492017-08-07 Jakub Jelinek <jakub@redhat.com>
450
451 * include/system/sys/ptrace.h: New file.
452
c9b39a49
JJ
4532017-07-28 Jakub Jelinek <jakub@redhat.com>
454
455 PR sanitizer/80998
456 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
457 * ubsan/ubsan_checks.inc: Likewise.
458 * ubsan/ubsan_handlers.h: Likewise.
459
144e36a7
JJ
4602017-07-14 Jakub Jelinek <jakub@redhat.com>
461
462 PR sanitizer/81066
463 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
464 * sanitizer_common/sanitizer_linux.cc: Likewise.
465 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
466 * tsan/tsan_platform_linux.cc: Likewise.
467
d9f8c5af
ML
4682017-04-06 Martin Liska <mliska@suse.cz>
469
470 PR sanitizer/80166
471 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
472 Cherry-pick upstream r299036.
473
fd6cba40
JJ
4742017-03-22 Jakub Jelinek <jakub@redhat.com>
475
476 PR sanitizer/78158
477 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
478
9b9ad360
AT
4792017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
480
481 PR sanitizer/79562
482 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
483 upstream r294806.
484
1509524b
JJ
4852017-02-11 Jakub Jelinek <jakub@redhat.com>
486
487 PR sanitizer/79341
488 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
489 s390-linux 31-bit.
490 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
491 r294793.
492 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
493 upstream r294790.
494 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
495 r294799.
496
778e0ac3
MO
4972017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
498
499 PR sanitizer/78663
500 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
501 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
502
4997a71d
JJ
5032017-01-31 Jakub Jelinek <jakub@redhat.com>
504
505 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
506
86b2a558
JJ
5072017-01-24 Jakub Jelinek <jakub@redhat.com>
508
c831801d
JJ
509 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
510
86b2a558
JJ
511 PR sanitizer/79168
512 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
513 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
514 text.
515 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
516 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
517 * tsan/tsan_ppc_regs.h: Likewise.
518 * tsan/tsan_rtl_aarch64.S: Likewise.
519 * tsan/tsan_rtl_mips64.S: Likewise.
520 * tsan/tsan_rtl_ppc64.S: Likewise.
521
73aa401e
JJ
5222017-01-21 Jakub Jelinek <jakub@redhat.com>
523
524 PR other/79046
525 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
526 instead of cat to get version from BASE-VER file.
527 * asan/Makefile.am (gcc_version): Likewise.
528 * ubsan/Makefile.am (gcc_version): Likewise.
529 * sanitizer_common/Makefile.am (gcc_version): Likewise.
530 * lsan/Makefile.am (gcc_version): Likewise.
531 * tsan/Makefile.am (gcc_version): Likewise.
532 * interception/Makefile.in: Regenerated.
533 * asan/Makefile.in: Regenerated.
534 * ubsan/Makefile.in: Regenerated.
535 * sanitizer_common/Makefile.in: Regenerated.
536 * lsan/Makefile.in: Regenerated.
537 * tsan/Makefile.in: Regenerated.
538
3c36aa6b
JJ
5392017-01-17 Jakub Jelinek <jakub@redhat.com>
540
541 PR other/79046
542 * configure.ac: Add GCC_BASE_VER.
543 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
544 get version from BASE-VER file.
545 * libbacktrace/Makefile.in: Regenerated.
546 * interception/Makefile.in: Regenerated.
547 * asan/Makefile.in: Regenerated.
548 * ubsan/Makefile.in: Regenerated.
549 * configure: Regenerated.
550 * sanitizer_common/Makefile.in: Regenerated.
551 * lsan/Makefile.in: Regenerated.
552 * Makefile.in: Regenerated.
553 * tsan/Makefile.in: Regenerated.
554
942136a4
JC
5552017-01-10 James Clarke <jrtc27@jrtc27.com>
556
557 PR sanitizer/78992
558 * sanitizer_common/sanitizer_platform_limits_posix.h
559 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
560
11bbe995
MO
5612016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
562
563 * LOCAL_PATCHES: Add revision.
564
d61ed91e
MO
5652016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
566
567 PR sanitizer/78532
568 * sanitizer_common/sanitizer_platform_limits_posix.h
569 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
570 versions.
571
f4214e23
MT
5722016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
573
574 * LOCAL_PATCHES: Remove r242480.
575
00212843
RO
5762016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
577
578 * LOCAL_PATCHES: Add revision.
579
97448adf
RO
5802016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
581
582 PR sanitizer/78267
583 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
584 compiler supports blocks extension.
585
61a58d07
MT
5862016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
587
588 * LOCAL_PATCHES: Add revision.
589
8c32ae0e
MT
5902016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
591
592 PR sanitizer/78294
593 * tsan/tsan_rtl.cc: Add missing attribute.
594
949cc52d
MO
5952016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
596
597 * LOCAL_PATCHES: New file.
598
511c8687
MO
5992016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
600
601 PR sanitizer/78307
602 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
603 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
604 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
605 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
606 function.
607 (__ubsan_handle_cfi_bad_type_abort): Likewise.
608 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
609 (__ubsan_handle_cfi_bad_type): Export function.
610 (__ubsan_handle_cfi_bad_type_abort): Likewise.
611 * HOWTO_MERGE: Update documentation.
612
84c1b9d3
MK
6132016-11-15 Matthias Klose <doko@ubuntu.com>
614
615 * configure: Regenerate.
616
8f16b6ca
MO
6172016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
618
619 * asan/asan_globals.cc (RegisterGlobal): Do not call
620 CheckODRViolationViaPoisoning.
621 (CheckODRViolationViaPoisoning): Remove.
622
789306de
MO
6232016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
624
625 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
626 compiled code with GCC when extracting the caller PC for ARM if no
627 valid frame pointer is available.
628
fe7913f6
MO
6292016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
630
631 PR sanitizer/63958
632 Reapply:
633 2014-10-14 David S. Miller <davem@davemloft.net>
634
635 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
636 Define at __kernel_time_t, as needed for sparc.
637 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
638 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
639 (__sanitizer): Define struct___old_kernel_stat_sz,
640 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
641 (__sanitizer_ipc_perm): Adjust for sparc targets.
642 (__sanitizer_shmid_ds): Likewsie.
643 (__sanitizer_sigaction): Likewise.
644 (IOC_SIZE): Likewsie.
645
10189819
MO
6462016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
647
648 * All source files: Merge from upstream 285547.
649 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
650 variable.
651 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
652 * asan/Makefile.am (asan_files): Add new files.
653 * asan/Makefile.in: Regenerate.
654 * ubsan/Makefile.in: Likewise.
655 * lsan/Makefile.in: Likewise.
656 * tsan/Makefile.am (tsan_files): Add new files.
657 * tsan/Makefile.in: Regenerate.
658 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
659 (EXTRA_libsanitizer_common_la_SOURCES): Define.
660 (libsanitizer_common_la_LIBADD): Likewise.
661 (libsanitizer_common_la_DEPENDENCIES): Likewise.
662 * sanitizer_common/Makefile.in: Regenerate.
663 * interception/Makefile.in: Likewise.
664 * libbacktace/Makefile.in: Likewise.
665 * Makefile.in: Likewise.
666 * configure: Likewise.
667 * merge.sh: Handle builtins/assembly.h merging.
668 * builtins/assembly.h: New file.
669 * asan/libtool-version: Bump the libasan SONAME.
670
aef6a97c
JJ
6712016-09-21 Jakub Jelinek <jakub@redhat.com>
672
673 PR sanitizer/77567
674 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
675
0ce48391
JJ
6762016-09-05 Jakub Jelinek <jakub@redhat.com>
677
678 PR sanitizer/77396
679 * asan/asan_globals.cc: Cherry-pick upstream r280657.
680
e23a7a99
JJ
6812016-08-12 Jakub Jelinek <jakub@redhat.com>
682
683 PR sanitizer/71042
684 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
685 * tsan/tsan_rtl_aarch64.S: Likewise.
686
aa00995c
AM
6872016-07-23 Alan Modra <amodra@gmail.com>
688
689 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
690 * configure.ac: Don't substitute OBSTACK_DEFS.
691 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
692 * tsan/Makefile.am: Likewise.
693 * configure: Regenerate.
694 * Makefile.in: Regenerate.
695 * asan/Makefile.in: Regenerate.
696 * interception/Makefile.in: Regenerate.
697 * libbacktrace/Makefile.in: Regenerate.
698 * lsan/Makefile.in: Regenerate.
699 * sanitizer_common/Makefile.in: Regenerate.
700 * tsan/Makefile.in: Regenerate.
701 * ubsan/Makefile.in: Regenerate.
702
69af4eec
JJ
7032016-05-17 Jakub Jelinek <jakub@redhat.com>
704
705 PR sanitizer/71160
706 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
707 and r269633.
708
fefddbef
MO
7092016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
710
711 PR sanitizer/70624
712 * asan/asan_mac.cc: Cherry pick upstream r266868.
713
e4729419
JJ
7142016-01-19 Jakub Jelinek <jakub@redhat.com>
715
716 PR sanitizer/68824
717 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
718 InitializeInterceptors): Cherry pick upstream r258119.
719
bf93d543
AT
7202016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
721
722 * configure.ac: Replace the hard-coded -ldl requirement for
723 link_sanitizer_common with a configure time check for -ldl.
724 * configure: Regenerate.
725
9211bbb2
MO
7262015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
727
728 * include/system/linux/asm/ptrace.h: Move to ...
729 * include/system/asm/ptrace.h: ... this.
730
664dd3cf
MO
7312015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
732
733 * include/system/linux/asm/ptrace.h: New header.
734
55aea9f5
MO
7352015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
736
737 * All source files: Merge from upstream r253555.
738 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
739 dependences for TSan for aarch64-*-linux* targets.
740 * tsan/Makefile.am: Add new source files.
741 * configure: Regenerate.
742 * tsan/Makefile.in: Likewise.
743
62c0f0a6
AM
7442015-11-09 Alan Modra <amodra@gmail.com>
745
746 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
747 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
748 interceptors.
749 * configure.ac: Substitute OBSTACK_DEFS.
750 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
751 * tsan/Makefile.am: Likewise.
752 * configure: Regenerate.
753 * Makefile.in: Regenerate.
754 * asan/Makefile.in: Regenerate.
755 * interception/Makefile.in: Regenerate.
756 * libbacktrace/Makefile.in: Regenerate.
757 * lsan/Makefile.in: Regenerate.
758 * sanitizer_common/Makefile.in: Regenerate.
759 * tsan/Makefile.in: Regenerate.
760 * ubsan/Makefile.in: Regenerate.
761
692b1131
MO
7622015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
763
764 PR bootstrap/68041
765 * configure.ac (link_sanitizer_common): Link against librt only if it
766 contains shm_open, required by sanitizers.
767 (CXX_ABI_NEEDED): Remove variable.
768 * configure: Regenerate.
769 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
770 * ubsan/Makefile.in: Regenerate.
771
7047bc9c
MO
7722015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
773
774 * HOWTO_MERGE: New file.
775
21d61063
MO
7762015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
777
778 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
779 compiled code with GCC when extracting the caller PC for ARM if no
780 valid frame pointer is available.
781
15ebe1fe
MO
7822015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
783
784 PR bootstrap/63888
785 Reapply:
786 2015-02-20 Jakub Jelinek <jakub@redhat.com>
787
788 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
789 support until it is rewritten upstream.
790
791 * c-c++-common/asan/pr63888.c: New test.
792
0d57d3e0
MO
7932015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
794
795 PR sanitizer/63958
796 Reapply:
797 2014-10-14 David S. Miller <davem@davemloft.net>
798
799 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
800 Define at __kernel_time_t, as needed for sparc.
801 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
802 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
803 (__sanitizer): Define struct___old_kernel_stat_sz,
804 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
805 (__sanitizer_ipc_perm): Adjust for sparc targets.
806 (__sanitizer_shmid_ds): Likewsie.
807 (__sanitizer_sigaction): Likewise.
808 (IOC_SIZE): Likewsie.
809
696d846a
MO
8102015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
811
812 * All source files: Merge from upstream r250806.
813 * configure.ac (link_sanitizer_common): Add -lrt flag.
814 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
815 Set USE_CXX_ABI_FLAG=true for darwin.
816 * asan/Makefile.am (asan_files): Add new files.
817 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
818 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
819 * asan/Makefile.in: Regenerate.
820 * ubsan/Makefile.am (ubsan_files): Add new files.
821 (DEFS): Add DCAN_SANITIZE_UB=1.
822 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
823 * ubsan/Makefile.in: Regenerate.
824 * tsan/Makefile.am (tsan_files): Add new files.
825 (DEFS): Add DCAN_SANITIZE_UB=0.
826 * tsan/Makefile.in: Regenerate.
827 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
828 * sanitizer_common/Makefile.in: Regenerate.
829 * asan/libtool-version: Bump the libasan SONAME.
830
1842a04c
MT
8312015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
832
833 PR sanitizer/67258
834 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
835
97d8f801
MT
8362015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
837
838 PR sanitizer/63927
839 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
840 for PowerPC.
841
3d61d875
BS
8422015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
843
844 PR sanitizer/63927
845 * sanitizer_common/sanitizer_stacktrace.cc
846 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
847 find the link register at an offset of 16 from the base of the
848 caller's stack frame.
849
f3915b42
MH
8502015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
851
852 * Makefile.in: Regenerated with automake-1.11.6.
853 * aclocal.m4: Likewise.
854 * asan/Makefile.in: Likewise.
855 * configure: Likewise.
856 * interception/Makefile.in: Likewise.
857 * libbacktrace/Makefile.in: Likewise.
858 * lsan/Makefile.in: Likewise.
859 * sanitizer_common/Makefile.in: Likewise.
860 * tsan/Makefile.in: Likewise.
861 * ubsan/Makefile.in: Likewise.
862
d041a6fc
YG
8632015-04-13 Yury Gribov <y.gribov@samsung.com>
864
865 PR sanitizer/64839
866 * sanitizer_common/sanitizer_platform.h: Cherry pick
867 upstream r234470.
868 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
869 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
870 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
871 * Makefile.in: Regenerate.
872 * asan/Makefile.in: Regenerate.
873 * config.h.in: Regenerate.
874 * configure: Regenerate.
875 * interception/Makefile.in: Regenerate.
876 * libbacktrace/Makefile.in: Regenerate.
877 * lsan/Makefile.in: Regenerate.
878 * sanitizer_common/Makefile.in: Regenerate.
879 * tsan/Makefile.in: Regenerate.
880 * ubsan/Makefile.in: Regenerate.
881
882
d886f7cc
CL
8832015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
884
885 PR sanitizer/59009
886 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
887 upstream r230324.
888 * sanitizer_common/sanitizer_platform.h: Likewise.
889 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
890
563fb64a
BE
8912015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
892
893 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
894 upstream 224508 and 224755.
895
ee876e59
JJ
8962015-03-09 Jakub Jelinek <jakub@redhat.com>
897
898 PR sanitizer/63958
899 Reapply:
900 2014-10-14 David S. Miller <davem@davemloft.net>
901
902 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
903 Define at __kernel_time_t, as needed for sparc.
904 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
905 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
906 (__sanitizer): Define struct___old_kernel_stat_sz,
907 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
908 (__sanitizer_ipc_perm): Adjust for sparc targets.
909 (__sanitizer_shmid_ds): Likewsie.
910 (__sanitizer_sigaction): Likewise.
911 (IOC_SIZE): Likewsie.
912
6ad0611b
PB
9132015-02-27 Peter Bergner <bergner@vnet.ibm.com>
914
915 * configure.tgt: Enable build on powerpc*le-*-linux.
916
09901e8a 9172015-02-23 Jakub Jelinek <jakub@redhat.com>
86ee2038
JJ
918
919 PR bootstrap/63888
920 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
921 support until it is rewritten upstream.
922
94213c10
MK
9232015-01-26 Matthias Klose <doko@ubuntu.com>
924
925 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
926 * configure: Regenerate.
927
8790f572
VK
9282015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
929
94213c10 930 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
8790f572 931 * configure: Regenerate.
94213c10 932 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
8790f572 933
b0edd457
VK
9342015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
935
936 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
937 * configure: Regenerate.
938 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
939 (libtsan_la_DEPENDENCIES): Likewise.
940 * Makefile.in: Regenerate.
941 * asan/Makefile.in: Regenerate.
942 * interception/Makefile.in: Regenerate.
943 * libbacktrace/Makefile.in: Regenerate.
944 * lsan/Makefile.in: Regenerate.
945 * sanitizer_common/Makefile.in: Regenerate.
946 * tsan/Makefile.in: Regenerate.
947 * ubsan/Makefile.in: Regenerate.
948
19ac475f
JJ
9492015-01-22 Jakub Jelinek <jakub@redhat.com>
950
951 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
952
8b08ef25
JJ
9532015-01-21 Jakub Jelinek <jakub@redhat.com>
954
955 PR sanitizer/64435
956 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
957 upstream r226637.
958 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
959 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
960
3ea36418
JJ
9612015-01-20 Jakub Jelinek <jakub@redhat.com>
962
963 PR sanitizer/64632
964 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
965
9deaf59d
JJ
9662015-01-19 Jakub Jelinek <jakub@redhat.com>
967
968 PR sanitizer/64435
969 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
970 upstream r223925.
971
b6a8bacc
JJ
9722015-01-13 Jakub Jelinek <jakub@redhat.com>
973
974 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
975 upstream r224518 and r224519.
976 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
977 r224834.
978
f2798565
JJ
9792014-12-16 Jakub Jelinek <jakub@redhat.com>
980
981 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
982 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
983 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
984 upstream r224308.
985
a699d672
L
9862014-11-21 H.J. Lu <hongjiu.lu@intel.com>
987
988 PR bootstrap/63784
989 * configure: Regenerated.
990
7697b16f
JJ
9912014-11-21 Jakub Jelinek <jakub@redhat.com>
992
993 PR target/61137
994 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
995 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
996
7f201a67
UB
9972014-11-14 Uros Bizjak <ubizjak@gmail.com>
998
999 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
1000 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
1001 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
1002 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
1003 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
1004 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
1005 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
1006 * sanitizer_common/Makefile.in: Regenerate.
1007 * asan/Makefile.in: Ditto.
1008 * lsan/Makefile.in: Ditto.
1009 * interception/Makefile.in: Ditto.
1010 * tsan/Makefile.in: Ditto.
1011 * libbacktrace/Makefile.in: Ditto.
1012 * ubsan/Makefile.in: Ditto.
1013
c5be964a
KS
10142014-11-13 Kostya Serebryany <kcc@google.com>
1015
1016 * All source files: Merge from upstream r221802.
1017 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
1018 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
1019 with 'start' to follow the new interface.
1020 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1021 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1022 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1023 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1024 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1025 files.
1026 (AM_CXXFLAGS): Added -std=c++11.
1027 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1028 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1029 * asan/Makefile.in: Regenerate.
1030 * interception/Makefile.in: Regenerate.
1031 * libbacktrace/Makefile.in: Regenerate.
1032 * lsan/Makefile.in: Regenerate.
1033 * sanitizer_common/Makefile.in: Regenerate.
1034 * tsan/Makefile.in: Regenerate.
1035 * ubsan/Makefile.in: Regenerate.
1036
ebf6d33b
FXC
10372014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1038
1039 PR target/63610
1040 * configure: Regenerate.
1041
d13fc1ed
ML
10422014-10-16 Martin Liska <mliska@suse.cz>
1043
1044 * asan/Makefile.am: IPA ICF pass is disabled.
1045 * asan/Makefile.in: Likewise.
1046
c8473336
DM
10472014-10-14 David S. Miller <davem@davemloft.net>
1048
1049 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1050 Define at __kernel_time_t, as needed for sparc.
1051 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1052 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1053 (__sanitizer): Define struct___old_kernel_stat_sz,
1054 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1055 (__sanitizer_ipc_perm): Adjust for sparc targets.
1056 (__sanitizer_shmid_ds): Likewsie.
1057 (__sanitizer_sigaction): Likewsie.
1058 (IOC_SIZE): Likewsie.
1059
694b4cfa
JJ
10602014-10-14 Jakub Jelinek <jakub@redhat.com>
1061
1062 * ubsan/Makefile.am (DEFS): Add -DPIC.
1063 * ubsan/Makefile.in: Regenerated.
1064
a3125fc2
CL
10652014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
1066
1067 * configure.tgt: Enable build on aarch64*-linux.
1068
866e32ad
KS
10692014-09-19 Kostya Serebryany <kcc@google.com>
1070
1071 * All source files: Merge from upstream r218156.
1072 * asan/Makefile.am (asan_files): Added new files.
1073 * asan/Makefile.in: Regenerate.
1074 * ubsan/Makefile.am (ubsan_files): Added new files.
1075 * ubsan/Makefile.in: Regenerate.
1076 * tsan/Makefile.am (tsan_files): Added new files.
1077 * tsan/Makefile.in: Regenerate.
1078 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1079 files.
1080 * sanitizer_common/Makefile.in: Regenerate.
1081 * asan/libtool-version: Bump the libasan SONAME.
1082
126edc3f
JJ
10832014-09-10 Jakub Jelinek <jakub@redhat.com>
1084
1085 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
1086 upstream r215485, r217389, r217391 and r217400.
1087
0d807c80
PC
10882014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
1089
1090 * sanitizer_common/sanitizer_common_interceptors.inc:
1091 Cherry pick upstream r211008.
1092
4622301b
RB
10932014-06-11 Richard Biener <rguenther@suse.de>
1094
1095 * asan/asan_linux.cc: Cherry pick upstream r210012.
1096
ecd5543f
JJ
10972014-05-30 Jakub Jelinek <jakub@redhat.com>
1098
1099 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
1100 r209879.
1101 * sanitizer_common/sanitizer_common.h: Likewise.
1102 * asan/asan_mapping.h: Likewise.
1103 * asan/asan_linux.cc: Likewise.
1104 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
1105 * sanitizer_common/sanitizer_allocator.h: Likewise.
1106
85a16bf8
MP
11072014-05-23 Marek Polacek <polacek@redhat.com>
1108
1109 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
1110 floating-point types.
1111
dee5ea7a
KS
11122014-05-22 Kostya Serebryany <kcc@google.com>
1113
1114 * All source files: Merge from upstream r209283.
1115 * asan/Makefile.am (asan_files): Added new files.
1116 * asan/Makefile.in: Regenerate.
1117 * tsan/Makefile.am (tsan_files): Added new files.
1118 * tsan/Makefile.in: Regenerate.
0d807c80
PC
1119 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1120 files.
dee5ea7a
KS
1121 * sanitizer_common/Makefile.in: Regenerate.
1122
2675305b
YG
11232014-05-14 Yury Gribov <y.gribov@samsung.com>
1124
1125 PR sanitizer/61100
1126 * Makefile.am (nodist_saninclude_HEADERS): Install
1127 public headers.
1128 * Makefile.in: Regenerate.
1129
a6c9ab4e
RO
11302014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1131
1132 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1133 Add ../../libbacktrace/sort.c.
1134 * libbacktrace/Makefile.in: Regenerate.
1135 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1136
a42a7046
BS
11372014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1138
1139 * configure.tgt: Unsupported for little endian PowerPC for now.
1140
5ab39ec3
JJ
11412014-02-04 Jakub Jelinek <jakub@redhat.com>
1142
81c87471
JJ
1143 PR sanitizer/60055
1144 * tsan/tsan_flags.cc (__tsan_default_options): Add
1145 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
1146 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1147
5ab39ec3
JJ
1148 PR sanitizer/60038
1149 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1150 sanitizer_atomic.h and unistd.h.
1151 (kThreadDescriptorSize): Made static, remove initializer and const,
1152 change type to atomic_uintptr_t.
1153 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1154 query glibc version, compute kThreadDescriptorSize depending on
1155 glibc version minor number.
1156 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1157 kThreadDescriptorSize directly.
1158
4a7eaf5f
YG
11592014-01-23 Yury Gribov <y.gribov@samsung.com>
1160 Jakub Jelinek <jakub@redhat.com>
1161
1162 PR sanitizer/57316
1163 * configure.ac: Check for missing syscalls.
1164 * Makefile.am: Likewise.
1165 * configure: Regenerate.
1166 * Makefile.in: Regenerate.
1167
2613419a
JJ
11682014-01-09 Jakub Jelinek <jakub@redhat.com>
1169
b5f58ba3
JJ
1170 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1171 (LibbacktraceSymbolizer::Demangle): New declaration.
1172 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1173 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1174 method if possible.
1175 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1176 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1177 (struct CplusV3DemangleData): New type.
1178 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1179 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1180 SymbolizeDataCallback): Use CplusV3Demangle.
1181 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1182 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1183 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1184 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1185 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1186 cplus_demangle_init_info, cplus_demangle_mangled_name,
1187 cplus_demangle_operators, cplus_demangle_print,
1188 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1189 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1190 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1191 Define.
1192 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1193 (memcmp, strncmp): Redefine.
1194 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1195 ../../libiberty/cp-demangle.c.
1196 * libbacktrace/bridge.cc (__asan_internal_memcmp,
1197 __asan_internal_strncmp): New functions.
1198 * sanitizer_common/Makefile.in: Regenerated.
1199 * libbacktrace/Makefile.in: Regenerated.
1200 * configure: Regenerated.
1201 * configure.ac: Regenerated.
1202 * config.h.in: Regenerated.
1203
2613419a
JJ
1204 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1205 -isystem $(top_srcdir)/include/system.
1206 * sanitizer_common/Makefile.in: Regenerated.
1207 * include/system/linux/aio_abi.h: New header.
1208 * include/system/linux/mroute.h: New header.
1209 * include/system/linux/mroute6.h: New header.
1210 * include/system/linux/perf_event.h: New header.
1211 * include/system/linux/types.h: New header.
c915a581
JJ
1212
1213 PR sanitizer/59136
1214 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1215 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1216 and -I/-include flags.
1217 * lsan/Makefile.am (liblsan_la_LIBADD): Add
1218 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1219 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1220 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1221 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1222 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1223 libbacktrace.
1224 * README.gcc: Document that also lsan and ubsan are
1225 maintained in compiler-rt upstream.
1226 * libbacktrace/Makefile.am: New file.
1227 * libbacktrace/backtrace-rename.h: New file.
1228 * libbacktrace/backtrace-supported.h.in: New file.
1229 * libbacktrace/bridge.cc: New file.
1230 * configure.ac: Add tests needed for libbacktrace build
1231 within libsanitizer.
1232 * sanitizer_common/Makefile.in: Regenerated.
1233 * lsan/Makefile.in: Regenerated.
1234 * tsan/Makefile.in: Regenerated.
1235 * ubsan/Makefile.in: Regenerated.
1236 * libbacktrace/Makefile.in: Generated.
1237 * config.h.in: Regenerated.
1238 * configure: Regenerated.
1239 * Makefile.in: Regenerated.
1240 * interception/Makefile.in: Regenerated.
1241 * asan/Makefile.in: Regenerated.
1242 * aclocal.m4: Regenerated.
1243
409f3b46
KS
12442013-12-19 Kostya Serebryany <kcc@google.com>
1245
92a285c1 1246 * sanitizer_common/sanitizer_platform_limits_posix.cc:
409f3b46
KS
1247 workaround for missing definition of EOWNERDEAD, backport
1248 from upstream r196779.
1249
079db27b
L
12502013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1251
1252 * sanitizer_common/sanitizer_platform_limits_posix.h
1253 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1254 (__sanitizer_clock_t): Use long long for x32.
1255
7efb96c0
L
12562013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1257
1258 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1259 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1260 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1261
df9d1700
L
12622013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1263
1264 * configure.ac (link_sanitizer_common): Add -lm.
1265 * configure: Regenerated.
1266
c4c16f74
KS
12672013-12-05 Kostya Serebryany <kcc@google.com>
1268
1269 * All source files: Merge from upstream r196489.
1270 * merge.sh: Add *.S to the list of merged files.
1271
666ee4d6
YG
12722013-12-05 Yury Gribov <y.gribov@samsung.com>
1273
1274 PR sanitizer/59368
1275 * Makefile.am (gcc_version): Added gcc_version.
1276 * Makefile.in: Regenerate.
1277
df77f0e4
KS
12782013-12-05 Kostya Serebryany <kcc@google.com>
1279
1280 * All source files: Merge from upstream r196090.
1281 * tsan/Makefile.am (tsan_files): Added new files.
1282 * tsan/Makefile.in: Regenerate.
1283 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1284 * sanitizer_common/Makefile.in: Regenerate.
1285 * lsan/Makefile.am (lsan_files): Added new files.
1286 * lsan/Makefile.in: Regenerate.
1287
35814b03
JJ
12882013-11-29 Jakub Jelinek <jakub@redhat.com>
1289 Yury Gribov <y.gribov@samsung.com>
1290
1291 PR sanitizer/59063
1292 * libsanitizer.spec.in: Add spec file to hold link flags for
1293 various sanitizer libs.
1294 * configure.ac: Check whether clock_* routines come from librt.
1295 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1296 configure.ac.
1297 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1298 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1299 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1300 * asan/Makefile.in: Regenerate.
1301 * interception/Makefile.in: Regenerate.
1302 * lsan/Makefile.in: Regenerate.
1303 * sanitizer_common/Makefile.in: Regenerate.
1304 * tsan/Makefile.in: Regenerate.
1305 * ubsan/Makefile.in: Regenerate.
1306 * Makefile.in: Regenerate.
1307 * configure: Regenerate.
1308
049558ed
JJ
13092013-11-28 Jakub Jelinek <jakub@redhat.com>
1310 Yury Gribov <y.gribov@samsung.com>
1311
1312 PR sanitizer/59106
1313 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1314 don't need it.
1315 * ubsan/Makefile.in: Regenerated.
1316
9065ada9
JJ
13172013-11-22 Jakub Jelinek <jakub@redhat.com>
1318
1319 PR sanitizer/59061
1320 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1321 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1322 * configure: Regenerated.
1323 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1324 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1325 * lsan/Makefile.in: Regenerated.
1326
486294d4
MS
13272013-11-22 Mike Stump <mikestump@comcast.net>
1328
1329 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1330 change from upstream to fix build.
1331
2621c860
YG
13322013-11-18 Yury Gribov <y.gribov@samsung.com>
1333
1334 PR sanitizer/59106
1335 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1336 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1337 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1338 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1339 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1340 * asan/Makefile.in: Regenerate.
1341 * interception/Makefile.in: Regenerate.
1342 * tsan/Makefile.in: Regenerate.
1343 * lsan/Makefile.in: Regenerate.
1344 * sanitizer_common/Makefile.in: Regenerate.
1345
c8e1377b
KS
13462013-11-15 Kostya Serebryany <kcc@google.com>
1347
1348 PR sanitizer/58994
92a285c1
ML
1349 Backport from upstream revision 194573
1350 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1351 back to the original functions in the common libsanitizer
1352 interceptors and the __cxa_atexit() interceptor on Darwin.
c8e1377b 1353
c3d77f3a
PB
13542013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1355
1356 PR sanitizer/59009
1357 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1358 ifdef out more source.
1359
d00106f4
JJ
13602013-11-12 Jakub Jelinek <jakub@redhat.com>
1361
1362 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1363 ifdef out almost the whole source.
1364 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1365
e276866f
L
13662013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1367
1368 PR sanitizer/59018
1369 * sanitizer_common/sanitizer_platform_limits_posix.cc
1370 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1371 defined.
1372
f5c36cfc
L
13732013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 PR sanitizer/59018
1376 * sanitizer_common/sanitizer_platform_limits_linux.cc
1377 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1378 defined.
1379 * sanitizer_common/sanitizer_platform_limits_posix.h
1380 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1381 defined.
1382 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1383 is defined.
1384 (__sanitizer___kernel_gid_t): Likewise.
1385 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1386 is defined.
1387
e45de14e
L
13882013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1389
1390 PR sanitizer/59018
1391 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1392 2 64-bit integers to save and restore fn and arg. Properly load
1393 newtls/child_tidptr into r8/r10.
1394
38693e39
L
13952013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1396
1397 PR sanitizer/59018
1398 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1399 internal_munmap, internal_open, internal_read, internal_write,
1400 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1401 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1402 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1403 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1404
ef1b3fda
KS
14052013-11-04 Kostya Serebryany <kcc@google.com>
1406
1407 * All source files: Merge from upstream r191666.
1408 * merge.sh: Added lsan.
1409 * configure.ac (AC_CONFIG_FILES): Added lsan.
1410 * Makefile.am (SUBDIRS): Added lsan.
1411 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1412 * asan/Makefile.am (asan_files): Added new files.
1413 (libasan_la_LIBADD): Added a dependency on lsan.
1414 * lsan/Makefile.am: New file.
1415 * asan/Makefile.in: Regenerate.
1416 * lsan/Makefile.in: Regenerate.
1417 * Makefile.in: Regenerate.
1418 * configure: Regenerate.
1419 * sanitizer_common/Makefile.in: Regenerate.
1420
3cbe17f7
AM
14212013-09-20 Alan Modra <amodra@gmail.com>
1422
1423 * configure: Regenerate.
1424
0cea211e
IS
14252013-09-01 Iain Sandoe <iain@codesourcery.com>
1426
1427 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1428 libinterception.la for Darwin.
1429 * ubsan/Makefile.in: Regenerate.
1430
de5a5fa1
MP
14312013-08-30 Jakub Jelinek <jakub@redhat.com>
1432
1433 * Makefile.am (SUBDIRS): Add ubsan.
1434 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1435 * merge.sh: Merge ubsan.
1436 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1437 * sanitizer_common/sanitizer_printf.cc: Likewise.
1438 * sanitizer_common/sanitizer_common.h: Likewise.
1439 * ubsan: New directory. Import ubsan runtime from llvm.
1440
634cfa2b
CL
14412013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1442
1443 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1444 Cherry pick upstream r182922.
1445
8a5800b8
CL
14462013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1447
1448 * configure.tgt: Add ARM pattern.
1449
a745e444 14502013-03-22 Jakub Jelinek <jakub@redhat.com>
1868beee
JJ
1451
1452 PR other/43620
1453 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1454 * Makefile.in: Regenerated.
1455 * asan/Makefile.in: Regenerated.
1456 * interception/Makefile.in: Regenerated.
1457 * sanitizer_common/Makefile.in: Regenerated.
1458 * tsan/Makefile.in: Regenerated.
1459
4c376126
JJ
14602013-02-28 Jakub Jelinek <jakub@redhat.com>
1461
1462 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1463 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1464 0x4fffffffffULL.
1465
7d613735
JJ
14662013-02-22 Jakub Jelinek <jakub@redhat.com>
1467
1468 PR sanitizer/56393
1469 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1470 libasan_preinit.o.
1471 (libasan_preinit.o): Depend on asan_preinit.o.
1472 * asan/Makefile.in: Regenerated.
1473 * asan/asan_preinit.cc: New file, synced from upstream.
1474 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1475
ecdbd01a 14762013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
304886c5
JH
1477
1478 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1479 dynamic/asan_interceptors_dynamic.cc.
1480 * asan/Makefile.in: Regenerated.
1481 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1482
4be7da26
JJ
14832013-02-21 Jakub Jelinek <jakub@redhat.com>
1484
1485 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1486 defined. Add used attribute.
1487
7df59255
KS
14882013-02-21 Kostya Serebryany <kcc@google.com>
1489
1490 * All source files: Merge from upstream r175733.
1491 * sanitizer_common/Makefile.am: Added a new file.
1492 * sanitizer_common/Makefile.in: Regenerated.
1493
8afd2ed7
L
14942013-02-14 H.J. Lu <hongjiu.lu@intel.com>
1495
1496 PR bootstrap/56327
1497 * interception/interception.h (OFF_T): Merged from upstream
1498 r175140.
1499
6422242b
JJ
15002013-02-13 Jakub Jelinek <jakub@redhat.com>
1501
1502 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1503
b4ab7d34
KS
15042013-02-13 Kostya Serebryany <kcc@google.com>
1505
8afd2ed7 1506 PR sanitizer/56128
b4ab7d34
KS
1507 * All source files: Merge from upstream r175049.
1508 * interception/Makefile.am: added include path.
1509 * interception/Makefile.in: Regenerated.
1510
34dc17ed
JH
15112013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
1512
1513 * configure.tgt: Disable build on darwin9 and earlier.
1514
2660d12d
KS
15152013-01-23 Kostya Serebryany <kcc@google.com>
1516
8afd2ed7 1517 PR sanitizer/55989
2660d12d
KS
1518 * All source files: Merge from upstream r173241.
1519 * merge.sh: Support merging .inc files.
1520
19006c45
JJ
15212013-01-16 Jakub Jelinek <jakub@redhat.com>
1522
1523 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1524 -Wno-c99-extensions.
1525 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1526 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1527 * sanitizer_common/Makefile.in: Regenerated.
1528 * interception/Makefile.in: Regenerated.
1529 * asan/Makefile.in: Regenerated.
1530
edadb734
WM
15312013-01-10 Wei Mi <wmi@google.com>
1532
1533 PR sanitizer/55488
1534 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1535 * tsan/Makefile.in: Regenerated.
1536 * tsan/tsan_rtl.h: Enable HACKY_CALL.
1537
e9772e16
KS
15382013-01-10 Kostya Serebryany <kcc@google.com>
1539
1540 * All source files: Merge from upstream r171973.
1541 * sanitizer_common/Makefile.am: Added new files.
1542 * asan/Makefile.am: Likewise.
1543 * tsan/Makefile.am: Likewise.
1544 * sanitizer_common/Makefile.in: Regenerated.
1545 * asan/Makefile.in: Likewise.
1546 * tsan/Makefile.in: Likewise.
1547
7f7162cf
L
15482013-01-07 H.J. Lu <hongjiu.lu@intel.com>
1549
1550 * asan/Makefile.am (libasan_la_LIBADD): Replace
1551 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1552 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1553 * Makefile.in: Regenerated.
1554 * configure: Likewise.
1555 * asan/Makefile.in: Likewise.
1556 * interception/Makefile.in: Likewise.
1557 * sanitizer_common/Makefile.in: Likewise.
1558 * tsan/Makefile.in: Likewise.
1559
b488a2c7
L
15602012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1561
1562 * Makefile.am (AM_MAKEFLAGS): Restored.
1563 * interception/Makefile.am: Likewise.
1564 * sanitizer_common/Makefile.am: Likewise.
1565 * tsan/Makefile.am: Likewise.
1566 * Makefile.in: Regenerated.
1567 * asan/Makefile.in: Likewise.
1568 * interception/Makefile.in: Likewise.
1569 * sanitizer_common/Makefile.in: Likewise.
1570 * tsan/Makefile.in: Likewise.
1571
e8adb21b
L
15722012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1573
1574 * Makefile.am (MAKEOVERRIDES): Restored.
1575 * asan/Makefile.am: Likewise.
1576 * interception/Makefile.am: Likewise.
1577 * sanitizer_common/Makefile.am: Likewise.
1578 * tsan/Makefile.am: Likewise.
1579 * Makefile.in: Regenerated.
1580 * asan/Makefile.in: Likewise.
1581 * interception/Makefile.in: Likewise.
1582 * sanitizer_common/Makefile.in: Likewise.
1583 * tsan/Makefile.in: Likewise.
1584
e1e953d9
L
15852012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1586
1587 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1588 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1589 * Makefile.in: Regenerated.
1590 * configure: Likewise.
1591 * asan/Makefile.in: Likewise.
1592 * interception/Makefile.in: Likewise.
1593 * sanitizer_common/Makefile.in: Likewise.
1594 * tsan/Makefile.in: Likewise.
1595
a62d3903
L
15962012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1597
1598 * Makefile.am (AM_MAKEFLAGS): Removed.
1599 (MAKEOVERRIDES): Likewise.
1600 * asan/Makefile.am: Likewise.
1601 * interception/Makefile.am: Likewise.
1602 * sanitizer_common/Makefile.am: Likewise.
1603 * tsan/Makefile.am: Likewise.
1604 * Makefile.in: Regenerated.
1605 * asan/Makefile.in: Likewise.
1606 * interception/Makefile.in: Likewise.
1607 * sanitizer_common/Makefile.in: Likewise.
1608 * tsan/Makefile.in: Likewise.
1609
d10a2df2
L
16102012-12-11 H.J. Lu <hongjiu.lu@intel.com>
1611
1612 PR sanitizer/55533
1613 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1614 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1615 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1616 (AM_MAKEFLAGS): Remove CC and CXX.
1617 * interception/Makefile.am: Likewise.
1618 * sanitizer_common/Makefile.am: Likewise.
1619 * tsan/Makefile.am: Likewise.
1620 * Makefile.in: Regenerated.
1621 * aclocal.m4: Likewise.
1622 * configure: Likewise.
1623 * asan/Makefile.in: Likewise.
1624 * interception/Makefile.in: Likewise.
1625 * sanitizer_common/Makefile.in: Likewise.
1626 * tsan/Makefile.in: Likewise.
1627
957fee09
PB
16282012-12-06 Peter Bergner <bergner@vnet.ibm.com>
1629
1630 * configure.tgt: Enable build on powerpc*-linux.
1631
ecdbd01a 16322012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
3157880f
JH
1633
1634 PR 55599/sanitizer
d10a2df2
L
1635 * configure.ac: Set enable_static=no on darwin.
1636 * configure: Regenerated.
3157880f 1637
695edbac
KS
16382012-12-06 Kostya Serebryany <kcc@google.com>
1639
1640 * All files: Merge from upstream r169392.
1641
a0408454
KS
16422012-12-05 Kostya Serebryany <kcc@google.com>
1643
1644 * All files: Merge from upstream r169371.
1645
41d37c56 16462012-12-04 Kostya Serebryany <kcc@google.com>
ecdbd01a 1647 Jack Howarth <howarth@bromo.med.uc.edu>
8c4d267c
KS
1648
1649 PR 55521/sanitizer
1650 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1651 * Makefile.am: Don't build interception subdir when
1652 USING_MAC_INTERPOSE defined.
1653 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1654 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1655 Compile asan_interceptors_dynamic.cc but not libinterception
1656 when USING_MAC_INTERPOSE defined.
1657 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1658 * configure: Regenerated.
1659 * Makefile.in: Likewise.
1660 * asan/Makefile.in: Likewise.
1661 * interception/Makefile.in: Likewise.
1662 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1663 * asan/asan_mac.cc: Likewise.
1664 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1665 and use MISSING_BLOCKS_SUPPORT.
1666 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1667 * interception/mach_override/LICENSE.txt: Remove unused file.
1668 * interception/mach_override/mach_override.c: Likewise.
1669 * interception/mach_override/mach_override.h: Likewise.
1670 * interception/mach_override: Remove unused directory.
1671
a23ed040
L
16722012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1673
1674 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1675 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1676 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1677 files.
1678 (AM_MAKEFLAGS): Restore CC and CXX.
1679 * interception/Makefile.am: Likewise.
1680 * sanitizer_common/Makefile.am: Likewise.
1681 * tsan/Makefile.am: Likewise.
1682 * Makefile.in: Regenerated.
1683 * aclocal.m4: Likewise.
1684 * configure: Likewise.
1685 * asan/Makefile.in: Likewise.
1686 * interception/Makefile.in: Likewise.
1687 * sanitizer_common/Makefile.in: Likewise.
1688 * tsan/Makefile.in: Likewise.
1689
2ed685b8
L
16902012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1691
1692 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1693 * configure.ac (ACX_NONCANONICAL_TARGET): New.
1694 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1695 files.
1696 (AM_MAKEFLAGS): Remove CC and CXX.
1697 * interception/Makefile.am: Likewise.
1698 * sanitizer_common/Makefile.am: Likewise.
1699 * tsan/Makefile.am: Likewise.
1700 * Makefile.in: Regenerated.
1701 * aclocal.m4: Likewise.
1702 * configure: Likewise.
1703 * asan/Makefile.in: Likewise.
1704 * interception/Makefile.in: Likewise.
1705 * sanitizer_common/Makefile.in: Likewise.
1706 * tsan/Makefile.in: Likewise.
1707
4ba5ca46
KS
17082012-11-27 Kostya Serebryany <kcc@google.com>
1709
1710 * All files: Merge from upstream r168699.
1711
41d37c56 17122012-11-24 Kostya Serebryany <kcc@google.com>
ecdbd01a 1713 Jack Howarth <howarth@bromo.med.uc.edu>
f246eadc
JH
1714
1715 * interception/mach_override/mach_override.c: Migrate from llvm.
1716 * interception/mach_override/mach_override.h: Likewise.
1717 * interception/mach_override/LICENSE.txt: Likewise.
1718 * configure.tgt: Add darwin to supported targets.
1719 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1720 * interception/Makefile.am: Compile mach_override.c when
1721 USING_MACH_OVERRIDE defined.
1722 * configure: Regenerated.
1723 * interception/Makefile.in: Likewise.
1724
9cb5411c
L
17252012-11-23 H.J. Lu <hongjiu.lu@intel.com>
1726
1727 PR sanitizer/55450
1728 * tsan/Makefile.am (gcc_version): New.
1729 * tsan/Makefile.in: Regenerated.
1730
3409d40e 17312012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1732
e297eb60
KS
1733 * merge.sh: Support tsan, support added/removed files.
1734 * tsan/Makefile.am: Remove tsan_printf.cc.
1735 * tsan/Makefile.in: Regenerated.
1736 * other files: Merge from upstream r168514.
1737
17382012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1739
e297eb60 1740 * merge.sh: New file.
3409d40e 1741
64548f3b
JJ
17422012-11-23 Jakub Jelinek <jakub@redhat.com>
1743
1744 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1745 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1746 automake conditional instead of !MULTISUBDIR32.
1747 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1748 for 64-bit multilib.
1749 * configure.ac: Check for void * size, source in configure.tgt,
1750 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1751 * configure: Regenerated.
1752 * Makefile.in: Regenerated.
1753 * tsan/Makefile.in: Regenerated.
1754
cd0be65c
WM
17552012-11-22 Wei Mi <wmi@google.com>
1756
1757 * tsan: New directory. Import tsan runtime from llvm.
1758 * configure.ac: Add 64 bits tsan build.
1759 * Makefile.am: Likewise.
1760 * configure: Regenerated.
1761 * Makefile.in: Likewise.
1762
5cba83a8
KS
17632012-11-21 Kostya Serebryany <kcc@google.com>
1764
9cb5411c 1765 * README.gcc: Extend the README.gcc with mode details.
5cba83a8 1766
b014e124
KS
17672012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1768
1769 * sanitizer_common/sanitizer_linux.cc
1770 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1771 (internal_mmap): Use it.
1772 (internal_filesize): Likewise.
1773
2b723e21
TT
17742012-11-16 Tom Tromey <tromey@redhat.com>
1775
1776 * configure.ac: Invoke AM_MAINTAINER_MODE.
1777 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1778 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1779
d1caed14
L
17802012-11-16 H.J. Lu <hongjiu.lu@intel.com>
1781
1782 PR other/55333
1783 * include/sanitizer/common_interface_defs.h (uhwptr): New type
1784 for hardware pointer.
1785 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1786 Replace uptr with uhwptr for stack unwind.
1787
f3754998
DS
17882012-11-16 Dodji Seketeli <dodji@redhat.com>
1789
1790 * configure.tgt: Enable build on sparc linux.
1791
f64bcb29
L
17922012-11-15 H.J. Lu <hongjiu.lu@intel.com>
1793
1794 * configure.ac: Properly set MULTISUBDIR.
1795 * asan/Makefile.am (gcc_version): New.
1796 * interception/Makefile.am (gcc_version): Likewise.
1797 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1798 * configure: Regenerated.
1799 * asan/Makefile.in: Likewise.
1800 * interception/Makefile.in: Likewise.
1801 * sanitizer_common/Makefile.in: Likewise.
1802
2a6346c4
L
18032012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1804
1805 PR other/55291
1806 * configure.ac (--enable-version-specific-runtime-libs): New option.
1807 (AC_CANONICAL_SYSTEM): New.
1808 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1809 (toolexecdir): Support multilib.
1810 (toolexeclibdir): Likewise.
1811 (multilib_arg): New.
1812 * Makefile.in: Regenerated.
1813 * aclocal.m4: Likewise.
1814 * configure: Likewise.
1815 * asan/Makefile.in: Likewise.
1816 * interception/Makefile.in: Likewise.
1817 * sanitizer_common/Makefile.in: Likewise.
1818
4a56a7be
L
18192012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1820
1821 PR other/55292
1822 Backport from upstream revision 167883
1823 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1824 __x86_64__ instead of __WORDSIZE.
1825 (internal_filesize): Likwise.
1826
4053ca2c
L
18272012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1828
1829 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1830 * Makefile.in: Regenerated.
1831 * configure: Likewise.
1832
a2479b3d
L
18332012-11-13 H.J. Lu <hongjiu.lu@intel.com>
1834
1835 PR other/55304
1836 * acinclude.m4: New file.
1837 * Makefile.am (ACLOCAL_AMFLAGS): New.
1838 * configure.ac (AC_PREREQ): Set to 2.64.
1839 (AC_CONFIG_AUX_DIR): Set to "..".
1840 * Makefile.in: Regenerated.
1841 * aclocal.m4: Likewise.
1842 * configure: Likewise.
1843 * asan/Makefile.in: Likewise.
1844 * interception/Makefile.in: Likewise.
1845 * sanitizer_common/Makefile.in: Likewise.
1846
1847 * config.guess: Removed.
1848 * config.sub: Likewise.
1849 * depcomp: Likewise.
1850 * install-sh: Likewise.
1851 * ltmain.sh: Likewise.
1852 * missing: Likewise.
1853
93bf5390
RH
18542012-11-13 Richard Henderson <rth@redhat.com>
1855
1856 * configure.tgt: New file.
1857
d2860e72
DM
18582012-11-12 David S. Miller <davem@davemloft.net>
1859
1860 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1861
f35db108
WM
18622012-10-29 Wei Mi <wmi@google.com>
1863
1864 Initial checkin: migrate asan runtime from llvm.