]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/ChangeLog
i386.c (ix86_gen_add3): Remove indirect function.
[thirdparty/gcc.git] / libsanitizer / ChangeLog
CommitLineData
ccd1242e
RO
12019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
4 handling.
5 * configure: Regenerate.
6
b8e214c6
ML
72019-04-08 Martin Liska <mliska@suse.cz>
8
9 * LOCAL_PATCHES: Add revision.
10
17cf9090
ML
112019-04-08 Martin Liska <mliska@suse.cz>
12
13 PR sanitizer/89941
14 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined):
15 Reapply patch from r259664.
16 * sanitizer_common/sanitizer_platform_limits_posix.h (defined):
17 Likewise.
18
7a26e273
EB
192019-03-13 Eric Botcazou <ebotcazou@adacore.com>
20
21 PR sanitizer/80953
22 Merge from LLVM revision 355980
23 * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC.
24 (kAllocatorSize): Likewise.
25 (DefaultSizeClassMap): Likewise.
26 * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define.
27 (SHADOW_OFFSET): Define for SPARC.
28 Include asan_mapping_sparc64.h for SPARC 64-bit.
29 * asan/asan_mapping_sparc64.h: New file.
30
a196c82c
EB
312019-03-13 Eric Botcazou <ebotcazou@adacore.com>
32
33 PR sanitizer/80953
34 Merge from LLVM revision 355979
35 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
36 copy Global objects for SPARC with GCC.
37
36b50aeb
EB
382019-03-13 Eric Botcazou <ebotcazou@adacore.com>
39
40 PR sanitizer/80953
41 Merge from LLVM revision 355978
42 * sanitizer_common/sanitizer_allocator_primary32.h
43 (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if
44 SANITIZER_SIGN_EXTENDED_ADDRESSES is set.
45 (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES.
46 (ComputeRegionId): Likewise.
47 * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return
48 appropriate value for SPARC 64-bit.
49 * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE):
50 Define for SPARC.
51 (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit.
52
017abbe3
EB
532019-03-13 Eric Botcazou <ebotcazou@adacore.com>
54
55 PR sanitizer/80953
56 Merge from LLVM revision 355965
57 * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for
58 SPARC/Linux.
59 (GetPcSpBp): Likewise.
60 * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc):
61 Adjust for SPARC.
62 * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND):
63 Define to 1 for SPARC.
64 * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite.
65 * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack):
66 Adjust the PC address for SPARC with GCC.
67
c24847a5
ML
682019-03-06 Martin Liska <mliska@suse.cz>
69
70 PR sanitizer/88684
71 * sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
72 (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
73 * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
74 Likewise.
75
4dfc5b35
L
762019-02-20 H.J. Lu <hongjiu.lu@intel.com>
77
78 PR sanitizer/89409
79 * sanitizer_common/sanitizer_linux.cc (internal_readlink):
80 Cherry-pick compiler-rt r354451.
81
a795cd3d
JG
822019-01-23 Jonny Grant <jg@jguk.org>
83
84 PR sanitizer/89010
85 * libsanitizer/README.gcc: Update to current https URLs.
86
96051ee5
ML
872018-12-27 Martin Liska <mliska@suse.cz>
88
a795cd3d 89 PR sanitizer/86229
96051ee5
ML
90 * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
91 pick rL350085.
92 * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
93
15e109b3
ML
942018-11-09 Martin Liska <mliska@suse.cz>
95
96 * LOCAL_PATCHES: Include one local patch.
97
d1e2e13c
ML
982018-11-09 Martin Liska <mliska@suse.cz>
99
100 PR sanitizer/87892
101 * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return
102 1 when CPU_COUNT macro is not defined.
103
39abbb86
BS
1042018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com>
105
106 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
107 Disable ASLR for powerpc64 when using sanitizers.
108
aaabfd71
RO
1092018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
110
111 PR sanitizer/80953
112 * configure.tgt (sparc*-*-solaris2.11*): Enable.
113 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
114
0b5ccc80
RO
1152018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
116
117 PR sanitizer/80953
118 * sanitizer_common/sanitizer_internal_defs.h,
119 sanitizer_common/sanitizer_platform_limits_solaris.h,
120 sanitizer_common/sanitizer_procmaps_solaris.cc,
121 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
122 revision 346153.
123 * sanitizer_common/sanitizer_stacktrace.h,
124 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
125 compiler-rt revision 346155.
126
b40a67df
SB
1272018-11-05 Segher Boessenkool <segher@kernel.crashing.org>
128
129 * LOCAL_PATCHES: Add r258525.
130 * sanitizer_common/sanitizer_stacktrace.cc
131 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
132 for PowerPC SYSV ABI.
133
6388cb29
ML
1342018-11-05 Martin Liska <mliska@suse.cz>
135
136 PR sanitizer/87860
137 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream
138 r346129.
139
22e05272
JM
1402018-10-31 Joseph Myers <joseph@codesourcery.com>
141
142 PR bootstrap/82856
143 * Makefile.am: Include multilib.am.
144 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
145 * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
146 interception/Makefile.in, libbacktrace/Makefile.in,
147 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
148 ubsan/Makefile.in: Regenerate.
149
088371bf
ML
1502018-10-31 Martin Liska <mliska@suse.cz>
151
152 * LOCAL_PATCHES: Update to installed revisions.
153
c244886c
ML
1542018-10-31 Martin Liska <mliska@suse.cz>
155
156 * ubsan/ubsan_platform.h: Add ifndef as we define it with
157 -DCAN_SANITIZE_UB CFLAGS.
158
f607b87c
ML
1592018-10-31 Martin Liska <mliska@suse.cz>
160
161 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
162
e63c9677
ML
1632018-10-31 Martin Liska <mliska@suse.cz>
164
165 * LOCAL_PATCHES: Update patch list.
166 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
167 patches from GCC's trunk.
168 (CheckODRViolationViaPoisoning): Likewise.
169 (RegisterGlobal): Likewise.
170 * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
171 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
172 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
173 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
174 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
175 (struct CFICheckFailData): Likewise.
176 (RECOVERABLE): Likewise.
177
8468f944
ML
1782018-10-31 Martin Liska <mliska@suse.cz>
179
180 * config.h.in: Regenerate.
181 * configure: Likewise.
182 * sanitizer_common/Makefile.am: Include new files, remove old
183 files.
184 * sanitizer_common/Makefile.in: Regenerate.
185 * ubsan/Makefile.am: Include new files, remove old
186 files.
187 * ubsan/Makefile.in: Likewise.
188 * asan/Makefile.am: Include new files.
189 * asan/Makefile.in: Regenerate.
190
eac97531
ML
1912018-10-31 Martin Liska <mliska@suse.cz>
192
193 * All source files: Merge from upstream 345033.
194
95fba530
ML
1952018-10-31 Martin Liska <mliska@suse.cz>
196
197 * HOWTO_MERGE: Enhance documentation.
198 * merge.sh: Add support for git as well.
199
b4f1f01d
ML
2002018-08-02 Martin Liska <mliska@suse.cz>
201
92a285c1 202 PR sanitizer/86022
b4f1f01d 203 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
92a285c1 204 Cherry-pick compiler-rt revision 338606.
b4f1f01d 205
c191b1ab
MP
2062018-08-01 Marek Polacek <polacek@redhat.com>
207
208 PR sanitizer/86759
209 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
210 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
211 319180.
212
c83b4b82
L
2132018-07-25 H.J. Lu <hongjiu.lu@intel.com>
214
215 PR target/86560
216 * asan/asan_interceptors.cc (swapcontext) Cherry-pick
217 compiler-rt revision 337603.
218 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
219 Likewise.
220
bdfc619e
JJ
2212018-07-05 Jakub Jelinek <jakub@redhat.com>
222
223 Revert
224 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
225
226 PR sanitizer/84250
227 * Makefile.am: Reorder libs.
228 * Makefile.in: Regenerate.
229 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
230 libsanitizer_ubsan.la.
231 * asan/Makefile.in: Regenerate.
232 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
233 * ubsan/Makefile.in: Regenerate.
234
ca8dd9f2
MO
2352018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
236
237 PR sanitizer/84250
238 * Makefile.am: Reorder libs.
239 * Makefile.in: Regenerate.
240 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
241 libsanitizer_ubsan.la.
242 * asan/Makefile.in: Regenerate.
243 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
244 * ubsan/Makefile.in: Regenerate.
245
3b07c0e5
DK
2462018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
247
92a285c1
ML
248 PR sanitizer/86090
249 * configure.ac: Check for lstat and readlink.
250 * configure, config.h.in: Rebuild.
3b07c0e5 251
5b87c1fe
MK
2522018-05-31 Matthias Klose <doko@ubuntu.com>
253
254 PR sanitizer/86012
255 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
256 SIZEOF_STRUCT_USTAT for 32bit sparc.
257
71b55d45
L
2582018-05-24 H.J. Lu <hongjiu.lu@intel.com>
259
260 PR sanitizer/85835
261 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
262 include <sys/ustat.h> for Linux.
263 (SIZEOF_STRUCT_USTAT): New.
264 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
265
bc40f166
HPN
2662018-04-26 Hans-Peter Nilsson <hp@axis.com>
267
752361c9
HPN
268 * configure.tgt <mips*-*-linux*>: Enable build, excluding
269 mips*64*-*-linux*.
270
9f943b24
HPN
271 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
272 take the shortcut to #include <sys/stat.h> for MIPS instead of
273 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
274 or wrong to get the kernel struct stat.
275 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
276 Correct the value for 32-bit non-android struct_kernel_stat_sz.
277
bc40f166
HPN
278 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
279 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
280
7b47ecf2
L
2812018-04-24 H.J. Lu <hongjiu.lu@intel.com>
282
283 * configure: Regenerated.
284
a0e1df88
JJ
2852018-04-19 Jakub Jelinek <jakub@redhat.com>
286
287 * configure: Regenerated.
288
001ddaa8
DM
2892018-04-18 David Malcolm <dmalcolm@redhat.com>
290
291 PR jit/85384
292 * configure: Regenerate.
293
19ddb884
BS
2942018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
295
296 PR sanitizer/85389
297 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
298 from 0xa0000000000ULL to ~(uptr)0.
299
359ea407
JJ
3002018-03-19 Jakub Jelinek <jakub@redhat.com>
301
302 PR sanitizer/84761
303 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
304 Define if not defined.
305 (DL_INTERNAL_FUNCTION): Don't define.
306 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
307 determine at runtime whether to use regparm(3), stdcall calling
308 convention for older glibcs or normal calling convention for
309 newer glibcs for call to _dl_get_tls_static_info.
310
1422855a
SB
3112018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
312
313 * sanitizer_common/sanitizer_stacktrace.cc
314 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
315 for PowerPC SYSV ABI.
316
14e335ed
IT
3172018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
318
319 PR target/84148
320 * configure: Regenerate.
321
4c4f3c3f
ML
3222018-02-05 Martin Liska <mliska@suse.cz>
323
324 * asan/asan_flags.inc: Cherry-pick upstream r323995.
325 * asan/asan_report.cc (CheckForInvalidPointerPair):
326 Cherry-pick upstream r323995.
327
2d509539
RO
3282018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
329
330 PR sanitizer/82825
331 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
9dfc6e83 332 r324284.
2d509539 333
1f7273e5
RO
3342018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
335
336 PR sanitizer/82824
337 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
338
05abad4c
ML
3392017-12-05 Martin Liska <mliska@suse.cz>
340 Jakub Jelinek <jakub@redhat.com>
341
342 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
343 * asan/asan_descriptions.h: Likewise.
344 * asan/asan_report.cc: Likewise.
345 * asan/asan_thread.cc: Likewise.
346 * asan/asan_thread.h: Likewise.
347
9069eb28
IT
3482017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
349
350 * acinclude.m4: Add enable.m4 and cet.m4.
351 * Makefile.in: Regenerate.
352 * asan/Makefile.am: Update AM_CXXFLAGS.
353 * asan/Makefile.in: Regenerate.
354 * configure: Likewise.
355 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
356 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
357 * interception/Makefile.am: Update AM_CXXFLAGS.
358 * interception/Makefile.in: Regenerate.
359 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
360 * libbacktrace/Makefile.in: Regenerate.
361 * lsan/Makefile.am: Update AM_CXXFLAGS.
362 * lsan/Makefile.in: Regenerate.
363 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
364 AM_CCASFLAGS.
365 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
366 Add _CET_ENDBR macro.
367 * sanitizer_common/Makefile.in: Regenerate.
368 * tsan/Makefile.am: Update AM_CXXFLAGS.
369 * tsan/Makefile.in: Regenerate.
370 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
371 * ubsan/Makefile.am: Update AM_CXXFLAGS.
372 * ubsan/Makefile.in: Regenerate.
373
5925290f
JJ
3742017-11-08 Jakub Jelinek <jakub@redhat.com>
375
376 PR bootstrap/82670
377 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
378 and ubsan_signals_standalone.cc.
379 * ubsan/Makefile.in: Regenerated.
380
735e62b9
TV
3812017-11-05 Tom de Vries <tom@codesourcery.com>
382
383 PR other/82784
384 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
385 "do {} while (0)".
386 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
387
9a45ffbd
JJ
3882017-10-20 Jakub Jelinek <jakub@redhat.com>
389
390 PR sanitizer/82595
391 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
392 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
393 liblsan_preinit.o.
394 (lsan_files): Remove lsan_preinit.cc.
395 (liblsan_preinit.o): New rule.
396 * lsan/Makefile.in: Regenerated.
397
5d3805fc
JJ
3982017-10-19 Jakub Jelinek <jakub@redhat.com>
399
400 * All source files: Merge from upstream 315899.
92a285c1 401 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
5d3805fc 402 include/sanitizer/tsan_interface.h.
92a285c1 403 * asan/libtool-version: Bump the libasan SONAME.
5d3805fc
JJ
404 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
405 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
92a285c1 406 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
5d3805fc
JJ
407 sancov_flags.cc, sanitizer_allocator_checks.cc,
408 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
409 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
410 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
411 and sanitizer_coverage_mapping_libcdep.cc.
92a285c1 412 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
5d3805fc
JJ
413 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
414 (ubsan_files): Add ubsan_init_standalone.cc and
415 ubsan_signals_standalone.cc.
416 * ubsan/libtool-version: Bump the libubsan SONAME.
92a285c1
ML
417 * asan/Makefile.in: Regenerate.
418 * lsan/Makefile.in: Regenerate.
419 * sanitizer_common/Makefile.in: Regenerate.
420 * tsan/Makefile.in: Regenerate.
5d3805fc
JJ
421 * ubsan/Makefile.in: Regenerate.
422
bf4df9e6
L
4232017-10-05 H.J. Lu <hongjiu.lu@intel.com>
424
425 PR sanitizer/82379
426 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
427 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
428
d1453bec
JJ
4292017-10-02 Jakub Jelinek <jakub@redhat.com>
430
431 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
432 Define.
433
a5320f3c
JJ
4342017-08-07 Jakub Jelinek <jakub@redhat.com>
435
436 * include/system/sys/ptrace.h: New file.
437
c9b39a49
JJ
4382017-07-28 Jakub Jelinek <jakub@redhat.com>
439
440 PR sanitizer/80998
441 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
442 * ubsan/ubsan_checks.inc: Likewise.
443 * ubsan/ubsan_handlers.h: Likewise.
444
144e36a7
JJ
4452017-07-14 Jakub Jelinek <jakub@redhat.com>
446
447 PR sanitizer/81066
448 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
449 * sanitizer_common/sanitizer_linux.cc: Likewise.
450 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
451 * tsan/tsan_platform_linux.cc: Likewise.
452
d9f8c5af
ML
4532017-04-06 Martin Liska <mliska@suse.cz>
454
455 PR sanitizer/80166
456 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
457 Cherry-pick upstream r299036.
458
fd6cba40
JJ
4592017-03-22 Jakub Jelinek <jakub@redhat.com>
460
461 PR sanitizer/78158
462 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
463
9b9ad360
AT
4642017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
465
466 PR sanitizer/79562
467 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
468 upstream r294806.
469
1509524b
JJ
4702017-02-11 Jakub Jelinek <jakub@redhat.com>
471
472 PR sanitizer/79341
473 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
474 s390-linux 31-bit.
475 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
476 r294793.
477 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
478 upstream r294790.
479 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
480 r294799.
481
778e0ac3
MO
4822017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
483
484 PR sanitizer/78663
485 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
486 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
487
4997a71d
JJ
4882017-01-31 Jakub Jelinek <jakub@redhat.com>
489
490 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
491
86b2a558
JJ
4922017-01-24 Jakub Jelinek <jakub@redhat.com>
493
c831801d
JJ
494 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
495
86b2a558
JJ
496 PR sanitizer/79168
497 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
498 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
499 text.
500 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
501 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
502 * tsan/tsan_ppc_regs.h: Likewise.
503 * tsan/tsan_rtl_aarch64.S: Likewise.
504 * tsan/tsan_rtl_mips64.S: Likewise.
505 * tsan/tsan_rtl_ppc64.S: Likewise.
506
73aa401e
JJ
5072017-01-21 Jakub Jelinek <jakub@redhat.com>
508
509 PR other/79046
510 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
511 instead of cat to get version from BASE-VER file.
512 * asan/Makefile.am (gcc_version): Likewise.
513 * ubsan/Makefile.am (gcc_version): Likewise.
514 * sanitizer_common/Makefile.am (gcc_version): Likewise.
515 * lsan/Makefile.am (gcc_version): Likewise.
516 * tsan/Makefile.am (gcc_version): Likewise.
517 * interception/Makefile.in: Regenerated.
518 * asan/Makefile.in: Regenerated.
519 * ubsan/Makefile.in: Regenerated.
520 * sanitizer_common/Makefile.in: Regenerated.
521 * lsan/Makefile.in: Regenerated.
522 * tsan/Makefile.in: Regenerated.
523
3c36aa6b
JJ
5242017-01-17 Jakub Jelinek <jakub@redhat.com>
525
526 PR other/79046
527 * configure.ac: Add GCC_BASE_VER.
528 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
529 get version from BASE-VER file.
530 * libbacktrace/Makefile.in: Regenerated.
531 * interception/Makefile.in: Regenerated.
532 * asan/Makefile.in: Regenerated.
533 * ubsan/Makefile.in: Regenerated.
534 * configure: Regenerated.
535 * sanitizer_common/Makefile.in: Regenerated.
536 * lsan/Makefile.in: Regenerated.
537 * Makefile.in: Regenerated.
538 * tsan/Makefile.in: Regenerated.
539
942136a4
JC
5402017-01-10 James Clarke <jrtc27@jrtc27.com>
541
542 PR sanitizer/78992
543 * sanitizer_common/sanitizer_platform_limits_posix.h
544 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
545
11bbe995
MO
5462016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
547
548 * LOCAL_PATCHES: Add revision.
549
d61ed91e
MO
5502016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
551
552 PR sanitizer/78532
553 * sanitizer_common/sanitizer_platform_limits_posix.h
554 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
555 versions.
556
f4214e23
MT
5572016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
558
559 * LOCAL_PATCHES: Remove r242480.
560
00212843
RO
5612016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
562
563 * LOCAL_PATCHES: Add revision.
564
97448adf
RO
5652016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
566
567 PR sanitizer/78267
568 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
569 compiler supports blocks extension.
570
61a58d07
MT
5712016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
572
573 * LOCAL_PATCHES: Add revision.
574
8c32ae0e
MT
5752016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
576
577 PR sanitizer/78294
578 * tsan/tsan_rtl.cc: Add missing attribute.
579
949cc52d
MO
5802016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
581
582 * LOCAL_PATCHES: New file.
583
511c8687
MO
5842016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
585
586 PR sanitizer/78307
587 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
588 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
589 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
590 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
591 function.
592 (__ubsan_handle_cfi_bad_type_abort): Likewise.
593 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
594 (__ubsan_handle_cfi_bad_type): Export function.
595 (__ubsan_handle_cfi_bad_type_abort): Likewise.
596 * HOWTO_MERGE: Update documentation.
597
84c1b9d3
MK
5982016-11-15 Matthias Klose <doko@ubuntu.com>
599
600 * configure: Regenerate.
601
8f16b6ca
MO
6022016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
603
604 * asan/asan_globals.cc (RegisterGlobal): Do not call
605 CheckODRViolationViaPoisoning.
606 (CheckODRViolationViaPoisoning): Remove.
607
789306de
MO
6082016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
609
610 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
611 compiled code with GCC when extracting the caller PC for ARM if no
612 valid frame pointer is available.
613
fe7913f6
MO
6142016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
615
616 PR sanitizer/63958
617 Reapply:
618 2014-10-14 David S. Miller <davem@davemloft.net>
619
620 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
621 Define at __kernel_time_t, as needed for sparc.
622 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
623 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
624 (__sanitizer): Define struct___old_kernel_stat_sz,
625 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
626 (__sanitizer_ipc_perm): Adjust for sparc targets.
627 (__sanitizer_shmid_ds): Likewsie.
628 (__sanitizer_sigaction): Likewise.
629 (IOC_SIZE): Likewsie.
630
10189819
MO
6312016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
632
633 * All source files: Merge from upstream 285547.
634 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
635 variable.
636 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
637 * asan/Makefile.am (asan_files): Add new files.
638 * asan/Makefile.in: Regenerate.
639 * ubsan/Makefile.in: Likewise.
640 * lsan/Makefile.in: Likewise.
641 * tsan/Makefile.am (tsan_files): Add new files.
642 * tsan/Makefile.in: Regenerate.
643 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
644 (EXTRA_libsanitizer_common_la_SOURCES): Define.
645 (libsanitizer_common_la_LIBADD): Likewise.
646 (libsanitizer_common_la_DEPENDENCIES): Likewise.
647 * sanitizer_common/Makefile.in: Regenerate.
648 * interception/Makefile.in: Likewise.
649 * libbacktace/Makefile.in: Likewise.
650 * Makefile.in: Likewise.
651 * configure: Likewise.
652 * merge.sh: Handle builtins/assembly.h merging.
653 * builtins/assembly.h: New file.
654 * asan/libtool-version: Bump the libasan SONAME.
655
aef6a97c
JJ
6562016-09-21 Jakub Jelinek <jakub@redhat.com>
657
658 PR sanitizer/77567
659 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
660
0ce48391
JJ
6612016-09-05 Jakub Jelinek <jakub@redhat.com>
662
663 PR sanitizer/77396
664 * asan/asan_globals.cc: Cherry-pick upstream r280657.
665
e23a7a99
JJ
6662016-08-12 Jakub Jelinek <jakub@redhat.com>
667
668 PR sanitizer/71042
669 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
670 * tsan/tsan_rtl_aarch64.S: Likewise.
671
aa00995c
AM
6722016-07-23 Alan Modra <amodra@gmail.com>
673
674 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
675 * configure.ac: Don't substitute OBSTACK_DEFS.
676 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
677 * tsan/Makefile.am: Likewise.
678 * configure: Regenerate.
679 * Makefile.in: Regenerate.
680 * asan/Makefile.in: Regenerate.
681 * interception/Makefile.in: Regenerate.
682 * libbacktrace/Makefile.in: Regenerate.
683 * lsan/Makefile.in: Regenerate.
684 * sanitizer_common/Makefile.in: Regenerate.
685 * tsan/Makefile.in: Regenerate.
686 * ubsan/Makefile.in: Regenerate.
687
69af4eec
JJ
6882016-05-17 Jakub Jelinek <jakub@redhat.com>
689
690 PR sanitizer/71160
691 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
692 and r269633.
693
fefddbef
MO
6942016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
695
696 PR sanitizer/70624
697 * asan/asan_mac.cc: Cherry pick upstream r266868.
698
e4729419
JJ
6992016-01-19 Jakub Jelinek <jakub@redhat.com>
700
701 PR sanitizer/68824
702 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
703 InitializeInterceptors): Cherry pick upstream r258119.
704
bf93d543
AT
7052016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
706
707 * configure.ac: Replace the hard-coded -ldl requirement for
708 link_sanitizer_common with a configure time check for -ldl.
709 * configure: Regenerate.
710
9211bbb2
MO
7112015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
712
713 * include/system/linux/asm/ptrace.h: Move to ...
714 * include/system/asm/ptrace.h: ... this.
715
664dd3cf
MO
7162015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
717
718 * include/system/linux/asm/ptrace.h: New header.
719
55aea9f5
MO
7202015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
721
722 * All source files: Merge from upstream r253555.
723 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
724 dependences for TSan for aarch64-*-linux* targets.
725 * tsan/Makefile.am: Add new source files.
726 * configure: Regenerate.
727 * tsan/Makefile.in: Likewise.
728
62c0f0a6
AM
7292015-11-09 Alan Modra <amodra@gmail.com>
730
731 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
732 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
733 interceptors.
734 * configure.ac: Substitute OBSTACK_DEFS.
735 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
736 * tsan/Makefile.am: Likewise.
737 * configure: Regenerate.
738 * Makefile.in: Regenerate.
739 * asan/Makefile.in: Regenerate.
740 * interception/Makefile.in: Regenerate.
741 * libbacktrace/Makefile.in: Regenerate.
742 * lsan/Makefile.in: Regenerate.
743 * sanitizer_common/Makefile.in: Regenerate.
744 * tsan/Makefile.in: Regenerate.
745 * ubsan/Makefile.in: Regenerate.
746
692b1131
MO
7472015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
748
749 PR bootstrap/68041
750 * configure.ac (link_sanitizer_common): Link against librt only if it
751 contains shm_open, required by sanitizers.
752 (CXX_ABI_NEEDED): Remove variable.
753 * configure: Regenerate.
754 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
755 * ubsan/Makefile.in: Regenerate.
756
7047bc9c
MO
7572015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
758
759 * HOWTO_MERGE: New file.
760
21d61063
MO
7612015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
762
763 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
764 compiled code with GCC when extracting the caller PC for ARM if no
765 valid frame pointer is available.
766
15ebe1fe
MO
7672015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
768
769 PR bootstrap/63888
770 Reapply:
771 2015-02-20 Jakub Jelinek <jakub@redhat.com>
772
773 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
774 support until it is rewritten upstream.
775
776 * c-c++-common/asan/pr63888.c: New test.
777
0d57d3e0
MO
7782015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
779
780 PR sanitizer/63958
781 Reapply:
782 2014-10-14 David S. Miller <davem@davemloft.net>
783
784 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
785 Define at __kernel_time_t, as needed for sparc.
786 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
787 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
788 (__sanitizer): Define struct___old_kernel_stat_sz,
789 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
790 (__sanitizer_ipc_perm): Adjust for sparc targets.
791 (__sanitizer_shmid_ds): Likewsie.
792 (__sanitizer_sigaction): Likewise.
793 (IOC_SIZE): Likewsie.
794
696d846a
MO
7952015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
796
797 * All source files: Merge from upstream r250806.
798 * configure.ac (link_sanitizer_common): Add -lrt flag.
799 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
800 Set USE_CXX_ABI_FLAG=true for darwin.
801 * asan/Makefile.am (asan_files): Add new files.
802 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
803 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
804 * asan/Makefile.in: Regenerate.
805 * ubsan/Makefile.am (ubsan_files): Add new files.
806 (DEFS): Add DCAN_SANITIZE_UB=1.
807 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
808 * ubsan/Makefile.in: Regenerate.
809 * tsan/Makefile.am (tsan_files): Add new files.
810 (DEFS): Add DCAN_SANITIZE_UB=0.
811 * tsan/Makefile.in: Regenerate.
812 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
813 * sanitizer_common/Makefile.in: Regenerate.
814 * asan/libtool-version: Bump the libasan SONAME.
815
1842a04c
MT
8162015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
817
818 PR sanitizer/67258
819 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
820
97d8f801
MT
8212015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
822
823 PR sanitizer/63927
824 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
825 for PowerPC.
826
3d61d875
BS
8272015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
828
829 PR sanitizer/63927
830 * sanitizer_common/sanitizer_stacktrace.cc
831 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
832 find the link register at an offset of 16 from the base of the
833 caller's stack frame.
834
f3915b42
MH
8352015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
836
837 * Makefile.in: Regenerated with automake-1.11.6.
838 * aclocal.m4: Likewise.
839 * asan/Makefile.in: Likewise.
840 * configure: Likewise.
841 * interception/Makefile.in: Likewise.
842 * libbacktrace/Makefile.in: Likewise.
843 * lsan/Makefile.in: Likewise.
844 * sanitizer_common/Makefile.in: Likewise.
845 * tsan/Makefile.in: Likewise.
846 * ubsan/Makefile.in: Likewise.
847
d041a6fc
YG
8482015-04-13 Yury Gribov <y.gribov@samsung.com>
849
850 PR sanitizer/64839
851 * sanitizer_common/sanitizer_platform.h: Cherry pick
852 upstream r234470.
853 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
854 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
855 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
856 * Makefile.in: Regenerate.
857 * asan/Makefile.in: Regenerate.
858 * config.h.in: Regenerate.
859 * configure: Regenerate.
860 * interception/Makefile.in: Regenerate.
861 * libbacktrace/Makefile.in: Regenerate.
862 * lsan/Makefile.in: Regenerate.
863 * sanitizer_common/Makefile.in: Regenerate.
864 * tsan/Makefile.in: Regenerate.
865 * ubsan/Makefile.in: Regenerate.
866
867
d886f7cc
CL
8682015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
869
870 PR sanitizer/59009
871 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
872 upstream r230324.
873 * sanitizer_common/sanitizer_platform.h: Likewise.
874 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
875
563fb64a
BE
8762015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
877
878 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
879 upstream 224508 and 224755.
880
ee876e59
JJ
8812015-03-09 Jakub Jelinek <jakub@redhat.com>
882
883 PR sanitizer/63958
884 Reapply:
885 2014-10-14 David S. Miller <davem@davemloft.net>
886
887 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
888 Define at __kernel_time_t, as needed for sparc.
889 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
890 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
891 (__sanitizer): Define struct___old_kernel_stat_sz,
892 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
893 (__sanitizer_ipc_perm): Adjust for sparc targets.
894 (__sanitizer_shmid_ds): Likewsie.
895 (__sanitizer_sigaction): Likewise.
896 (IOC_SIZE): Likewsie.
897
6ad0611b
PB
8982015-02-27 Peter Bergner <bergner@vnet.ibm.com>
899
900 * configure.tgt: Enable build on powerpc*le-*-linux.
901
09901e8a 9022015-02-23 Jakub Jelinek <jakub@redhat.com>
86ee2038
JJ
903
904 PR bootstrap/63888
905 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
906 support until it is rewritten upstream.
907
94213c10
MK
9082015-01-26 Matthias Klose <doko@ubuntu.com>
909
910 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
911 * configure: Regenerate.
912
8790f572
VK
9132015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
914
94213c10 915 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
8790f572 916 * configure: Regenerate.
94213c10 917 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
8790f572 918
b0edd457
VK
9192015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
920
921 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
922 * configure: Regenerate.
923 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
924 (libtsan_la_DEPENDENCIES): Likewise.
925 * Makefile.in: Regenerate.
926 * asan/Makefile.in: Regenerate.
927 * interception/Makefile.in: Regenerate.
928 * libbacktrace/Makefile.in: Regenerate.
929 * lsan/Makefile.in: Regenerate.
930 * sanitizer_common/Makefile.in: Regenerate.
931 * tsan/Makefile.in: Regenerate.
932 * ubsan/Makefile.in: Regenerate.
933
19ac475f
JJ
9342015-01-22 Jakub Jelinek <jakub@redhat.com>
935
936 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
937
8b08ef25
JJ
9382015-01-21 Jakub Jelinek <jakub@redhat.com>
939
940 PR sanitizer/64435
941 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
942 upstream r226637.
943 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
944 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
945
3ea36418
JJ
9462015-01-20 Jakub Jelinek <jakub@redhat.com>
947
948 PR sanitizer/64632
949 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
950
9deaf59d
JJ
9512015-01-19 Jakub Jelinek <jakub@redhat.com>
952
953 PR sanitizer/64435
954 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
955 upstream r223925.
956
b6a8bacc
JJ
9572015-01-13 Jakub Jelinek <jakub@redhat.com>
958
959 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
960 upstream r224518 and r224519.
961 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
962 r224834.
963
f2798565
JJ
9642014-12-16 Jakub Jelinek <jakub@redhat.com>
965
966 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
967 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
968 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
969 upstream r224308.
970
a699d672
L
9712014-11-21 H.J. Lu <hongjiu.lu@intel.com>
972
973 PR bootstrap/63784
974 * configure: Regenerated.
975
7697b16f
JJ
9762014-11-21 Jakub Jelinek <jakub@redhat.com>
977
978 PR target/61137
979 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
980 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
981
7f201a67
UB
9822014-11-14 Uros Bizjak <ubizjak@gmail.com>
983
984 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
985 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
986 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
987 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
988 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
989 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
990 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
991 * sanitizer_common/Makefile.in: Regenerate.
992 * asan/Makefile.in: Ditto.
993 * lsan/Makefile.in: Ditto.
994 * interception/Makefile.in: Ditto.
995 * tsan/Makefile.in: Ditto.
996 * libbacktrace/Makefile.in: Ditto.
997 * ubsan/Makefile.in: Ditto.
998
c5be964a
KS
9992014-11-13 Kostya Serebryany <kcc@google.com>
1000
1001 * All source files: Merge from upstream r221802.
1002 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
1003 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
1004 with 'start' to follow the new interface.
1005 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1006 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1007 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1008 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1009 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1010 files.
1011 (AM_CXXFLAGS): Added -std=c++11.
1012 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1013 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1014 * asan/Makefile.in: Regenerate.
1015 * interception/Makefile.in: Regenerate.
1016 * libbacktrace/Makefile.in: Regenerate.
1017 * lsan/Makefile.in: Regenerate.
1018 * sanitizer_common/Makefile.in: Regenerate.
1019 * tsan/Makefile.in: Regenerate.
1020 * ubsan/Makefile.in: Regenerate.
1021
ebf6d33b
FXC
10222014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1023
1024 PR target/63610
1025 * configure: Regenerate.
1026
d13fc1ed
ML
10272014-10-16 Martin Liska <mliska@suse.cz>
1028
1029 * asan/Makefile.am: IPA ICF pass is disabled.
1030 * asan/Makefile.in: Likewise.
1031
c8473336
DM
10322014-10-14 David S. Miller <davem@davemloft.net>
1033
1034 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1035 Define at __kernel_time_t, as needed for sparc.
1036 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1037 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1038 (__sanitizer): Define struct___old_kernel_stat_sz,
1039 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1040 (__sanitizer_ipc_perm): Adjust for sparc targets.
1041 (__sanitizer_shmid_ds): Likewsie.
1042 (__sanitizer_sigaction): Likewsie.
1043 (IOC_SIZE): Likewsie.
1044
694b4cfa
JJ
10452014-10-14 Jakub Jelinek <jakub@redhat.com>
1046
1047 * ubsan/Makefile.am (DEFS): Add -DPIC.
1048 * ubsan/Makefile.in: Regenerated.
1049
a3125fc2
CL
10502014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
1051
1052 * configure.tgt: Enable build on aarch64*-linux.
1053
866e32ad
KS
10542014-09-19 Kostya Serebryany <kcc@google.com>
1055
1056 * All source files: Merge from upstream r218156.
1057 * asan/Makefile.am (asan_files): Added new files.
1058 * asan/Makefile.in: Regenerate.
1059 * ubsan/Makefile.am (ubsan_files): Added new files.
1060 * ubsan/Makefile.in: Regenerate.
1061 * tsan/Makefile.am (tsan_files): Added new files.
1062 * tsan/Makefile.in: Regenerate.
1063 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1064 files.
1065 * sanitizer_common/Makefile.in: Regenerate.
1066 * asan/libtool-version: Bump the libasan SONAME.
1067
126edc3f
JJ
10682014-09-10 Jakub Jelinek <jakub@redhat.com>
1069
1070 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
1071 upstream r215485, r217389, r217391 and r217400.
1072
0d807c80
PC
10732014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
1074
1075 * sanitizer_common/sanitizer_common_interceptors.inc:
1076 Cherry pick upstream r211008.
1077
4622301b
RB
10782014-06-11 Richard Biener <rguenther@suse.de>
1079
1080 * asan/asan_linux.cc: Cherry pick upstream r210012.
1081
ecd5543f
JJ
10822014-05-30 Jakub Jelinek <jakub@redhat.com>
1083
1084 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
1085 r209879.
1086 * sanitizer_common/sanitizer_common.h: Likewise.
1087 * asan/asan_mapping.h: Likewise.
1088 * asan/asan_linux.cc: Likewise.
1089 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
1090 * sanitizer_common/sanitizer_allocator.h: Likewise.
1091
85a16bf8
MP
10922014-05-23 Marek Polacek <polacek@redhat.com>
1093
1094 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
1095 floating-point types.
1096
dee5ea7a
KS
10972014-05-22 Kostya Serebryany <kcc@google.com>
1098
1099 * All source files: Merge from upstream r209283.
1100 * asan/Makefile.am (asan_files): Added new files.
1101 * asan/Makefile.in: Regenerate.
1102 * tsan/Makefile.am (tsan_files): Added new files.
1103 * tsan/Makefile.in: Regenerate.
0d807c80
PC
1104 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1105 files.
dee5ea7a
KS
1106 * sanitizer_common/Makefile.in: Regenerate.
1107
2675305b
YG
11082014-05-14 Yury Gribov <y.gribov@samsung.com>
1109
1110 PR sanitizer/61100
1111 * Makefile.am (nodist_saninclude_HEADERS): Install
1112 public headers.
1113 * Makefile.in: Regenerate.
1114
a6c9ab4e
RO
11152014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1116
1117 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1118 Add ../../libbacktrace/sort.c.
1119 * libbacktrace/Makefile.in: Regenerate.
1120 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1121
a42a7046
BS
11222014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1123
1124 * configure.tgt: Unsupported for little endian PowerPC for now.
1125
5ab39ec3
JJ
11262014-02-04 Jakub Jelinek <jakub@redhat.com>
1127
81c87471
JJ
1128 PR sanitizer/60055
1129 * tsan/tsan_flags.cc (__tsan_default_options): Add
1130 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
1131 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1132
5ab39ec3
JJ
1133 PR sanitizer/60038
1134 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1135 sanitizer_atomic.h and unistd.h.
1136 (kThreadDescriptorSize): Made static, remove initializer and const,
1137 change type to atomic_uintptr_t.
1138 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1139 query glibc version, compute kThreadDescriptorSize depending on
1140 glibc version minor number.
1141 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1142 kThreadDescriptorSize directly.
1143
4a7eaf5f
YG
11442014-01-23 Yury Gribov <y.gribov@samsung.com>
1145 Jakub Jelinek <jakub@redhat.com>
1146
1147 PR sanitizer/57316
1148 * configure.ac: Check for missing syscalls.
1149 * Makefile.am: Likewise.
1150 * configure: Regenerate.
1151 * Makefile.in: Regenerate.
1152
2613419a
JJ
11532014-01-09 Jakub Jelinek <jakub@redhat.com>
1154
b5f58ba3
JJ
1155 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1156 (LibbacktraceSymbolizer::Demangle): New declaration.
1157 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1158 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1159 method if possible.
1160 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1161 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1162 (struct CplusV3DemangleData): New type.
1163 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1164 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1165 SymbolizeDataCallback): Use CplusV3Demangle.
1166 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1167 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1168 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1169 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1170 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1171 cplus_demangle_init_info, cplus_demangle_mangled_name,
1172 cplus_demangle_operators, cplus_demangle_print,
1173 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1174 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1175 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1176 Define.
1177 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1178 (memcmp, strncmp): Redefine.
1179 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1180 ../../libiberty/cp-demangle.c.
1181 * libbacktrace/bridge.cc (__asan_internal_memcmp,
1182 __asan_internal_strncmp): New functions.
1183 * sanitizer_common/Makefile.in: Regenerated.
1184 * libbacktrace/Makefile.in: Regenerated.
1185 * configure: Regenerated.
1186 * configure.ac: Regenerated.
1187 * config.h.in: Regenerated.
1188
2613419a
JJ
1189 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1190 -isystem $(top_srcdir)/include/system.
1191 * sanitizer_common/Makefile.in: Regenerated.
1192 * include/system/linux/aio_abi.h: New header.
1193 * include/system/linux/mroute.h: New header.
1194 * include/system/linux/mroute6.h: New header.
1195 * include/system/linux/perf_event.h: New header.
1196 * include/system/linux/types.h: New header.
c915a581
JJ
1197
1198 PR sanitizer/59136
1199 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1200 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1201 and -I/-include flags.
1202 * lsan/Makefile.am (liblsan_la_LIBADD): Add
1203 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1204 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1205 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1206 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1207 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1208 libbacktrace.
1209 * README.gcc: Document that also lsan and ubsan are
1210 maintained in compiler-rt upstream.
1211 * libbacktrace/Makefile.am: New file.
1212 * libbacktrace/backtrace-rename.h: New file.
1213 * libbacktrace/backtrace-supported.h.in: New file.
1214 * libbacktrace/bridge.cc: New file.
1215 * configure.ac: Add tests needed for libbacktrace build
1216 within libsanitizer.
1217 * sanitizer_common/Makefile.in: Regenerated.
1218 * lsan/Makefile.in: Regenerated.
1219 * tsan/Makefile.in: Regenerated.
1220 * ubsan/Makefile.in: Regenerated.
1221 * libbacktrace/Makefile.in: Generated.
1222 * config.h.in: Regenerated.
1223 * configure: Regenerated.
1224 * Makefile.in: Regenerated.
1225 * interception/Makefile.in: Regenerated.
1226 * asan/Makefile.in: Regenerated.
1227 * aclocal.m4: Regenerated.
1228
409f3b46
KS
12292013-12-19 Kostya Serebryany <kcc@google.com>
1230
92a285c1 1231 * sanitizer_common/sanitizer_platform_limits_posix.cc:
409f3b46
KS
1232 workaround for missing definition of EOWNERDEAD, backport
1233 from upstream r196779.
1234
079db27b
L
12352013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1236
1237 * sanitizer_common/sanitizer_platform_limits_posix.h
1238 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1239 (__sanitizer_clock_t): Use long long for x32.
1240
7efb96c0
L
12412013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1242
1243 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1244 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1245 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1246
df9d1700
L
12472013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1248
1249 * configure.ac (link_sanitizer_common): Add -lm.
1250 * configure: Regenerated.
1251
c4c16f74
KS
12522013-12-05 Kostya Serebryany <kcc@google.com>
1253
1254 * All source files: Merge from upstream r196489.
1255 * merge.sh: Add *.S to the list of merged files.
1256
666ee4d6
YG
12572013-12-05 Yury Gribov <y.gribov@samsung.com>
1258
1259 PR sanitizer/59368
1260 * Makefile.am (gcc_version): Added gcc_version.
1261 * Makefile.in: Regenerate.
1262
df77f0e4
KS
12632013-12-05 Kostya Serebryany <kcc@google.com>
1264
1265 * All source files: Merge from upstream r196090.
1266 * tsan/Makefile.am (tsan_files): Added new files.
1267 * tsan/Makefile.in: Regenerate.
1268 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1269 * sanitizer_common/Makefile.in: Regenerate.
1270 * lsan/Makefile.am (lsan_files): Added new files.
1271 * lsan/Makefile.in: Regenerate.
1272
35814b03
JJ
12732013-11-29 Jakub Jelinek <jakub@redhat.com>
1274 Yury Gribov <y.gribov@samsung.com>
1275
1276 PR sanitizer/59063
1277 * libsanitizer.spec.in: Add spec file to hold link flags for
1278 various sanitizer libs.
1279 * configure.ac: Check whether clock_* routines come from librt.
1280 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1281 configure.ac.
1282 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1283 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1284 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1285 * asan/Makefile.in: Regenerate.
1286 * interception/Makefile.in: Regenerate.
1287 * lsan/Makefile.in: Regenerate.
1288 * sanitizer_common/Makefile.in: Regenerate.
1289 * tsan/Makefile.in: Regenerate.
1290 * ubsan/Makefile.in: Regenerate.
1291 * Makefile.in: Regenerate.
1292 * configure: Regenerate.
1293
049558ed
JJ
12942013-11-28 Jakub Jelinek <jakub@redhat.com>
1295 Yury Gribov <y.gribov@samsung.com>
1296
1297 PR sanitizer/59106
1298 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1299 don't need it.
1300 * ubsan/Makefile.in: Regenerated.
1301
9065ada9
JJ
13022013-11-22 Jakub Jelinek <jakub@redhat.com>
1303
1304 PR sanitizer/59061
1305 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1306 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1307 * configure: Regenerated.
1308 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1309 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1310 * lsan/Makefile.in: Regenerated.
1311
486294d4
MS
13122013-11-22 Mike Stump <mikestump@comcast.net>
1313
1314 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1315 change from upstream to fix build.
1316
2621c860
YG
13172013-11-18 Yury Gribov <y.gribov@samsung.com>
1318
1319 PR sanitizer/59106
1320 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1321 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1322 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1323 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1324 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1325 * asan/Makefile.in: Regenerate.
1326 * interception/Makefile.in: Regenerate.
1327 * tsan/Makefile.in: Regenerate.
1328 * lsan/Makefile.in: Regenerate.
1329 * sanitizer_common/Makefile.in: Regenerate.
1330
c8e1377b
KS
13312013-11-15 Kostya Serebryany <kcc@google.com>
1332
1333 PR sanitizer/58994
92a285c1
ML
1334 Backport from upstream revision 194573
1335 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1336 back to the original functions in the common libsanitizer
1337 interceptors and the __cxa_atexit() interceptor on Darwin.
c8e1377b 1338
c3d77f3a
PB
13392013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1340
1341 PR sanitizer/59009
1342 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1343 ifdef out more source.
1344
d00106f4
JJ
13452013-11-12 Jakub Jelinek <jakub@redhat.com>
1346
1347 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1348 ifdef out almost the whole source.
1349 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1350
e276866f
L
13512013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1352
1353 PR sanitizer/59018
1354 * sanitizer_common/sanitizer_platform_limits_posix.cc
1355 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1356 defined.
1357
f5c36cfc
L
13582013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1359
1360 PR sanitizer/59018
1361 * sanitizer_common/sanitizer_platform_limits_linux.cc
1362 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1363 defined.
1364 * sanitizer_common/sanitizer_platform_limits_posix.h
1365 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1366 defined.
1367 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1368 is defined.
1369 (__sanitizer___kernel_gid_t): Likewise.
1370 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1371 is defined.
1372
e45de14e
L
13732013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 PR sanitizer/59018
1376 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1377 2 64-bit integers to save and restore fn and arg. Properly load
1378 newtls/child_tidptr into r8/r10.
1379
38693e39
L
13802013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1381
1382 PR sanitizer/59018
1383 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1384 internal_munmap, internal_open, internal_read, internal_write,
1385 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1386 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1387 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1388 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1389
ef1b3fda
KS
13902013-11-04 Kostya Serebryany <kcc@google.com>
1391
1392 * All source files: Merge from upstream r191666.
1393 * merge.sh: Added lsan.
1394 * configure.ac (AC_CONFIG_FILES): Added lsan.
1395 * Makefile.am (SUBDIRS): Added lsan.
1396 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1397 * asan/Makefile.am (asan_files): Added new files.
1398 (libasan_la_LIBADD): Added a dependency on lsan.
1399 * lsan/Makefile.am: New file.
1400 * asan/Makefile.in: Regenerate.
1401 * lsan/Makefile.in: Regenerate.
1402 * Makefile.in: Regenerate.
1403 * configure: Regenerate.
1404 * sanitizer_common/Makefile.in: Regenerate.
1405
3cbe17f7
AM
14062013-09-20 Alan Modra <amodra@gmail.com>
1407
1408 * configure: Regenerate.
1409
0cea211e
IS
14102013-09-01 Iain Sandoe <iain@codesourcery.com>
1411
1412 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1413 libinterception.la for Darwin.
1414 * ubsan/Makefile.in: Regenerate.
1415
de5a5fa1
MP
14162013-08-30 Jakub Jelinek <jakub@redhat.com>
1417
1418 * Makefile.am (SUBDIRS): Add ubsan.
1419 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1420 * merge.sh: Merge ubsan.
1421 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1422 * sanitizer_common/sanitizer_printf.cc: Likewise.
1423 * sanitizer_common/sanitizer_common.h: Likewise.
1424 * ubsan: New directory. Import ubsan runtime from llvm.
1425
634cfa2b
CL
14262013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1427
1428 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1429 Cherry pick upstream r182922.
1430
8a5800b8
CL
14312013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1432
1433 * configure.tgt: Add ARM pattern.
1434
a745e444 14352013-03-22 Jakub Jelinek <jakub@redhat.com>
1868beee
JJ
1436
1437 PR other/43620
1438 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1439 * Makefile.in: Regenerated.
1440 * asan/Makefile.in: Regenerated.
1441 * interception/Makefile.in: Regenerated.
1442 * sanitizer_common/Makefile.in: Regenerated.
1443 * tsan/Makefile.in: Regenerated.
1444
4c376126
JJ
14452013-02-28 Jakub Jelinek <jakub@redhat.com>
1446
1447 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1448 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1449 0x4fffffffffULL.
1450
7d613735
JJ
14512013-02-22 Jakub Jelinek <jakub@redhat.com>
1452
1453 PR sanitizer/56393
1454 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1455 libasan_preinit.o.
1456 (libasan_preinit.o): Depend on asan_preinit.o.
1457 * asan/Makefile.in: Regenerated.
1458 * asan/asan_preinit.cc: New file, synced from upstream.
1459 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1460
ecdbd01a 14612013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
304886c5
JH
1462
1463 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1464 dynamic/asan_interceptors_dynamic.cc.
1465 * asan/Makefile.in: Regenerated.
1466 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1467
4be7da26
JJ
14682013-02-21 Jakub Jelinek <jakub@redhat.com>
1469
1470 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1471 defined. Add used attribute.
1472
7df59255
KS
14732013-02-21 Kostya Serebryany <kcc@google.com>
1474
1475 * All source files: Merge from upstream r175733.
1476 * sanitizer_common/Makefile.am: Added a new file.
1477 * sanitizer_common/Makefile.in: Regenerated.
1478
8afd2ed7
L
14792013-02-14 H.J. Lu <hongjiu.lu@intel.com>
1480
1481 PR bootstrap/56327
1482 * interception/interception.h (OFF_T): Merged from upstream
1483 r175140.
1484
6422242b
JJ
14852013-02-13 Jakub Jelinek <jakub@redhat.com>
1486
1487 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1488
b4ab7d34
KS
14892013-02-13 Kostya Serebryany <kcc@google.com>
1490
8afd2ed7 1491 PR sanitizer/56128
b4ab7d34
KS
1492 * All source files: Merge from upstream r175049.
1493 * interception/Makefile.am: added include path.
1494 * interception/Makefile.in: Regenerated.
1495
34dc17ed
JH
14962013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
1497
1498 * configure.tgt: Disable build on darwin9 and earlier.
1499
2660d12d
KS
15002013-01-23 Kostya Serebryany <kcc@google.com>
1501
8afd2ed7 1502 PR sanitizer/55989
2660d12d
KS
1503 * All source files: Merge from upstream r173241.
1504 * merge.sh: Support merging .inc files.
1505
19006c45
JJ
15062013-01-16 Jakub Jelinek <jakub@redhat.com>
1507
1508 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1509 -Wno-c99-extensions.
1510 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1511 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1512 * sanitizer_common/Makefile.in: Regenerated.
1513 * interception/Makefile.in: Regenerated.
1514 * asan/Makefile.in: Regenerated.
1515
edadb734
WM
15162013-01-10 Wei Mi <wmi@google.com>
1517
1518 PR sanitizer/55488
1519 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1520 * tsan/Makefile.in: Regenerated.
1521 * tsan/tsan_rtl.h: Enable HACKY_CALL.
1522
e9772e16
KS
15232013-01-10 Kostya Serebryany <kcc@google.com>
1524
1525 * All source files: Merge from upstream r171973.
1526 * sanitizer_common/Makefile.am: Added new files.
1527 * asan/Makefile.am: Likewise.
1528 * tsan/Makefile.am: Likewise.
1529 * sanitizer_common/Makefile.in: Regenerated.
1530 * asan/Makefile.in: Likewise.
1531 * tsan/Makefile.in: Likewise.
1532
7f7162cf
L
15332013-01-07 H.J. Lu <hongjiu.lu@intel.com>
1534
1535 * asan/Makefile.am (libasan_la_LIBADD): Replace
1536 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1537 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1538 * Makefile.in: Regenerated.
1539 * configure: Likewise.
1540 * asan/Makefile.in: Likewise.
1541 * interception/Makefile.in: Likewise.
1542 * sanitizer_common/Makefile.in: Likewise.
1543 * tsan/Makefile.in: Likewise.
1544
b488a2c7
L
15452012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1546
1547 * Makefile.am (AM_MAKEFLAGS): Restored.
1548 * interception/Makefile.am: Likewise.
1549 * sanitizer_common/Makefile.am: Likewise.
1550 * tsan/Makefile.am: Likewise.
1551 * Makefile.in: Regenerated.
1552 * asan/Makefile.in: Likewise.
1553 * interception/Makefile.in: Likewise.
1554 * sanitizer_common/Makefile.in: Likewise.
1555 * tsan/Makefile.in: Likewise.
1556
e8adb21b
L
15572012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1558
1559 * Makefile.am (MAKEOVERRIDES): Restored.
1560 * asan/Makefile.am: Likewise.
1561 * interception/Makefile.am: Likewise.
1562 * sanitizer_common/Makefile.am: Likewise.
1563 * tsan/Makefile.am: Likewise.
1564 * Makefile.in: Regenerated.
1565 * asan/Makefile.in: Likewise.
1566 * interception/Makefile.in: Likewise.
1567 * sanitizer_common/Makefile.in: Likewise.
1568 * tsan/Makefile.in: Likewise.
1569
e1e953d9
L
15702012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1571
1572 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1573 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1574 * Makefile.in: Regenerated.
1575 * configure: Likewise.
1576 * asan/Makefile.in: Likewise.
1577 * interception/Makefile.in: Likewise.
1578 * sanitizer_common/Makefile.in: Likewise.
1579 * tsan/Makefile.in: Likewise.
1580
a62d3903
L
15812012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1582
1583 * Makefile.am (AM_MAKEFLAGS): Removed.
1584 (MAKEOVERRIDES): Likewise.
1585 * asan/Makefile.am: Likewise.
1586 * interception/Makefile.am: Likewise.
1587 * sanitizer_common/Makefile.am: Likewise.
1588 * tsan/Makefile.am: Likewise.
1589 * Makefile.in: Regenerated.
1590 * asan/Makefile.in: Likewise.
1591 * interception/Makefile.in: Likewise.
1592 * sanitizer_common/Makefile.in: Likewise.
1593 * tsan/Makefile.in: Likewise.
1594
d10a2df2
L
15952012-12-11 H.J. Lu <hongjiu.lu@intel.com>
1596
1597 PR sanitizer/55533
1598 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1599 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1600 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1601 (AM_MAKEFLAGS): Remove CC and CXX.
1602 * interception/Makefile.am: Likewise.
1603 * sanitizer_common/Makefile.am: Likewise.
1604 * tsan/Makefile.am: Likewise.
1605 * Makefile.in: Regenerated.
1606 * aclocal.m4: Likewise.
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
957fee09
PB
16132012-12-06 Peter Bergner <bergner@vnet.ibm.com>
1614
1615 * configure.tgt: Enable build on powerpc*-linux.
1616
ecdbd01a 16172012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
3157880f
JH
1618
1619 PR 55599/sanitizer
d10a2df2
L
1620 * configure.ac: Set enable_static=no on darwin.
1621 * configure: Regenerated.
3157880f 1622
695edbac
KS
16232012-12-06 Kostya Serebryany <kcc@google.com>
1624
1625 * All files: Merge from upstream r169392.
1626
a0408454
KS
16272012-12-05 Kostya Serebryany <kcc@google.com>
1628
1629 * All files: Merge from upstream r169371.
1630
41d37c56 16312012-12-04 Kostya Serebryany <kcc@google.com>
ecdbd01a 1632 Jack Howarth <howarth@bromo.med.uc.edu>
8c4d267c
KS
1633
1634 PR 55521/sanitizer
1635 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1636 * Makefile.am: Don't build interception subdir when
1637 USING_MAC_INTERPOSE defined.
1638 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1639 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1640 Compile asan_interceptors_dynamic.cc but not libinterception
1641 when USING_MAC_INTERPOSE defined.
1642 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1643 * configure: Regenerated.
1644 * Makefile.in: Likewise.
1645 * asan/Makefile.in: Likewise.
1646 * interception/Makefile.in: Likewise.
1647 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1648 * asan/asan_mac.cc: Likewise.
1649 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1650 and use MISSING_BLOCKS_SUPPORT.
1651 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1652 * interception/mach_override/LICENSE.txt: Remove unused file.
1653 * interception/mach_override/mach_override.c: Likewise.
1654 * interception/mach_override/mach_override.h: Likewise.
1655 * interception/mach_override: Remove unused directory.
1656
a23ed040
L
16572012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1658
1659 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1660 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1661 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1662 files.
1663 (AM_MAKEFLAGS): Restore CC and CXX.
1664 * interception/Makefile.am: Likewise.
1665 * sanitizer_common/Makefile.am: Likewise.
1666 * tsan/Makefile.am: Likewise.
1667 * Makefile.in: Regenerated.
1668 * aclocal.m4: Likewise.
1669 * configure: Likewise.
1670 * asan/Makefile.in: Likewise.
1671 * interception/Makefile.in: Likewise.
1672 * sanitizer_common/Makefile.in: Likewise.
1673 * tsan/Makefile.in: Likewise.
1674
2ed685b8
L
16752012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1676
1677 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1678 * configure.ac (ACX_NONCANONICAL_TARGET): New.
1679 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1680 files.
1681 (AM_MAKEFLAGS): Remove CC and CXX.
1682 * interception/Makefile.am: Likewise.
1683 * sanitizer_common/Makefile.am: Likewise.
1684 * tsan/Makefile.am: Likewise.
1685 * Makefile.in: Regenerated.
1686 * aclocal.m4: Likewise.
1687 * configure: Likewise.
1688 * asan/Makefile.in: Likewise.
1689 * interception/Makefile.in: Likewise.
1690 * sanitizer_common/Makefile.in: Likewise.
1691 * tsan/Makefile.in: Likewise.
1692
4ba5ca46
KS
16932012-11-27 Kostya Serebryany <kcc@google.com>
1694
1695 * All files: Merge from upstream r168699.
1696
41d37c56 16972012-11-24 Kostya Serebryany <kcc@google.com>
ecdbd01a 1698 Jack Howarth <howarth@bromo.med.uc.edu>
f246eadc
JH
1699
1700 * interception/mach_override/mach_override.c: Migrate from llvm.
1701 * interception/mach_override/mach_override.h: Likewise.
1702 * interception/mach_override/LICENSE.txt: Likewise.
1703 * configure.tgt: Add darwin to supported targets.
1704 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1705 * interception/Makefile.am: Compile mach_override.c when
1706 USING_MACH_OVERRIDE defined.
1707 * configure: Regenerated.
1708 * interception/Makefile.in: Likewise.
1709
9cb5411c
L
17102012-11-23 H.J. Lu <hongjiu.lu@intel.com>
1711
1712 PR sanitizer/55450
1713 * tsan/Makefile.am (gcc_version): New.
1714 * tsan/Makefile.in: Regenerated.
1715
3409d40e 17162012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1717
e297eb60
KS
1718 * merge.sh: Support tsan, support added/removed files.
1719 * tsan/Makefile.am: Remove tsan_printf.cc.
1720 * tsan/Makefile.in: Regenerated.
1721 * other files: Merge from upstream r168514.
1722
17232012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1724
e297eb60 1725 * merge.sh: New file.
3409d40e 1726
64548f3b
JJ
17272012-11-23 Jakub Jelinek <jakub@redhat.com>
1728
1729 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1730 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1731 automake conditional instead of !MULTISUBDIR32.
1732 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1733 for 64-bit multilib.
1734 * configure.ac: Check for void * size, source in configure.tgt,
1735 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1736 * configure: Regenerated.
1737 * Makefile.in: Regenerated.
1738 * tsan/Makefile.in: Regenerated.
1739
cd0be65c
WM
17402012-11-22 Wei Mi <wmi@google.com>
1741
1742 * tsan: New directory. Import tsan runtime from llvm.
1743 * configure.ac: Add 64 bits tsan build.
1744 * Makefile.am: Likewise.
1745 * configure: Regenerated.
1746 * Makefile.in: Likewise.
1747
5cba83a8
KS
17482012-11-21 Kostya Serebryany <kcc@google.com>
1749
9cb5411c 1750 * README.gcc: Extend the README.gcc with mode details.
5cba83a8 1751
b014e124
KS
17522012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1753
1754 * sanitizer_common/sanitizer_linux.cc
1755 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1756 (internal_mmap): Use it.
1757 (internal_filesize): Likewise.
1758
2b723e21
TT
17592012-11-16 Tom Tromey <tromey@redhat.com>
1760
1761 * configure.ac: Invoke AM_MAINTAINER_MODE.
1762 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1763 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1764
d1caed14
L
17652012-11-16 H.J. Lu <hongjiu.lu@intel.com>
1766
1767 PR other/55333
1768 * include/sanitizer/common_interface_defs.h (uhwptr): New type
1769 for hardware pointer.
1770 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1771 Replace uptr with uhwptr for stack unwind.
1772
f3754998
DS
17732012-11-16 Dodji Seketeli <dodji@redhat.com>
1774
1775 * configure.tgt: Enable build on sparc linux.
1776
f64bcb29
L
17772012-11-15 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 * configure.ac: Properly set MULTISUBDIR.
1780 * asan/Makefile.am (gcc_version): New.
1781 * interception/Makefile.am (gcc_version): Likewise.
1782 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1783 * configure: Regenerated.
1784 * asan/Makefile.in: Likewise.
1785 * interception/Makefile.in: Likewise.
1786 * sanitizer_common/Makefile.in: Likewise.
1787
2a6346c4
L
17882012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1789
1790 PR other/55291
1791 * configure.ac (--enable-version-specific-runtime-libs): New option.
1792 (AC_CANONICAL_SYSTEM): New.
1793 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1794 (toolexecdir): Support multilib.
1795 (toolexeclibdir): Likewise.
1796 (multilib_arg): New.
1797 * Makefile.in: Regenerated.
1798 * aclocal.m4: Likewise.
1799 * configure: Likewise.
1800 * asan/Makefile.in: Likewise.
1801 * interception/Makefile.in: Likewise.
1802 * sanitizer_common/Makefile.in: Likewise.
1803
4a56a7be
L
18042012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1805
1806 PR other/55292
1807 Backport from upstream revision 167883
1808 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1809 __x86_64__ instead of __WORDSIZE.
1810 (internal_filesize): Likwise.
1811
4053ca2c
L
18122012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1813
1814 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1815 * Makefile.in: Regenerated.
1816 * configure: Likewise.
1817
a2479b3d
L
18182012-11-13 H.J. Lu <hongjiu.lu@intel.com>
1819
1820 PR other/55304
1821 * acinclude.m4: New file.
1822 * Makefile.am (ACLOCAL_AMFLAGS): New.
1823 * configure.ac (AC_PREREQ): Set to 2.64.
1824 (AC_CONFIG_AUX_DIR): Set to "..".
1825 * Makefile.in: Regenerated.
1826 * aclocal.m4: Likewise.
1827 * configure: Likewise.
1828 * asan/Makefile.in: Likewise.
1829 * interception/Makefile.in: Likewise.
1830 * sanitizer_common/Makefile.in: Likewise.
1831
1832 * config.guess: Removed.
1833 * config.sub: Likewise.
1834 * depcomp: Likewise.
1835 * install-sh: Likewise.
1836 * ltmain.sh: Likewise.
1837 * missing: Likewise.
1838
93bf5390
RH
18392012-11-13 Richard Henderson <rth@redhat.com>
1840
1841 * configure.tgt: New file.
1842
d2860e72
DM
18432012-11-12 David S. Miller <davem@davemloft.net>
1844
1845 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1846
f35db108
WM
18472012-10-29 Wei Mi <wmi@google.com>
1848
1849 Initial checkin: migrate asan runtime from llvm.