]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/ChangeLog
Fix tests for std::variant to match original intention
[thirdparty/gcc.git] / libsanitizer / ChangeLog
CommitLineData
0f22b8fd 12019-04-08 Martin Liska <mliska@suse.cz>
2
3 * LOCAL_PATCHES: Add revision.
4
c802feb3 52019-04-08 Martin Liska <mliska@suse.cz>
6
7 PR sanitizer/89941
8 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined):
9 Reapply patch from r259664.
10 * sanitizer_common/sanitizer_platform_limits_posix.h (defined):
11 Likewise.
12
f66b1e56 132019-03-13 Eric Botcazou <ebotcazou@adacore.com>
14
15 PR sanitizer/80953
16 Merge from LLVM revision 355980
17 * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC.
18 (kAllocatorSize): Likewise.
19 (DefaultSizeClassMap): Likewise.
20 * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define.
21 (SHADOW_OFFSET): Define for SPARC.
22 Include asan_mapping_sparc64.h for SPARC 64-bit.
23 * asan/asan_mapping_sparc64.h: New file.
24
98c4475f 252019-03-13 Eric Botcazou <ebotcazou@adacore.com>
26
27 PR sanitizer/80953
28 Merge from LLVM revision 355979
29 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
30 copy Global objects for SPARC with GCC.
31
d8b81a84 322019-03-13 Eric Botcazou <ebotcazou@adacore.com>
33
34 PR sanitizer/80953
35 Merge from LLVM revision 355978
36 * sanitizer_common/sanitizer_allocator_primary32.h
37 (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if
38 SANITIZER_SIGN_EXTENDED_ADDRESSES is set.
39 (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES.
40 (ComputeRegionId): Likewise.
41 * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return
42 appropriate value for SPARC 64-bit.
43 * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE):
44 Define for SPARC.
45 (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit.
46
0e7a25e4 472019-03-13 Eric Botcazou <ebotcazou@adacore.com>
48
49 PR sanitizer/80953
50 Merge from LLVM revision 355965
51 * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for
52 SPARC/Linux.
53 (GetPcSpBp): Likewise.
54 * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc):
55 Adjust for SPARC.
56 * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND):
57 Define to 1 for SPARC.
58 * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite.
59 * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack):
60 Adjust the PC address for SPARC with GCC.
61
8946305c 622019-03-06 Martin Liska <mliska@suse.cz>
63
64 PR sanitizer/88684
65 * sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
66 (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
67 * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
68 Likewise.
69
67811311 702019-02-20 H.J. Lu <hongjiu.lu@intel.com>
71
72 PR sanitizer/89409
73 * sanitizer_common/sanitizer_linux.cc (internal_readlink):
74 Cherry-pick compiler-rt r354451.
75
047ecb20 762019-01-23 Jonny Grant <jg@jguk.org>
77
78 PR sanitizer/89010
79 * libsanitizer/README.gcc: Update to current https URLs.
80
27e7ab5c 812018-12-27 Martin Liska <mliska@suse.cz>
82
047ecb20 83 PR sanitizer/86229
27e7ab5c 84 * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
85 pick rL350085.
86 * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
87
47b20047 882018-11-09 Martin Liska <mliska@suse.cz>
89
90 * LOCAL_PATCHES: Include one local patch.
91
ecf79305 922018-11-09 Martin Liska <mliska@suse.cz>
93
94 PR sanitizer/87892
95 * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return
96 1 when CPU_COUNT macro is not defined.
97
57b9b442 982018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com>
99
100 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
101 Disable ASLR for powerpc64 when using sanitizers.
102
f1bd24fe 1032018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
104
105 PR sanitizer/80953
106 * configure.tgt (sparc*-*-solaris2.11*): Enable.
107 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
108
f25b46aa 1092018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
110
111 PR sanitizer/80953
112 * sanitizer_common/sanitizer_internal_defs.h,
113 sanitizer_common/sanitizer_platform_limits_solaris.h,
114 sanitizer_common/sanitizer_procmaps_solaris.cc,
115 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
116 revision 346153.
117 * sanitizer_common/sanitizer_stacktrace.h,
118 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
119 compiler-rt revision 346155.
120
48c519ac 1212018-11-05 Segher Boessenkool <segher@kernel.crashing.org>
122
123 * LOCAL_PATCHES: Add r258525.
124 * sanitizer_common/sanitizer_stacktrace.cc
125 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
126 for PowerPC SYSV ABI.
127
8e6f3e57 1282018-11-05 Martin Liska <mliska@suse.cz>
129
130 PR sanitizer/87860
131 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream
132 r346129.
133
f00f02a3 1342018-10-31 Joseph Myers <joseph@codesourcery.com>
135
136 PR bootstrap/82856
137 * Makefile.am: Include multilib.am.
138 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
139 * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
140 interception/Makefile.in, libbacktrace/Makefile.in,
141 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
142 ubsan/Makefile.in: Regenerate.
143
563528ff 1442018-10-31 Martin Liska <mliska@suse.cz>
145
146 * LOCAL_PATCHES: Update to installed revisions.
147
c2fd1b8d 1482018-10-31 Martin Liska <mliska@suse.cz>
149
150 * ubsan/ubsan_platform.h: Add ifndef as we define it with
151 -DCAN_SANITIZE_UB CFLAGS.
152
7c1662f6 1532018-10-31 Martin Liska <mliska@suse.cz>
154
155 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
156
87ccb23e 1572018-10-31 Martin Liska <mliska@suse.cz>
158
159 * LOCAL_PATCHES: Update patch list.
160 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
161 patches from GCC's trunk.
162 (CheckODRViolationViaPoisoning): Likewise.
163 (RegisterGlobal): Likewise.
164 * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
165 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
166 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
167 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
168 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
169 (struct CFICheckFailData): Likewise.
170 (RECOVERABLE): Likewise.
171
0921f0f2 1722018-10-31 Martin Liska <mliska@suse.cz>
173
174 * config.h.in: Regenerate.
175 * configure: Likewise.
176 * sanitizer_common/Makefile.am: Include new files, remove old
177 files.
178 * sanitizer_common/Makefile.in: Regenerate.
179 * ubsan/Makefile.am: Include new files, remove old
180 files.
181 * ubsan/Makefile.in: Likewise.
182 * asan/Makefile.am: Include new files.
183 * asan/Makefile.in: Regenerate.
184
d2ef4bee 1852018-10-31 Martin Liska <mliska@suse.cz>
186
187 * All source files: Merge from upstream 345033.
188
3ae7a7a7 1892018-10-31 Martin Liska <mliska@suse.cz>
190
191 * HOWTO_MERGE: Enhance documentation.
192 * merge.sh: Add support for git as well.
193
1a1934d3 1942018-08-02 Martin Liska <mliska@suse.cz>
195
c9e63184 196 PR sanitizer/86022
1a1934d3 197 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
c9e63184 198 Cherry-pick compiler-rt revision 338606.
1a1934d3 199
8da91d6a 2002018-08-01 Marek Polacek <polacek@redhat.com>
201
202 PR sanitizer/86759
203 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
204 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
205 319180.
206
5ab8a859 2072018-07-25 H.J. Lu <hongjiu.lu@intel.com>
208
209 PR target/86560
210 * asan/asan_interceptors.cc (swapcontext) Cherry-pick
211 compiler-rt revision 337603.
212 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
213 Likewise.
214
1aef015c 2152018-07-05 Jakub Jelinek <jakub@redhat.com>
216
217 Revert
218 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
219
220 PR sanitizer/84250
221 * Makefile.am: Reorder libs.
222 * Makefile.in: Regenerate.
223 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
224 libsanitizer_ubsan.la.
225 * asan/Makefile.in: Regenerate.
226 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
227 * ubsan/Makefile.in: Regenerate.
228
142c8344 2292018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
230
231 PR sanitizer/84250
232 * Makefile.am: Reorder libs.
233 * Makefile.in: Regenerate.
234 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
235 libsanitizer_ubsan.la.
236 * asan/Makefile.in: Regenerate.
237 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
238 * ubsan/Makefile.in: Regenerate.
239
2e897e1d 2402018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
241
c9e63184 242 PR sanitizer/86090
243 * configure.ac: Check for lstat and readlink.
244 * configure, config.h.in: Rebuild.
2e897e1d 245
27453e96 2462018-05-31 Matthias Klose <doko@ubuntu.com>
247
248 PR sanitizer/86012
249 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
250 SIZEOF_STRUCT_USTAT for 32bit sparc.
251
15f0e921 2522018-05-24 H.J. Lu <hongjiu.lu@intel.com>
253
254 PR sanitizer/85835
255 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
256 include <sys/ustat.h> for Linux.
257 (SIZEOF_STRUCT_USTAT): New.
258 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
259
254e8a1e 2602018-04-26 Hans-Peter Nilsson <hp@axis.com>
261
6dc485f2 262 * configure.tgt <mips*-*-linux*>: Enable build, excluding
263 mips*64*-*-linux*.
264
b34a8884 265 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
266 take the shortcut to #include <sys/stat.h> for MIPS instead of
267 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
268 or wrong to get the kernel struct stat.
269 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
270 Correct the value for 32-bit non-android struct_kernel_stat_sz.
271
254e8a1e 272 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
273 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
274
6726651f 2752018-04-24 H.J. Lu <hongjiu.lu@intel.com>
276
277 * configure: Regenerated.
278
ee8fea81 2792018-04-19 Jakub Jelinek <jakub@redhat.com>
280
281 * configure: Regenerated.
282
124c259e 2832018-04-18 David Malcolm <dmalcolm@redhat.com>
284
285 PR jit/85384
286 * configure: Regenerate.
287
f57e4560 2882018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
289
290 PR sanitizer/85389
291 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
292 from 0xa0000000000ULL to ~(uptr)0.
293
c5173492 2942018-03-19 Jakub Jelinek <jakub@redhat.com>
295
296 PR sanitizer/84761
297 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
298 Define if not defined.
299 (DL_INTERNAL_FUNCTION): Don't define.
300 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
301 determine at runtime whether to use regparm(3), stdcall calling
302 convention for older glibcs or normal calling convention for
303 newer glibcs for call to _dl_get_tls_static_info.
304
8028151c 3052018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
306
307 * sanitizer_common/sanitizer_stacktrace.cc
308 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
309 for PowerPC SYSV ABI.
310
5611e648 3112018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
312
313 PR target/84148
314 * configure: Regenerate.
315
7c2b1dbc 3162018-02-05 Martin Liska <mliska@suse.cz>
317
318 * asan/asan_flags.inc: Cherry-pick upstream r323995.
319 * asan/asan_report.cc (CheckForInvalidPointerPair):
320 Cherry-pick upstream r323995.
321
abd8c0cf 3222018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323
324 PR sanitizer/82825
325 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
2a5177b8 326 r324284.
abd8c0cf 327
9334dd8b 3282018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
329
330 PR sanitizer/82824
331 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
332
eabe2d94 3332017-12-05 Martin Liska <mliska@suse.cz>
334 Jakub Jelinek <jakub@redhat.com>
335
336 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
337 * asan/asan_descriptions.h: Likewise.
338 * asan/asan_report.cc: Likewise.
339 * asan/asan_thread.cc: Likewise.
340 * asan/asan_thread.h: Likewise.
341
c5b2145b 3422017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
343
344 * acinclude.m4: Add enable.m4 and cet.m4.
345 * Makefile.in: Regenerate.
346 * asan/Makefile.am: Update AM_CXXFLAGS.
347 * asan/Makefile.in: Regenerate.
348 * configure: Likewise.
349 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
350 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
351 * interception/Makefile.am: Update AM_CXXFLAGS.
352 * interception/Makefile.in: Regenerate.
353 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
354 * libbacktrace/Makefile.in: Regenerate.
355 * lsan/Makefile.am: Update AM_CXXFLAGS.
356 * lsan/Makefile.in: Regenerate.
357 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
358 AM_CCASFLAGS.
359 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
360 Add _CET_ENDBR macro.
361 * sanitizer_common/Makefile.in: Regenerate.
362 * tsan/Makefile.am: Update AM_CXXFLAGS.
363 * tsan/Makefile.in: Regenerate.
364 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
365 * ubsan/Makefile.am: Update AM_CXXFLAGS.
366 * ubsan/Makefile.in: Regenerate.
367
48c07598 3682017-11-08 Jakub Jelinek <jakub@redhat.com>
369
370 PR bootstrap/82670
371 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
372 and ubsan_signals_standalone.cc.
373 * ubsan/Makefile.in: Regenerated.
374
1672bf66 3752017-11-05 Tom de Vries <tom@codesourcery.com>
376
377 PR other/82784
378 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
379 "do {} while (0)".
380 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
381
012c8dd6 3822017-10-20 Jakub Jelinek <jakub@redhat.com>
383
384 PR sanitizer/82595
385 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
386 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
387 liblsan_preinit.o.
388 (lsan_files): Remove lsan_preinit.cc.
389 (liblsan_preinit.o): New rule.
390 * lsan/Makefile.in: Regenerated.
391
36093749 3922017-10-19 Jakub Jelinek <jakub@redhat.com>
393
394 * All source files: Merge from upstream 315899.
c9e63184 395 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
36093749 396 include/sanitizer/tsan_interface.h.
c9e63184 397 * asan/libtool-version: Bump the libasan SONAME.
36093749 398 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
399 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
c9e63184 400 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
36093749 401 sancov_flags.cc, sanitizer_allocator_checks.cc,
402 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
403 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
404 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
405 and sanitizer_coverage_mapping_libcdep.cc.
c9e63184 406 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
36093749 407 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
408 (ubsan_files): Add ubsan_init_standalone.cc and
409 ubsan_signals_standalone.cc.
410 * ubsan/libtool-version: Bump the libubsan SONAME.
c9e63184 411 * asan/Makefile.in: Regenerate.
412 * lsan/Makefile.in: Regenerate.
413 * sanitizer_common/Makefile.in: Regenerate.
414 * tsan/Makefile.in: Regenerate.
36093749 415 * ubsan/Makefile.in: Regenerate.
416
5713d08c 4172017-10-05 H.J. Lu <hongjiu.lu@intel.com>
418
419 PR sanitizer/82379
420 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
421 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
422
8c7d7ad7 4232017-10-02 Jakub Jelinek <jakub@redhat.com>
424
425 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
426 Define.
427
b6e91323 4282017-08-07 Jakub Jelinek <jakub@redhat.com>
429
430 * include/system/sys/ptrace.h: New file.
431
b4fce8f9 4322017-07-28 Jakub Jelinek <jakub@redhat.com>
433
434 PR sanitizer/80998
435 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
436 * ubsan/ubsan_checks.inc: Likewise.
437 * ubsan/ubsan_handlers.h: Likewise.
438
67dce058 4392017-07-14 Jakub Jelinek <jakub@redhat.com>
440
441 PR sanitizer/81066
442 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
443 * sanitizer_common/sanitizer_linux.cc: Likewise.
444 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
445 * tsan/tsan_platform_linux.cc: Likewise.
446
ca23873a 4472017-04-06 Martin Liska <mliska@suse.cz>
448
449 PR sanitizer/80166
450 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
451 Cherry-pick upstream r299036.
452
97e19e5a 4532017-03-22 Jakub Jelinek <jakub@redhat.com>
454
455 PR sanitizer/78158
456 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
457
3571ecd2 4582017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
459
460 PR sanitizer/79562
461 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
462 upstream r294806.
463
a479e13e 4642017-02-11 Jakub Jelinek <jakub@redhat.com>
465
466 PR sanitizer/79341
467 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
468 s390-linux 31-bit.
469 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
470 r294793.
471 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
472 upstream r294790.
473 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
474 r294799.
475
d2c32615 4762017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
477
478 PR sanitizer/78663
479 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
480 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
481
fff1179b 4822017-01-31 Jakub Jelinek <jakub@redhat.com>
483
484 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
485
72beb896 4862017-01-24 Jakub Jelinek <jakub@redhat.com>
487
8edac8ec 488 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
489
72beb896 490 PR sanitizer/79168
491 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
492 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
493 text.
494 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
495 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
496 * tsan/tsan_ppc_regs.h: Likewise.
497 * tsan/tsan_rtl_aarch64.S: Likewise.
498 * tsan/tsan_rtl_mips64.S: Likewise.
499 * tsan/tsan_rtl_ppc64.S: Likewise.
500
602de845 5012017-01-21 Jakub Jelinek <jakub@redhat.com>
502
503 PR other/79046
504 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
505 instead of cat to get version from BASE-VER file.
506 * asan/Makefile.am (gcc_version): Likewise.
507 * ubsan/Makefile.am (gcc_version): Likewise.
508 * sanitizer_common/Makefile.am (gcc_version): Likewise.
509 * lsan/Makefile.am (gcc_version): Likewise.
510 * tsan/Makefile.am (gcc_version): Likewise.
511 * interception/Makefile.in: Regenerated.
512 * asan/Makefile.in: Regenerated.
513 * ubsan/Makefile.in: Regenerated.
514 * sanitizer_common/Makefile.in: Regenerated.
515 * lsan/Makefile.in: Regenerated.
516 * tsan/Makefile.in: Regenerated.
517
0812bb06 5182017-01-17 Jakub Jelinek <jakub@redhat.com>
519
520 PR other/79046
521 * configure.ac: Add GCC_BASE_VER.
522 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
523 get version from BASE-VER file.
524 * libbacktrace/Makefile.in: Regenerated.
525 * interception/Makefile.in: Regenerated.
526 * asan/Makefile.in: Regenerated.
527 * ubsan/Makefile.in: Regenerated.
528 * configure: Regenerated.
529 * sanitizer_common/Makefile.in: Regenerated.
530 * lsan/Makefile.in: Regenerated.
531 * Makefile.in: Regenerated.
532 * tsan/Makefile.in: Regenerated.
533
97df8fb5 5342017-01-10 James Clarke <jrtc27@jrtc27.com>
535
536 PR sanitizer/78992
537 * sanitizer_common/sanitizer_platform_limits_posix.h
538 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
539
d22f22b7 5402016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
541
542 * LOCAL_PATCHES: Add revision.
543
ee253a43 5442016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
545
546 PR sanitizer/78532
547 * sanitizer_common/sanitizer_platform_limits_posix.h
548 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
549 versions.
550
7ca41676 5512016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
552
553 * LOCAL_PATCHES: Remove r242480.
554
d355e0f4 5552016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
556
557 * LOCAL_PATCHES: Add revision.
558
a11195e1 5592016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
560
561 PR sanitizer/78267
562 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
563 compiler supports blocks extension.
564
984b17a2 5652016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
566
567 * LOCAL_PATCHES: Add revision.
568
8049d74f 5692016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
570
571 PR sanitizer/78294
572 * tsan/tsan_rtl.cc: Add missing attribute.
573
e800a7e0 5742016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
575
576 * LOCAL_PATCHES: New file.
577
0a875e25 5782016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
579
580 PR sanitizer/78307
581 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
582 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
583 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
584 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
585 function.
586 (__ubsan_handle_cfi_bad_type_abort): Likewise.
587 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
588 (__ubsan_handle_cfi_bad_type): Export function.
589 (__ubsan_handle_cfi_bad_type_abort): Likewise.
590 * HOWTO_MERGE: Update documentation.
591
29a8a56b 5922016-11-15 Matthias Klose <doko@ubuntu.com>
593
594 * configure: Regenerate.
595
ed6ca63b 5962016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
597
598 * asan/asan_globals.cc (RegisterGlobal): Do not call
599 CheckODRViolationViaPoisoning.
600 (CheckODRViolationViaPoisoning): Remove.
601
9c9fc2c1 6022016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
603
604 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
605 compiled code with GCC when extracting the caller PC for ARM if no
606 valid frame pointer is available.
607
c7f7a33b 6082016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
609
610 PR sanitizer/63958
611 Reapply:
612 2014-10-14 David S. Miller <davem@davemloft.net>
613
614 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
615 Define at __kernel_time_t, as needed for sparc.
616 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
617 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
618 (__sanitizer): Define struct___old_kernel_stat_sz,
619 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
620 (__sanitizer_ipc_perm): Adjust for sparc targets.
621 (__sanitizer_shmid_ds): Likewsie.
622 (__sanitizer_sigaction): Likewise.
623 (IOC_SIZE): Likewsie.
624
23e39437 6252016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
626
627 * All source files: Merge from upstream 285547.
628 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
629 variable.
630 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
631 * asan/Makefile.am (asan_files): Add new files.
632 * asan/Makefile.in: Regenerate.
633 * ubsan/Makefile.in: Likewise.
634 * lsan/Makefile.in: Likewise.
635 * tsan/Makefile.am (tsan_files): Add new files.
636 * tsan/Makefile.in: Regenerate.
637 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
638 (EXTRA_libsanitizer_common_la_SOURCES): Define.
639 (libsanitizer_common_la_LIBADD): Likewise.
640 (libsanitizer_common_la_DEPENDENCIES): Likewise.
641 * sanitizer_common/Makefile.in: Regenerate.
642 * interception/Makefile.in: Likewise.
643 * libbacktace/Makefile.in: Likewise.
644 * Makefile.in: Likewise.
645 * configure: Likewise.
646 * merge.sh: Handle builtins/assembly.h merging.
647 * builtins/assembly.h: New file.
648 * asan/libtool-version: Bump the libasan SONAME.
649
70499770 6502016-09-21 Jakub Jelinek <jakub@redhat.com>
651
652 PR sanitizer/77567
653 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
654
daea048c 6552016-09-05 Jakub Jelinek <jakub@redhat.com>
656
657 PR sanitizer/77396
658 * asan/asan_globals.cc: Cherry-pick upstream r280657.
659
fd4d2052 6602016-08-12 Jakub Jelinek <jakub@redhat.com>
661
662 PR sanitizer/71042
663 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
664 * tsan/tsan_rtl_aarch64.S: Likewise.
665
13b118ff 6662016-07-23 Alan Modra <amodra@gmail.com>
667
668 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
669 * configure.ac: Don't substitute OBSTACK_DEFS.
670 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
671 * tsan/Makefile.am: Likewise.
672 * configure: Regenerate.
673 * Makefile.in: Regenerate.
674 * asan/Makefile.in: Regenerate.
675 * interception/Makefile.in: Regenerate.
676 * libbacktrace/Makefile.in: Regenerate.
677 * lsan/Makefile.in: Regenerate.
678 * sanitizer_common/Makefile.in: Regenerate.
679 * tsan/Makefile.in: Regenerate.
680 * ubsan/Makefile.in: Regenerate.
681
985d727f 6822016-05-17 Jakub Jelinek <jakub@redhat.com>
683
684 PR sanitizer/71160
685 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
686 and r269633.
687
fb96547d 6882016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
689
690 PR sanitizer/70624
691 * asan/asan_mac.cc: Cherry pick upstream r266868.
692
a1095d58 6932016-01-19 Jakub Jelinek <jakub@redhat.com>
694
695 PR sanitizer/68824
696 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
697 InitializeInterceptors): Cherry pick upstream r258119.
698
a2a7452b 6992016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
700
701 * configure.ac: Replace the hard-coded -ldl requirement for
702 link_sanitizer_common with a configure time check for -ldl.
703 * configure: Regenerate.
704
186e88ff 7052015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
706
707 * include/system/linux/asm/ptrace.h: Move to ...
708 * include/system/asm/ptrace.h: ... this.
709
803ec05a 7102015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
711
712 * include/system/linux/asm/ptrace.h: New header.
713
61b44d84 7142015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
715
716 * All source files: Merge from upstream r253555.
717 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
718 dependences for TSan for aarch64-*-linux* targets.
719 * tsan/Makefile.am: Add new source files.
720 * configure: Regenerate.
721 * tsan/Makefile.in: Likewise.
722
f6528435 7232015-11-09 Alan Modra <amodra@gmail.com>
724
725 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
726 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
727 interceptors.
728 * configure.ac: Substitute OBSTACK_DEFS.
729 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
730 * tsan/Makefile.am: Likewise.
731 * configure: Regenerate.
732 * Makefile.in: Regenerate.
733 * asan/Makefile.in: Regenerate.
734 * interception/Makefile.in: Regenerate.
735 * libbacktrace/Makefile.in: Regenerate.
736 * lsan/Makefile.in: Regenerate.
737 * sanitizer_common/Makefile.in: Regenerate.
738 * tsan/Makefile.in: Regenerate.
739 * ubsan/Makefile.in: Regenerate.
740
1775aeab 7412015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
742
743 PR bootstrap/68041
744 * configure.ac (link_sanitizer_common): Link against librt only if it
745 contains shm_open, required by sanitizers.
746 (CXX_ABI_NEEDED): Remove variable.
747 * configure: Regenerate.
748 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
749 * ubsan/Makefile.in: Regenerate.
750
e18652ec 7512015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
752
753 * HOWTO_MERGE: New file.
754
e57d6cc3 7552015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
756
757 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
758 compiled code with GCC when extracting the caller PC for ARM if no
759 valid frame pointer is available.
760
299794cf 7612015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
762
763 PR bootstrap/63888
764 Reapply:
765 2015-02-20 Jakub Jelinek <jakub@redhat.com>
766
767 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
768 support until it is rewritten upstream.
769
770 * c-c++-common/asan/pr63888.c: New test.
771
c849f8ec 7722015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
773
774 PR sanitizer/63958
775 Reapply:
776 2014-10-14 David S. Miller <davem@davemloft.net>
777
778 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
779 Define at __kernel_time_t, as needed for sparc.
780 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
781 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
782 (__sanitizer): Define struct___old_kernel_stat_sz,
783 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
784 (__sanitizer_ipc_perm): Adjust for sparc targets.
785 (__sanitizer_shmid_ds): Likewsie.
786 (__sanitizer_sigaction): Likewise.
787 (IOC_SIZE): Likewsie.
788
5645a48f 7892015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
790
791 * All source files: Merge from upstream r250806.
792 * configure.ac (link_sanitizer_common): Add -lrt flag.
793 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
794 Set USE_CXX_ABI_FLAG=true for darwin.
795 * asan/Makefile.am (asan_files): Add new files.
796 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
797 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
798 * asan/Makefile.in: Regenerate.
799 * ubsan/Makefile.am (ubsan_files): Add new files.
800 (DEFS): Add DCAN_SANITIZE_UB=1.
801 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
802 * ubsan/Makefile.in: Regenerate.
803 * tsan/Makefile.am (tsan_files): Add new files.
804 (DEFS): Add DCAN_SANITIZE_UB=0.
805 * tsan/Makefile.in: Regenerate.
806 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
807 * sanitizer_common/Makefile.in: Regenerate.
808 * asan/libtool-version: Bump the libasan SONAME.
809
5f6ec267 8102015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
811
812 PR sanitizer/67258
813 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
814
64a69623 8152015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
816
817 PR sanitizer/63927
818 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
819 for PowerPC.
820
afd2b956 8212015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
822
823 PR sanitizer/63927
824 * sanitizer_common/sanitizer_stacktrace.cc
825 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
826 find the link register at an offset of 16 from the base of the
827 caller's stack frame.
828
f05994ca 8292015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
830
831 * Makefile.in: Regenerated with automake-1.11.6.
832 * aclocal.m4: Likewise.
833 * asan/Makefile.in: Likewise.
834 * configure: Likewise.
835 * interception/Makefile.in: Likewise.
836 * libbacktrace/Makefile.in: Likewise.
837 * lsan/Makefile.in: Likewise.
838 * sanitizer_common/Makefile.in: Likewise.
839 * tsan/Makefile.in: Likewise.
840 * ubsan/Makefile.in: Likewise.
841
e0965b31 8422015-04-13 Yury Gribov <y.gribov@samsung.com>
843
844 PR sanitizer/64839
845 * sanitizer_common/sanitizer_platform.h: Cherry pick
846 upstream r234470.
847 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
848 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
849 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
850 * Makefile.in: Regenerate.
851 * asan/Makefile.in: Regenerate.
852 * config.h.in: Regenerate.
853 * configure: Regenerate.
854 * interception/Makefile.in: Regenerate.
855 * libbacktrace/Makefile.in: Regenerate.
856 * lsan/Makefile.in: Regenerate.
857 * sanitizer_common/Makefile.in: Regenerate.
858 * tsan/Makefile.in: Regenerate.
859 * ubsan/Makefile.in: Regenerate.
860
861
2a236b31 8622015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
863
864 PR sanitizer/59009
865 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
866 upstream r230324.
867 * sanitizer_common/sanitizer_platform.h: Likewise.
868 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
869
400e957b 8702015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
871
872 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
873 upstream 224508 and 224755.
874
1fd59e4a 8752015-03-09 Jakub Jelinek <jakub@redhat.com>
876
877 PR sanitizer/63958
878 Reapply:
879 2014-10-14 David S. Miller <davem@davemloft.net>
880
881 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
882 Define at __kernel_time_t, as needed for sparc.
883 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
884 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
885 (__sanitizer): Define struct___old_kernel_stat_sz,
886 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
887 (__sanitizer_ipc_perm): Adjust for sparc targets.
888 (__sanitizer_shmid_ds): Likewsie.
889 (__sanitizer_sigaction): Likewise.
890 (IOC_SIZE): Likewsie.
891
c2cc6aab 8922015-02-27 Peter Bergner <bergner@vnet.ibm.com>
893
894 * configure.tgt: Enable build on powerpc*le-*-linux.
895
da002466 8962015-02-23 Jakub Jelinek <jakub@redhat.com>
b03e9c2b 897
898 PR bootstrap/63888
899 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
900 support until it is rewritten upstream.
901
729c43c9 9022015-01-26 Matthias Klose <doko@ubuntu.com>
903
904 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
905 * configure: Regenerate.
906
766ed4ed 9072015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
908
729c43c9 909 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
766ed4ed 910 * configure: Regenerate.
729c43c9 911 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
766ed4ed 912
a96683ba 9132015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
914
915 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
916 * configure: Regenerate.
917 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
918 (libtsan_la_DEPENDENCIES): Likewise.
919 * Makefile.in: Regenerate.
920 * asan/Makefile.in: Regenerate.
921 * interception/Makefile.in: Regenerate.
922 * libbacktrace/Makefile.in: Regenerate.
923 * lsan/Makefile.in: Regenerate.
924 * sanitizer_common/Makefile.in: Regenerate.
925 * tsan/Makefile.in: Regenerate.
926 * ubsan/Makefile.in: Regenerate.
927
e0489c2f 9282015-01-22 Jakub Jelinek <jakub@redhat.com>
929
930 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
931
2619e241 9322015-01-21 Jakub Jelinek <jakub@redhat.com>
933
934 PR sanitizer/64435
935 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
936 upstream r226637.
937 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
938 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
939
0f9736fa 9402015-01-20 Jakub Jelinek <jakub@redhat.com>
941
942 PR sanitizer/64632
943 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
944
b392d682 9452015-01-19 Jakub Jelinek <jakub@redhat.com>
946
947 PR sanitizer/64435
948 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
949 upstream r223925.
950
a36fdeb0 9512015-01-13 Jakub Jelinek <jakub@redhat.com>
952
953 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
954 upstream r224518 and r224519.
955 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
956 r224834.
957
b5e0c6c9 9582014-12-16 Jakub Jelinek <jakub@redhat.com>
959
960 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
961 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
962 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
963 upstream r224308.
964
4e8a08d4 9652014-11-21 H.J. Lu <hongjiu.lu@intel.com>
966
967 PR bootstrap/63784
968 * configure: Regenerated.
969
c957f26c 9702014-11-21 Jakub Jelinek <jakub@redhat.com>
971
972 PR target/61137
973 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
974 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
975
ec485a18 9762014-11-14 Uros Bizjak <ubizjak@gmail.com>
977
978 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
979 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
980 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
981 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
982 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
983 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
984 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
985 * sanitizer_common/Makefile.in: Regenerate.
986 * asan/Makefile.in: Ditto.
987 * lsan/Makefile.in: Ditto.
988 * interception/Makefile.in: Ditto.
989 * tsan/Makefile.in: Ditto.
990 * libbacktrace/Makefile.in: Ditto.
991 * ubsan/Makefile.in: Ditto.
992
0328398d 9932014-11-13 Kostya Serebryany <kcc@google.com>
994
995 * All source files: Merge from upstream r221802.
996 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
997 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
998 with 'start' to follow the new interface.
999 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1000 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1001 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1002 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1003 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1004 files.
1005 (AM_CXXFLAGS): Added -std=c++11.
1006 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1007 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1008 * asan/Makefile.in: Regenerate.
1009 * interception/Makefile.in: Regenerate.
1010 * libbacktrace/Makefile.in: Regenerate.
1011 * lsan/Makefile.in: Regenerate.
1012 * sanitizer_common/Makefile.in: Regenerate.
1013 * tsan/Makefile.in: Regenerate.
1014 * ubsan/Makefile.in: Regenerate.
1015
7c407808 10162014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1017
1018 PR target/63610
1019 * configure: Regenerate.
1020
663bca43 10212014-10-16 Martin Liska <mliska@suse.cz>
1022
1023 * asan/Makefile.am: IPA ICF pass is disabled.
1024 * asan/Makefile.in: Likewise.
1025
418e1528 10262014-10-14 David S. Miller <davem@davemloft.net>
1027
1028 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1029 Define at __kernel_time_t, as needed for sparc.
1030 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1031 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1032 (__sanitizer): Define struct___old_kernel_stat_sz,
1033 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1034 (__sanitizer_ipc_perm): Adjust for sparc targets.
1035 (__sanitizer_shmid_ds): Likewsie.
1036 (__sanitizer_sigaction): Likewsie.
1037 (IOC_SIZE): Likewsie.
1038
be8bde2c 10392014-10-14 Jakub Jelinek <jakub@redhat.com>
1040
1041 * ubsan/Makefile.am (DEFS): Add -DPIC.
1042 * ubsan/Makefile.in: Regenerated.
1043
6153b62d 10442014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
1045
1046 * configure.tgt: Enable build on aarch64*-linux.
1047
a9586c9c 10482014-09-19 Kostya Serebryany <kcc@google.com>
1049
1050 * All source files: Merge from upstream r218156.
1051 * asan/Makefile.am (asan_files): Added new files.
1052 * asan/Makefile.in: Regenerate.
1053 * ubsan/Makefile.am (ubsan_files): Added new files.
1054 * ubsan/Makefile.in: Regenerate.
1055 * tsan/Makefile.am (tsan_files): Added new files.
1056 * tsan/Makefile.in: Regenerate.
1057 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1058 files.
1059 * sanitizer_common/Makefile.in: Regenerate.
1060 * asan/libtool-version: Bump the libasan SONAME.
1061
4a94b996 10622014-09-10 Jakub Jelinek <jakub@redhat.com>
1063
1064 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
1065 upstream r215485, r217389, r217391 and r217400.
1066
c7f894a8 10672014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
1068
1069 * sanitizer_common/sanitizer_common_interceptors.inc:
1070 Cherry pick upstream r211008.
1071
8b412356 10722014-06-11 Richard Biener <rguenther@suse.de>
1073
1074 * asan/asan_linux.cc: Cherry pick upstream r210012.
1075
c98fd781 10762014-05-30 Jakub Jelinek <jakub@redhat.com>
1077
1078 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
1079 r209879.
1080 * sanitizer_common/sanitizer_common.h: Likewise.
1081 * asan/asan_mapping.h: Likewise.
1082 * asan/asan_linux.cc: Likewise.
1083 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
1084 * sanitizer_common/sanitizer_allocator.h: Likewise.
1085
c8cc2651 10862014-05-23 Marek Polacek <polacek@redhat.com>
1087
1088 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
1089 floating-point types.
1090
7d752f28 10912014-05-22 Kostya Serebryany <kcc@google.com>
1092
1093 * All source files: Merge from upstream r209283.
1094 * asan/Makefile.am (asan_files): Added new files.
1095 * asan/Makefile.in: Regenerate.
1096 * tsan/Makefile.am (tsan_files): Added new files.
1097 * tsan/Makefile.in: Regenerate.
c7f894a8 1098 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1099 files.
7d752f28 1100 * sanitizer_common/Makefile.in: Regenerate.
1101
910b1e93 11022014-05-14 Yury Gribov <y.gribov@samsung.com>
1103
1104 PR sanitizer/61100
1105 * Makefile.am (nodist_saninclude_HEADERS): Install
1106 public headers.
1107 * Makefile.in: Regenerate.
1108
16af5a83 11092014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1110
1111 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1112 Add ../../libbacktrace/sort.c.
1113 * libbacktrace/Makefile.in: Regenerate.
1114 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1115
aafa729b 11162014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1117
1118 * configure.tgt: Unsupported for little endian PowerPC for now.
1119
5fc77694 11202014-02-04 Jakub Jelinek <jakub@redhat.com>
1121
af20e853 1122 PR sanitizer/60055
1123 * tsan/tsan_flags.cc (__tsan_default_options): Add
1124 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
1125 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1126
5fc77694 1127 PR sanitizer/60038
1128 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1129 sanitizer_atomic.h and unistd.h.
1130 (kThreadDescriptorSize): Made static, remove initializer and const,
1131 change type to atomic_uintptr_t.
1132 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1133 query glibc version, compute kThreadDescriptorSize depending on
1134 glibc version minor number.
1135 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1136 kThreadDescriptorSize directly.
1137
e78a493b 11382014-01-23 Yury Gribov <y.gribov@samsung.com>
1139 Jakub Jelinek <jakub@redhat.com>
1140
1141 PR sanitizer/57316
1142 * configure.ac: Check for missing syscalls.
1143 * Makefile.am: Likewise.
1144 * configure: Regenerate.
1145 * Makefile.in: Regenerate.
1146
da09c450 11472014-01-09 Jakub Jelinek <jakub@redhat.com>
1148
9071f223 1149 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1150 (LibbacktraceSymbolizer::Demangle): New declaration.
1151 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1152 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1153 method if possible.
1154 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1155 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1156 (struct CplusV3DemangleData): New type.
1157 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1158 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1159 SymbolizeDataCallback): Use CplusV3Demangle.
1160 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1161 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1162 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1163 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1164 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1165 cplus_demangle_init_info, cplus_demangle_mangled_name,
1166 cplus_demangle_operators, cplus_demangle_print,
1167 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1168 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1169 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1170 Define.
1171 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1172 (memcmp, strncmp): Redefine.
1173 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1174 ../../libiberty/cp-demangle.c.
1175 * libbacktrace/bridge.cc (__asan_internal_memcmp,
1176 __asan_internal_strncmp): New functions.
1177 * sanitizer_common/Makefile.in: Regenerated.
1178 * libbacktrace/Makefile.in: Regenerated.
1179 * configure: Regenerated.
1180 * configure.ac: Regenerated.
1181 * config.h.in: Regenerated.
1182
da09c450 1183 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1184 -isystem $(top_srcdir)/include/system.
1185 * sanitizer_common/Makefile.in: Regenerated.
1186 * include/system/linux/aio_abi.h: New header.
1187 * include/system/linux/mroute.h: New header.
1188 * include/system/linux/mroute6.h: New header.
1189 * include/system/linux/perf_event.h: New header.
1190 * include/system/linux/types.h: New header.
1e25dcad 1191
1192 PR sanitizer/59136
1193 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1194 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1195 and -I/-include flags.
1196 * lsan/Makefile.am (liblsan_la_LIBADD): Add
1197 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1198 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1199 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1200 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1201 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1202 libbacktrace.
1203 * README.gcc: Document that also lsan and ubsan are
1204 maintained in compiler-rt upstream.
1205 * libbacktrace/Makefile.am: New file.
1206 * libbacktrace/backtrace-rename.h: New file.
1207 * libbacktrace/backtrace-supported.h.in: New file.
1208 * libbacktrace/bridge.cc: New file.
1209 * configure.ac: Add tests needed for libbacktrace build
1210 within libsanitizer.
1211 * sanitizer_common/Makefile.in: Regenerated.
1212 * lsan/Makefile.in: Regenerated.
1213 * tsan/Makefile.in: Regenerated.
1214 * ubsan/Makefile.in: Regenerated.
1215 * libbacktrace/Makefile.in: Generated.
1216 * config.h.in: Regenerated.
1217 * configure: Regenerated.
1218 * Makefile.in: Regenerated.
1219 * interception/Makefile.in: Regenerated.
1220 * asan/Makefile.in: Regenerated.
1221 * aclocal.m4: Regenerated.
1222
d7eeafed 12232013-12-19 Kostya Serebryany <kcc@google.com>
1224
c9e63184 1225 * sanitizer_common/sanitizer_platform_limits_posix.cc:
d7eeafed 1226 workaround for missing definition of EOWNERDEAD, backport
1227 from upstream r196779.
1228
4a3acb2c 12292013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 * sanitizer_common/sanitizer_platform_limits_posix.h
1232 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1233 (__sanitizer_clock_t): Use long long for x32.
1234
e2691b3b 12352013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1236
1237 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1238 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1239 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1240
af8b3274 12412013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1242
1243 * configure.ac (link_sanitizer_common): Add -lm.
1244 * configure: Regenerated.
1245
08e6260c 12462013-12-05 Kostya Serebryany <kcc@google.com>
1247
1248 * All source files: Merge from upstream r196489.
1249 * merge.sh: Add *.S to the list of merged files.
1250
961b987d 12512013-12-05 Yury Gribov <y.gribov@samsung.com>
1252
1253 PR sanitizer/59368
1254 * Makefile.am (gcc_version): Added gcc_version.
1255 * Makefile.in: Regenerate.
1256
4fc7b5ac 12572013-12-05 Kostya Serebryany <kcc@google.com>
1258
1259 * All source files: Merge from upstream r196090.
1260 * tsan/Makefile.am (tsan_files): Added new files.
1261 * tsan/Makefile.in: Regenerate.
1262 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1263 * sanitizer_common/Makefile.in: Regenerate.
1264 * lsan/Makefile.am (lsan_files): Added new files.
1265 * lsan/Makefile.in: Regenerate.
1266
30ded303 12672013-11-29 Jakub Jelinek <jakub@redhat.com>
1268 Yury Gribov <y.gribov@samsung.com>
1269
1270 PR sanitizer/59063
1271 * libsanitizer.spec.in: Add spec file to hold link flags for
1272 various sanitizer libs.
1273 * configure.ac: Check whether clock_* routines come from librt.
1274 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1275 configure.ac.
1276 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1277 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1278 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1279 * asan/Makefile.in: Regenerate.
1280 * interception/Makefile.in: Regenerate.
1281 * lsan/Makefile.in: Regenerate.
1282 * sanitizer_common/Makefile.in: Regenerate.
1283 * tsan/Makefile.in: Regenerate.
1284 * ubsan/Makefile.in: Regenerate.
1285 * Makefile.in: Regenerate.
1286 * configure: Regenerate.
1287
4b435152 12882013-11-28 Jakub Jelinek <jakub@redhat.com>
1289 Yury Gribov <y.gribov@samsung.com>
1290
1291 PR sanitizer/59106
1292 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1293 don't need it.
1294 * ubsan/Makefile.in: Regenerated.
1295
f8ff4a27 12962013-11-22 Jakub Jelinek <jakub@redhat.com>
1297
1298 PR sanitizer/59061
1299 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1300 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1301 * configure: Regenerated.
1302 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1303 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1304 * lsan/Makefile.in: Regenerated.
1305
81f1ae97 13062013-11-22 Mike Stump <mikestump@comcast.net>
1307
1308 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1309 change from upstream to fix build.
1310
e2b07e6f 13112013-11-18 Yury Gribov <y.gribov@samsung.com>
1312
1313 PR sanitizer/59106
1314 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1315 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1316 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1317 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1318 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1319 * asan/Makefile.in: Regenerate.
1320 * interception/Makefile.in: Regenerate.
1321 * tsan/Makefile.in: Regenerate.
1322 * lsan/Makefile.in: Regenerate.
1323 * sanitizer_common/Makefile.in: Regenerate.
1324
0e4cc8fa 13252013-11-15 Kostya Serebryany <kcc@google.com>
1326
1327 PR sanitizer/58994
c9e63184 1328 Backport from upstream revision 194573
1329 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1330 back to the original functions in the common libsanitizer
1331 interceptors and the __cxa_atexit() interceptor on Darwin.
0e4cc8fa 1332
579f61ef 13332013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1334
1335 PR sanitizer/59009
1336 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1337 ifdef out more source.
1338
579de319 13392013-11-12 Jakub Jelinek <jakub@redhat.com>
1340
1341 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1342 ifdef out almost the whole source.
1343 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1344
6f595bd1 13452013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1346
1347 PR sanitizer/59018
1348 * sanitizer_common/sanitizer_platform_limits_posix.cc
1349 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1350 defined.
1351
9a668cb0 13522013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1353
1354 PR sanitizer/59018
1355 * sanitizer_common/sanitizer_platform_limits_linux.cc
1356 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1357 defined.
1358 * sanitizer_common/sanitizer_platform_limits_posix.h
1359 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1360 defined.
1361 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1362 is defined.
1363 (__sanitizer___kernel_gid_t): Likewise.
1364 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1365 is defined.
1366
010ebb27 13672013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1368
1369 PR sanitizer/59018
1370 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1371 2 64-bit integers to save and restore fn and arg. Properly load
1372 newtls/child_tidptr into r8/r10.
1373
23e9a412 13742013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1375
1376 PR sanitizer/59018
1377 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1378 internal_munmap, internal_open, internal_read, internal_write,
1379 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1380 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1381 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1382 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1383
1e80ce41 13842013-11-04 Kostya Serebryany <kcc@google.com>
1385
1386 * All source files: Merge from upstream r191666.
1387 * merge.sh: Added lsan.
1388 * configure.ac (AC_CONFIG_FILES): Added lsan.
1389 * Makefile.am (SUBDIRS): Added lsan.
1390 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1391 * asan/Makefile.am (asan_files): Added new files.
1392 (libasan_la_LIBADD): Added a dependency on lsan.
1393 * lsan/Makefile.am: New file.
1394 * asan/Makefile.in: Regenerate.
1395 * lsan/Makefile.in: Regenerate.
1396 * Makefile.in: Regenerate.
1397 * configure: Regenerate.
1398 * sanitizer_common/Makefile.in: Regenerate.
1399
9613c003 14002013-09-20 Alan Modra <amodra@gmail.com>
1401
1402 * configure: Regenerate.
1403
22e8a488 14042013-09-01 Iain Sandoe <iain@codesourcery.com>
1405
1406 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1407 libinterception.la for Darwin.
1408 * ubsan/Makefile.in: Regenerate.
1409
9e46467d 14102013-08-30 Jakub Jelinek <jakub@redhat.com>
1411
1412 * Makefile.am (SUBDIRS): Add ubsan.
1413 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1414 * merge.sh: Merge ubsan.
1415 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1416 * sanitizer_common/sanitizer_printf.cc: Likewise.
1417 * sanitizer_common/sanitizer_common.h: Likewise.
1418 * ubsan: New directory. Import ubsan runtime from llvm.
1419
cba44bca 14202013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1421
1422 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1423 Cherry pick upstream r182922.
1424
3e8585ab 14252013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1426
1427 * configure.tgt: Add ARM pattern.
1428
4bb539b9 14292013-03-22 Jakub Jelinek <jakub@redhat.com>
42c99425 1430
1431 PR other/43620
1432 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1433 * Makefile.in: Regenerated.
1434 * asan/Makefile.in: Regenerated.
1435 * interception/Makefile.in: Regenerated.
1436 * sanitizer_common/Makefile.in: Regenerated.
1437 * tsan/Makefile.in: Regenerated.
1438
e23df248 14392013-02-28 Jakub Jelinek <jakub@redhat.com>
1440
1441 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1442 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1443 0x4fffffffffULL.
1444
a16e0d2d 14452013-02-22 Jakub Jelinek <jakub@redhat.com>
1446
1447 PR sanitizer/56393
1448 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1449 libasan_preinit.o.
1450 (libasan_preinit.o): Depend on asan_preinit.o.
1451 * asan/Makefile.in: Regenerated.
1452 * asan/asan_preinit.cc: New file, synced from upstream.
1453 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1454
21ebaa24 14552013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
c9880cba 1456
1457 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1458 dynamic/asan_interceptors_dynamic.cc.
1459 * asan/Makefile.in: Regenerated.
1460 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1461
663891d9 14622013-02-21 Jakub Jelinek <jakub@redhat.com>
1463
1464 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1465 defined. Add used attribute.
1466
5a59af67 14672013-02-21 Kostya Serebryany <kcc@google.com>
1468
1469 * All source files: Merge from upstream r175733.
1470 * sanitizer_common/Makefile.am: Added a new file.
1471 * sanitizer_common/Makefile.in: Regenerated.
1472
60e300bf 14732013-02-14 H.J. Lu <hongjiu.lu@intel.com>
1474
1475 PR bootstrap/56327
1476 * interception/interception.h (OFF_T): Merged from upstream
1477 r175140.
1478
77c5abed 14792013-02-13 Jakub Jelinek <jakub@redhat.com>
1480
1481 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1482
7da89e80 14832013-02-13 Kostya Serebryany <kcc@google.com>
1484
60e300bf 1485 PR sanitizer/56128
7da89e80 1486 * All source files: Merge from upstream r175049.
1487 * interception/Makefile.am: added include path.
1488 * interception/Makefile.in: Regenerated.
1489
9c311450 14902013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
1491
1492 * configure.tgt: Disable build on darwin9 and earlier.
1493
4a2c1ffc 14942013-01-23 Kostya Serebryany <kcc@google.com>
1495
60e300bf 1496 PR sanitizer/55989
4a2c1ffc 1497 * All source files: Merge from upstream r173241.
1498 * merge.sh: Support merging .inc files.
1499
fc516ab5 15002013-01-16 Jakub Jelinek <jakub@redhat.com>
1501
1502 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1503 -Wno-c99-extensions.
1504 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1505 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1506 * sanitizer_common/Makefile.in: Regenerated.
1507 * interception/Makefile.in: Regenerated.
1508 * asan/Makefile.in: Regenerated.
1509
fe43b65c 15102013-01-10 Wei Mi <wmi@google.com>
1511
1512 PR sanitizer/55488
1513 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1514 * tsan/Makefile.in: Regenerated.
1515 * tsan/tsan_rtl.h: Enable HACKY_CALL.
1516
f5ed5428 15172013-01-10 Kostya Serebryany <kcc@google.com>
1518
1519 * All source files: Merge from upstream r171973.
1520 * sanitizer_common/Makefile.am: Added new files.
1521 * asan/Makefile.am: Likewise.
1522 * tsan/Makefile.am: Likewise.
1523 * sanitizer_common/Makefile.in: Regenerated.
1524 * asan/Makefile.in: Likewise.
1525 * tsan/Makefile.in: Likewise.
1526
56579030 15272013-01-07 H.J. Lu <hongjiu.lu@intel.com>
1528
1529 * asan/Makefile.am (libasan_la_LIBADD): Replace
1530 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1531 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1532 * Makefile.in: Regenerated.
1533 * configure: Likewise.
1534 * asan/Makefile.in: Likewise.
1535 * interception/Makefile.in: Likewise.
1536 * sanitizer_common/Makefile.in: Likewise.
1537 * tsan/Makefile.in: Likewise.
1538
39847690 15392012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1540
1541 * Makefile.am (AM_MAKEFLAGS): Restored.
1542 * interception/Makefile.am: Likewise.
1543 * sanitizer_common/Makefile.am: Likewise.
1544 * tsan/Makefile.am: Likewise.
1545 * Makefile.in: Regenerated.
1546 * asan/Makefile.in: Likewise.
1547 * interception/Makefile.in: Likewise.
1548 * sanitizer_common/Makefile.in: Likewise.
1549 * tsan/Makefile.in: Likewise.
1550
8df53e6d 15512012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1552
1553 * Makefile.am (MAKEOVERRIDES): Restored.
1554 * asan/Makefile.am: Likewise.
1555 * interception/Makefile.am: Likewise.
1556 * sanitizer_common/Makefile.am: Likewise.
1557 * tsan/Makefile.am: Likewise.
1558 * Makefile.in: Regenerated.
1559 * asan/Makefile.in: Likewise.
1560 * interception/Makefile.in: Likewise.
1561 * sanitizer_common/Makefile.in: Likewise.
1562 * tsan/Makefile.in: Likewise.
1563
714784f5 15642012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1565
1566 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1567 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1568 * Makefile.in: Regenerated.
1569 * configure: Likewise.
1570 * asan/Makefile.in: Likewise.
1571 * interception/Makefile.in: Likewise.
1572 * sanitizer_common/Makefile.in: Likewise.
1573 * tsan/Makefile.in: Likewise.
1574
4515964f 15752012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1576
1577 * Makefile.am (AM_MAKEFLAGS): Removed.
1578 (MAKEOVERRIDES): Likewise.
1579 * asan/Makefile.am: Likewise.
1580 * interception/Makefile.am: Likewise.
1581 * sanitizer_common/Makefile.am: Likewise.
1582 * tsan/Makefile.am: Likewise.
1583 * Makefile.in: Regenerated.
1584 * asan/Makefile.in: Likewise.
1585 * interception/Makefile.in: Likewise.
1586 * sanitizer_common/Makefile.in: Likewise.
1587 * tsan/Makefile.in: Likewise.
1588
c8723c2d 15892012-12-11 H.J. Lu <hongjiu.lu@intel.com>
1590
1591 PR sanitizer/55533
1592 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1593 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1594 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1595 (AM_MAKEFLAGS): Remove CC and CXX.
1596 * interception/Makefile.am: Likewise.
1597 * sanitizer_common/Makefile.am: Likewise.
1598 * tsan/Makefile.am: Likewise.
1599 * Makefile.in: Regenerated.
1600 * aclocal.m4: Likewise.
1601 * configure: Likewise.
1602 * asan/Makefile.in: Likewise.
1603 * interception/Makefile.in: Likewise.
1604 * sanitizer_common/Makefile.in: Likewise.
1605 * tsan/Makefile.in: Likewise.
1606
39368d08 16072012-12-06 Peter Bergner <bergner@vnet.ibm.com>
1608
1609 * configure.tgt: Enable build on powerpc*-linux.
1610
21ebaa24 16112012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
679cd496 1612
1613 PR 55599/sanitizer
c8723c2d 1614 * configure.ac: Set enable_static=no on darwin.
1615 * configure: Regenerated.
679cd496 1616
1a8a3492 16172012-12-06 Kostya Serebryany <kcc@google.com>
1618
1619 * All files: Merge from upstream r169392.
1620
4ab070fc 16212012-12-05 Kostya Serebryany <kcc@google.com>
1622
1623 * All files: Merge from upstream r169371.
1624
b19dc8b3 16252012-12-04 Kostya Serebryany <kcc@google.com>
21ebaa24 1626 Jack Howarth <howarth@bromo.med.uc.edu>
524c4bbb 1627
1628 PR 55521/sanitizer
1629 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1630 * Makefile.am: Don't build interception subdir when
1631 USING_MAC_INTERPOSE defined.
1632 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1633 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1634 Compile asan_interceptors_dynamic.cc but not libinterception
1635 when USING_MAC_INTERPOSE defined.
1636 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1637 * configure: Regenerated.
1638 * Makefile.in: Likewise.
1639 * asan/Makefile.in: Likewise.
1640 * interception/Makefile.in: Likewise.
1641 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1642 * asan/asan_mac.cc: Likewise.
1643 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1644 and use MISSING_BLOCKS_SUPPORT.
1645 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1646 * interception/mach_override/LICENSE.txt: Remove unused file.
1647 * interception/mach_override/mach_override.c: Likewise.
1648 * interception/mach_override/mach_override.h: Likewise.
1649 * interception/mach_override: Remove unused directory.
1650
59bf8046 16512012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1652
1653 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1654 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1655 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1656 files.
1657 (AM_MAKEFLAGS): Restore CC and CXX.
1658 * interception/Makefile.am: Likewise.
1659 * sanitizer_common/Makefile.am: Likewise.
1660 * tsan/Makefile.am: Likewise.
1661 * Makefile.in: Regenerated.
1662 * aclocal.m4: Likewise.
1663 * configure: Likewise.
1664 * asan/Makefile.in: Likewise.
1665 * interception/Makefile.in: Likewise.
1666 * sanitizer_common/Makefile.in: Likewise.
1667 * tsan/Makefile.in: Likewise.
1668
c50a199a 16692012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1670
1671 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1672 * configure.ac (ACX_NONCANONICAL_TARGET): New.
1673 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1674 files.
1675 (AM_MAKEFLAGS): Remove CC and CXX.
1676 * interception/Makefile.am: Likewise.
1677 * sanitizer_common/Makefile.am: Likewise.
1678 * tsan/Makefile.am: Likewise.
1679 * Makefile.in: Regenerated.
1680 * aclocal.m4: Likewise.
1681 * configure: Likewise.
1682 * asan/Makefile.in: Likewise.
1683 * interception/Makefile.in: Likewise.
1684 * sanitizer_common/Makefile.in: Likewise.
1685 * tsan/Makefile.in: Likewise.
1686
2862f959 16872012-11-27 Kostya Serebryany <kcc@google.com>
1688
1689 * All files: Merge from upstream r168699.
1690
b19dc8b3 16912012-11-24 Kostya Serebryany <kcc@google.com>
21ebaa24 1692 Jack Howarth <howarth@bromo.med.uc.edu>
9dbc5ff0 1693
1694 * interception/mach_override/mach_override.c: Migrate from llvm.
1695 * interception/mach_override/mach_override.h: Likewise.
1696 * interception/mach_override/LICENSE.txt: Likewise.
1697 * configure.tgt: Add darwin to supported targets.
1698 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1699 * interception/Makefile.am: Compile mach_override.c when
1700 USING_MACH_OVERRIDE defined.
1701 * configure: Regenerated.
1702 * interception/Makefile.in: Likewise.
1703
66ee291f 17042012-11-23 H.J. Lu <hongjiu.lu@intel.com>
1705
1706 PR sanitizer/55450
1707 * tsan/Makefile.am (gcc_version): New.
1708 * tsan/Makefile.in: Regenerated.
1709
36a69f19 17102012-11-23 Kostya Serebryany <kcc@google.com>
66ee291f 1711
0d996a11 1712 * merge.sh: Support tsan, support added/removed files.
1713 * tsan/Makefile.am: Remove tsan_printf.cc.
1714 * tsan/Makefile.in: Regenerated.
1715 * other files: Merge from upstream r168514.
1716
17172012-11-23 Kostya Serebryany <kcc@google.com>
66ee291f 1718
0d996a11 1719 * merge.sh: New file.
36a69f19 1720
a96132f2 17212012-11-23 Jakub Jelinek <jakub@redhat.com>
1722
1723 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1724 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1725 automake conditional instead of !MULTISUBDIR32.
1726 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1727 for 64-bit multilib.
1728 * configure.ac: Check for void * size, source in configure.tgt,
1729 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1730 * configure: Regenerated.
1731 * Makefile.in: Regenerated.
1732 * tsan/Makefile.in: Regenerated.
1733
9cf75457 17342012-11-22 Wei Mi <wmi@google.com>
1735
1736 * tsan: New directory. Import tsan runtime from llvm.
1737 * configure.ac: Add 64 bits tsan build.
1738 * Makefile.am: Likewise.
1739 * configure: Regenerated.
1740 * Makefile.in: Likewise.
1741
c8b20ad8 17422012-11-21 Kostya Serebryany <kcc@google.com>
1743
66ee291f 1744 * README.gcc: Extend the README.gcc with mode details.
c8b20ad8 1745
b0fda11b 17462012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1747
1748 * sanitizer_common/sanitizer_linux.cc
1749 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1750 (internal_mmap): Use it.
1751 (internal_filesize): Likewise.
1752
8bd478be 17532012-11-16 Tom Tromey <tromey@redhat.com>
1754
1755 * configure.ac: Invoke AM_MAINTAINER_MODE.
1756 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1757 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1758
1ceb064e 17592012-11-16 H.J. Lu <hongjiu.lu@intel.com>
1760
1761 PR other/55333
1762 * include/sanitizer/common_interface_defs.h (uhwptr): New type
1763 for hardware pointer.
1764 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1765 Replace uptr with uhwptr for stack unwind.
1766
d14d2847 17672012-11-16 Dodji Seketeli <dodji@redhat.com>
1768
1769 * configure.tgt: Enable build on sparc linux.
1770
8d77218e 17712012-11-15 H.J. Lu <hongjiu.lu@intel.com>
1772
1773 * configure.ac: Properly set MULTISUBDIR.
1774 * asan/Makefile.am (gcc_version): New.
1775 * interception/Makefile.am (gcc_version): Likewise.
1776 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1777 * configure: Regenerated.
1778 * asan/Makefile.in: Likewise.
1779 * interception/Makefile.in: Likewise.
1780 * sanitizer_common/Makefile.in: Likewise.
1781
5d941ad9 17822012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1783
1784 PR other/55291
1785 * configure.ac (--enable-version-specific-runtime-libs): New option.
1786 (AC_CANONICAL_SYSTEM): New.
1787 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1788 (toolexecdir): Support multilib.
1789 (toolexeclibdir): Likewise.
1790 (multilib_arg): New.
1791 * Makefile.in: Regenerated.
1792 * aclocal.m4: Likewise.
1793 * configure: Likewise.
1794 * asan/Makefile.in: Likewise.
1795 * interception/Makefile.in: Likewise.
1796 * sanitizer_common/Makefile.in: Likewise.
1797
231094d4 17982012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1799
1800 PR other/55292
1801 Backport from upstream revision 167883
1802 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1803 __x86_64__ instead of __WORDSIZE.
1804 (internal_filesize): Likwise.
1805
088d1585 18062012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1807
1808 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1809 * Makefile.in: Regenerated.
1810 * configure: Likewise.
1811
09eaad5e 18122012-11-13 H.J. Lu <hongjiu.lu@intel.com>
1813
1814 PR other/55304
1815 * acinclude.m4: New file.
1816 * Makefile.am (ACLOCAL_AMFLAGS): New.
1817 * configure.ac (AC_PREREQ): Set to 2.64.
1818 (AC_CONFIG_AUX_DIR): Set to "..".
1819 * Makefile.in: Regenerated.
1820 * aclocal.m4: Likewise.
1821 * configure: Likewise.
1822 * asan/Makefile.in: Likewise.
1823 * interception/Makefile.in: Likewise.
1824 * sanitizer_common/Makefile.in: Likewise.
1825
1826 * config.guess: Removed.
1827 * config.sub: Likewise.
1828 * depcomp: Likewise.
1829 * install-sh: Likewise.
1830 * ltmain.sh: Likewise.
1831 * missing: Likewise.
1832
492e75a7 18332012-11-13 Richard Henderson <rth@redhat.com>
1834
1835 * configure.tgt: New file.
1836
acb1a4c3 18372012-11-12 David S. Miller <davem@davemloft.net>
1838
1839 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1840
549e2197 18412012-10-29 Wei Mi <wmi@google.com>
1842
1843 Initial checkin: migrate asan runtime from llvm.