]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/ChangeLog
Revert https://reviews.llvm.org/D40908 which changes asan offset to 1<<44.
[thirdparty/gcc.git] / libsanitizer / ChangeLog
CommitLineData
f607b87c
ML
12018-10-31 Martin Liska <mliska@suse.cz>
2
3 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
4
e63c9677
ML
52018-10-31 Martin Liska <mliska@suse.cz>
6
7 * LOCAL_PATCHES: Update patch list.
8 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
9 patches from GCC's trunk.
10 (CheckODRViolationViaPoisoning): Likewise.
11 (RegisterGlobal): Likewise.
12 * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
13 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
14 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
15 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
16 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
17 (struct CFICheckFailData): Likewise.
18 (RECOVERABLE): Likewise.
19
8468f944
ML
202018-10-31 Martin Liska <mliska@suse.cz>
21
22 * config.h.in: Regenerate.
23 * configure: Likewise.
24 * sanitizer_common/Makefile.am: Include new files, remove old
25 files.
26 * sanitizer_common/Makefile.in: Regenerate.
27 * ubsan/Makefile.am: Include new files, remove old
28 files.
29 * ubsan/Makefile.in: Likewise.
30 * asan/Makefile.am: Include new files.
31 * asan/Makefile.in: Regenerate.
32
eac97531
ML
332018-10-31 Martin Liska <mliska@suse.cz>
34
35 * All source files: Merge from upstream 345033.
36
95fba530
ML
372018-10-31 Martin Liska <mliska@suse.cz>
38
39 * HOWTO_MERGE: Enhance documentation.
40 * merge.sh: Add support for git as well.
41
b4f1f01d
ML
422018-08-02 Martin Liska <mliska@suse.cz>
43
92a285c1 44 PR sanitizer/86022
b4f1f01d 45 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
92a285c1 46 Cherry-pick compiler-rt revision 338606.
b4f1f01d 47
c191b1ab
MP
482018-08-01 Marek Polacek <polacek@redhat.com>
49
50 PR sanitizer/86759
51 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
52 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
53 319180.
54
c83b4b82
L
552018-07-25 H.J. Lu <hongjiu.lu@intel.com>
56
57 PR target/86560
58 * asan/asan_interceptors.cc (swapcontext) Cherry-pick
59 compiler-rt revision 337603.
60 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
61 Likewise.
62
bdfc619e
JJ
632018-07-05 Jakub Jelinek <jakub@redhat.com>
64
65 Revert
66 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
67
68 PR sanitizer/84250
69 * Makefile.am: Reorder libs.
70 * Makefile.in: Regenerate.
71 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
72 libsanitizer_ubsan.la.
73 * asan/Makefile.in: Regenerate.
74 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
75 * ubsan/Makefile.in: Regenerate.
76
ca8dd9f2
MO
772018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
78
79 PR sanitizer/84250
80 * Makefile.am: Reorder libs.
81 * Makefile.in: Regenerate.
82 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
83 libsanitizer_ubsan.la.
84 * asan/Makefile.in: Regenerate.
85 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
86 * ubsan/Makefile.in: Regenerate.
87
3b07c0e5
DK
882018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
89
92a285c1
ML
90 PR sanitizer/86090
91 * configure.ac: Check for lstat and readlink.
92 * configure, config.h.in: Rebuild.
3b07c0e5 93
5b87c1fe
MK
942018-05-31 Matthias Klose <doko@ubuntu.com>
95
96 PR sanitizer/86012
97 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
98 SIZEOF_STRUCT_USTAT for 32bit sparc.
99
71b55d45
L
1002018-05-24 H.J. Lu <hongjiu.lu@intel.com>
101
102 PR sanitizer/85835
103 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
104 include <sys/ustat.h> for Linux.
105 (SIZEOF_STRUCT_USTAT): New.
106 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
107
bc40f166
HPN
1082018-04-26 Hans-Peter Nilsson <hp@axis.com>
109
752361c9
HPN
110 * configure.tgt <mips*-*-linux*>: Enable build, excluding
111 mips*64*-*-linux*.
112
9f943b24
HPN
113 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
114 take the shortcut to #include <sys/stat.h> for MIPS instead of
115 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
116 or wrong to get the kernel struct stat.
117 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
118 Correct the value for 32-bit non-android struct_kernel_stat_sz.
119
bc40f166
HPN
120 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
121 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
122
7b47ecf2
L
1232018-04-24 H.J. Lu <hongjiu.lu@intel.com>
124
125 * configure: Regenerated.
126
a0e1df88
JJ
1272018-04-19 Jakub Jelinek <jakub@redhat.com>
128
129 * configure: Regenerated.
130
001ddaa8
DM
1312018-04-18 David Malcolm <dmalcolm@redhat.com>
132
133 PR jit/85384
134 * configure: Regenerate.
135
19ddb884
BS
1362018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
137
138 PR sanitizer/85389
139 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
140 from 0xa0000000000ULL to ~(uptr)0.
141
359ea407
JJ
1422018-03-19 Jakub Jelinek <jakub@redhat.com>
143
144 PR sanitizer/84761
145 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
146 Define if not defined.
147 (DL_INTERNAL_FUNCTION): Don't define.
148 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
149 determine at runtime whether to use regparm(3), stdcall calling
150 convention for older glibcs or normal calling convention for
151 newer glibcs for call to _dl_get_tls_static_info.
152
1422855a
SB
1532018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
154
155 * sanitizer_common/sanitizer_stacktrace.cc
156 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
157 for PowerPC SYSV ABI.
158
14e335ed
IT
1592018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
160
161 PR target/84148
162 * configure: Regenerate.
163
4c4f3c3f
ML
1642018-02-05 Martin Liska <mliska@suse.cz>
165
166 * asan/asan_flags.inc: Cherry-pick upstream r323995.
167 * asan/asan_report.cc (CheckForInvalidPointerPair):
168 Cherry-pick upstream r323995.
169
2d509539
RO
1702018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
171
172 PR sanitizer/82825
173 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
9dfc6e83 174 r324284.
2d509539 175
1f7273e5
RO
1762018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
177
178 PR sanitizer/82824
179 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
180
05abad4c
ML
1812017-12-05 Martin Liska <mliska@suse.cz>
182 Jakub Jelinek <jakub@redhat.com>
183
184 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
185 * asan/asan_descriptions.h: Likewise.
186 * asan/asan_report.cc: Likewise.
187 * asan/asan_thread.cc: Likewise.
188 * asan/asan_thread.h: Likewise.
189
9069eb28
IT
1902017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
191
192 * acinclude.m4: Add enable.m4 and cet.m4.
193 * Makefile.in: Regenerate.
194 * asan/Makefile.am: Update AM_CXXFLAGS.
195 * asan/Makefile.in: Regenerate.
196 * configure: Likewise.
197 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
198 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
199 * interception/Makefile.am: Update AM_CXXFLAGS.
200 * interception/Makefile.in: Regenerate.
201 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
202 * libbacktrace/Makefile.in: Regenerate.
203 * lsan/Makefile.am: Update AM_CXXFLAGS.
204 * lsan/Makefile.in: Regenerate.
205 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
206 AM_CCASFLAGS.
207 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
208 Add _CET_ENDBR macro.
209 * sanitizer_common/Makefile.in: Regenerate.
210 * tsan/Makefile.am: Update AM_CXXFLAGS.
211 * tsan/Makefile.in: Regenerate.
212 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
213 * ubsan/Makefile.am: Update AM_CXXFLAGS.
214 * ubsan/Makefile.in: Regenerate.
215
5925290f
JJ
2162017-11-08 Jakub Jelinek <jakub@redhat.com>
217
218 PR bootstrap/82670
219 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
220 and ubsan_signals_standalone.cc.
221 * ubsan/Makefile.in: Regenerated.
222
735e62b9
TV
2232017-11-05 Tom de Vries <tom@codesourcery.com>
224
225 PR other/82784
226 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
227 "do {} while (0)".
228 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
229
9a45ffbd
JJ
2302017-10-20 Jakub Jelinek <jakub@redhat.com>
231
232 PR sanitizer/82595
233 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
234 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
235 liblsan_preinit.o.
236 (lsan_files): Remove lsan_preinit.cc.
237 (liblsan_preinit.o): New rule.
238 * lsan/Makefile.in: Regenerated.
239
5d3805fc
JJ
2402017-10-19 Jakub Jelinek <jakub@redhat.com>
241
242 * All source files: Merge from upstream 315899.
92a285c1 243 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
5d3805fc 244 include/sanitizer/tsan_interface.h.
92a285c1 245 * asan/libtool-version: Bump the libasan SONAME.
5d3805fc
JJ
246 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
247 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
92a285c1 248 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
5d3805fc
JJ
249 sancov_flags.cc, sanitizer_allocator_checks.cc,
250 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
251 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
252 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
253 and sanitizer_coverage_mapping_libcdep.cc.
92a285c1 254 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
5d3805fc
JJ
255 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
256 (ubsan_files): Add ubsan_init_standalone.cc and
257 ubsan_signals_standalone.cc.
258 * ubsan/libtool-version: Bump the libubsan SONAME.
92a285c1
ML
259 * asan/Makefile.in: Regenerate.
260 * lsan/Makefile.in: Regenerate.
261 * sanitizer_common/Makefile.in: Regenerate.
262 * tsan/Makefile.in: Regenerate.
5d3805fc
JJ
263 * ubsan/Makefile.in: Regenerate.
264
bf4df9e6
L
2652017-10-05 H.J. Lu <hongjiu.lu@intel.com>
266
267 PR sanitizer/82379
268 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
269 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
270
d1453bec
JJ
2712017-10-02 Jakub Jelinek <jakub@redhat.com>
272
273 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
274 Define.
275
a5320f3c
JJ
2762017-08-07 Jakub Jelinek <jakub@redhat.com>
277
278 * include/system/sys/ptrace.h: New file.
279
c9b39a49
JJ
2802017-07-28 Jakub Jelinek <jakub@redhat.com>
281
282 PR sanitizer/80998
283 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
284 * ubsan/ubsan_checks.inc: Likewise.
285 * ubsan/ubsan_handlers.h: Likewise.
286
144e36a7
JJ
2872017-07-14 Jakub Jelinek <jakub@redhat.com>
288
289 PR sanitizer/81066
290 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
291 * sanitizer_common/sanitizer_linux.cc: Likewise.
292 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
293 * tsan/tsan_platform_linux.cc: Likewise.
294
d9f8c5af
ML
2952017-04-06 Martin Liska <mliska@suse.cz>
296
297 PR sanitizer/80166
298 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
299 Cherry-pick upstream r299036.
300
fd6cba40
JJ
3012017-03-22 Jakub Jelinek <jakub@redhat.com>
302
303 PR sanitizer/78158
304 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
305
9b9ad360
AT
3062017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
307
308 PR sanitizer/79562
309 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
310 upstream r294806.
311
1509524b
JJ
3122017-02-11 Jakub Jelinek <jakub@redhat.com>
313
314 PR sanitizer/79341
315 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
316 s390-linux 31-bit.
317 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
318 r294793.
319 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
320 upstream r294790.
321 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
322 r294799.
323
778e0ac3
MO
3242017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
325
326 PR sanitizer/78663
327 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
328 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
329
4997a71d
JJ
3302017-01-31 Jakub Jelinek <jakub@redhat.com>
331
332 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
333
86b2a558
JJ
3342017-01-24 Jakub Jelinek <jakub@redhat.com>
335
c831801d
JJ
336 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
337
86b2a558
JJ
338 PR sanitizer/79168
339 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
340 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
341 text.
342 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
343 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
344 * tsan/tsan_ppc_regs.h: Likewise.
345 * tsan/tsan_rtl_aarch64.S: Likewise.
346 * tsan/tsan_rtl_mips64.S: Likewise.
347 * tsan/tsan_rtl_ppc64.S: Likewise.
348
73aa401e
JJ
3492017-01-21 Jakub Jelinek <jakub@redhat.com>
350
351 PR other/79046
352 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
353 instead of cat to get version from BASE-VER file.
354 * asan/Makefile.am (gcc_version): Likewise.
355 * ubsan/Makefile.am (gcc_version): Likewise.
356 * sanitizer_common/Makefile.am (gcc_version): Likewise.
357 * lsan/Makefile.am (gcc_version): Likewise.
358 * tsan/Makefile.am (gcc_version): Likewise.
359 * interception/Makefile.in: Regenerated.
360 * asan/Makefile.in: Regenerated.
361 * ubsan/Makefile.in: Regenerated.
362 * sanitizer_common/Makefile.in: Regenerated.
363 * lsan/Makefile.in: Regenerated.
364 * tsan/Makefile.in: Regenerated.
365
3c36aa6b
JJ
3662017-01-17 Jakub Jelinek <jakub@redhat.com>
367
368 PR other/79046
369 * configure.ac: Add GCC_BASE_VER.
370 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
371 get version from BASE-VER file.
372 * libbacktrace/Makefile.in: Regenerated.
373 * interception/Makefile.in: Regenerated.
374 * asan/Makefile.in: Regenerated.
375 * ubsan/Makefile.in: Regenerated.
376 * configure: Regenerated.
377 * sanitizer_common/Makefile.in: Regenerated.
378 * lsan/Makefile.in: Regenerated.
379 * Makefile.in: Regenerated.
380 * tsan/Makefile.in: Regenerated.
381
942136a4
JC
3822017-01-10 James Clarke <jrtc27@jrtc27.com>
383
384 PR sanitizer/78992
385 * sanitizer_common/sanitizer_platform_limits_posix.h
386 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
387
11bbe995
MO
3882016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
389
390 * LOCAL_PATCHES: Add revision.
391
d61ed91e
MO
3922016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
393
394 PR sanitizer/78532
395 * sanitizer_common/sanitizer_platform_limits_posix.h
396 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
397 versions.
398
f4214e23
MT
3992016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
400
401 * LOCAL_PATCHES: Remove r242480.
402
00212843
RO
4032016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
404
405 * LOCAL_PATCHES: Add revision.
406
97448adf
RO
4072016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
408
409 PR sanitizer/78267
410 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
411 compiler supports blocks extension.
412
61a58d07
MT
4132016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
414
415 * LOCAL_PATCHES: Add revision.
416
8c32ae0e
MT
4172016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
418
419 PR sanitizer/78294
420 * tsan/tsan_rtl.cc: Add missing attribute.
421
949cc52d
MO
4222016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
423
424 * LOCAL_PATCHES: New file.
425
511c8687
MO
4262016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
427
428 PR sanitizer/78307
429 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
430 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
431 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
432 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
433 function.
434 (__ubsan_handle_cfi_bad_type_abort): Likewise.
435 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
436 (__ubsan_handle_cfi_bad_type): Export function.
437 (__ubsan_handle_cfi_bad_type_abort): Likewise.
438 * HOWTO_MERGE: Update documentation.
439
84c1b9d3
MK
4402016-11-15 Matthias Klose <doko@ubuntu.com>
441
442 * configure: Regenerate.
443
8f16b6ca
MO
4442016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
445
446 * asan/asan_globals.cc (RegisterGlobal): Do not call
447 CheckODRViolationViaPoisoning.
448 (CheckODRViolationViaPoisoning): Remove.
449
789306de
MO
4502016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
451
452 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
453 compiled code with GCC when extracting the caller PC for ARM if no
454 valid frame pointer is available.
455
fe7913f6
MO
4562016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
457
458 PR sanitizer/63958
459 Reapply:
460 2014-10-14 David S. Miller <davem@davemloft.net>
461
462 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
463 Define at __kernel_time_t, as needed for sparc.
464 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
465 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
466 (__sanitizer): Define struct___old_kernel_stat_sz,
467 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
468 (__sanitizer_ipc_perm): Adjust for sparc targets.
469 (__sanitizer_shmid_ds): Likewsie.
470 (__sanitizer_sigaction): Likewise.
471 (IOC_SIZE): Likewsie.
472
10189819
MO
4732016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
474
475 * All source files: Merge from upstream 285547.
476 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
477 variable.
478 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
479 * asan/Makefile.am (asan_files): Add new files.
480 * asan/Makefile.in: Regenerate.
481 * ubsan/Makefile.in: Likewise.
482 * lsan/Makefile.in: Likewise.
483 * tsan/Makefile.am (tsan_files): Add new files.
484 * tsan/Makefile.in: Regenerate.
485 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
486 (EXTRA_libsanitizer_common_la_SOURCES): Define.
487 (libsanitizer_common_la_LIBADD): Likewise.
488 (libsanitizer_common_la_DEPENDENCIES): Likewise.
489 * sanitizer_common/Makefile.in: Regenerate.
490 * interception/Makefile.in: Likewise.
491 * libbacktace/Makefile.in: Likewise.
492 * Makefile.in: Likewise.
493 * configure: Likewise.
494 * merge.sh: Handle builtins/assembly.h merging.
495 * builtins/assembly.h: New file.
496 * asan/libtool-version: Bump the libasan SONAME.
497
aef6a97c
JJ
4982016-09-21 Jakub Jelinek <jakub@redhat.com>
499
500 PR sanitizer/77567
501 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
502
0ce48391
JJ
5032016-09-05 Jakub Jelinek <jakub@redhat.com>
504
505 PR sanitizer/77396
506 * asan/asan_globals.cc: Cherry-pick upstream r280657.
507
e23a7a99
JJ
5082016-08-12 Jakub Jelinek <jakub@redhat.com>
509
510 PR sanitizer/71042
511 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
512 * tsan/tsan_rtl_aarch64.S: Likewise.
513
aa00995c
AM
5142016-07-23 Alan Modra <amodra@gmail.com>
515
516 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
517 * configure.ac: Don't substitute OBSTACK_DEFS.
518 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
519 * tsan/Makefile.am: Likewise.
520 * configure: Regenerate.
521 * Makefile.in: Regenerate.
522 * asan/Makefile.in: Regenerate.
523 * interception/Makefile.in: Regenerate.
524 * libbacktrace/Makefile.in: Regenerate.
525 * lsan/Makefile.in: Regenerate.
526 * sanitizer_common/Makefile.in: Regenerate.
527 * tsan/Makefile.in: Regenerate.
528 * ubsan/Makefile.in: Regenerate.
529
69af4eec
JJ
5302016-05-17 Jakub Jelinek <jakub@redhat.com>
531
532 PR sanitizer/71160
533 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
534 and r269633.
535
fefddbef
MO
5362016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
537
538 PR sanitizer/70624
539 * asan/asan_mac.cc: Cherry pick upstream r266868.
540
e4729419
JJ
5412016-01-19 Jakub Jelinek <jakub@redhat.com>
542
543 PR sanitizer/68824
544 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
545 InitializeInterceptors): Cherry pick upstream r258119.
546
bf93d543
AT
5472016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
548
549 * configure.ac: Replace the hard-coded -ldl requirement for
550 link_sanitizer_common with a configure time check for -ldl.
551 * configure: Regenerate.
552
9211bbb2
MO
5532015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
554
555 * include/system/linux/asm/ptrace.h: Move to ...
556 * include/system/asm/ptrace.h: ... this.
557
664dd3cf
MO
5582015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
559
560 * include/system/linux/asm/ptrace.h: New header.
561
55aea9f5
MO
5622015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
563
564 * All source files: Merge from upstream r253555.
565 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
566 dependences for TSan for aarch64-*-linux* targets.
567 * tsan/Makefile.am: Add new source files.
568 * configure: Regenerate.
569 * tsan/Makefile.in: Likewise.
570
62c0f0a6
AM
5712015-11-09 Alan Modra <amodra@gmail.com>
572
573 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
574 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
575 interceptors.
576 * configure.ac: Substitute OBSTACK_DEFS.
577 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
578 * tsan/Makefile.am: Likewise.
579 * configure: Regenerate.
580 * Makefile.in: Regenerate.
581 * asan/Makefile.in: Regenerate.
582 * interception/Makefile.in: Regenerate.
583 * libbacktrace/Makefile.in: Regenerate.
584 * lsan/Makefile.in: Regenerate.
585 * sanitizer_common/Makefile.in: Regenerate.
586 * tsan/Makefile.in: Regenerate.
587 * ubsan/Makefile.in: Regenerate.
588
692b1131
MO
5892015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
590
591 PR bootstrap/68041
592 * configure.ac (link_sanitizer_common): Link against librt only if it
593 contains shm_open, required by sanitizers.
594 (CXX_ABI_NEEDED): Remove variable.
595 * configure: Regenerate.
596 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
597 * ubsan/Makefile.in: Regenerate.
598
7047bc9c
MO
5992015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
600
601 * HOWTO_MERGE: New file.
602
21d61063
MO
6032015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
604
605 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
606 compiled code with GCC when extracting the caller PC for ARM if no
607 valid frame pointer is available.
608
15ebe1fe
MO
6092015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
610
611 PR bootstrap/63888
612 Reapply:
613 2015-02-20 Jakub Jelinek <jakub@redhat.com>
614
615 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
616 support until it is rewritten upstream.
617
618 * c-c++-common/asan/pr63888.c: New test.
619
0d57d3e0
MO
6202015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
621
622 PR sanitizer/63958
623 Reapply:
624 2014-10-14 David S. Miller <davem@davemloft.net>
625
626 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
627 Define at __kernel_time_t, as needed for sparc.
628 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
629 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
630 (__sanitizer): Define struct___old_kernel_stat_sz,
631 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
632 (__sanitizer_ipc_perm): Adjust for sparc targets.
633 (__sanitizer_shmid_ds): Likewsie.
634 (__sanitizer_sigaction): Likewise.
635 (IOC_SIZE): Likewsie.
636
696d846a
MO
6372015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
638
639 * All source files: Merge from upstream r250806.
640 * configure.ac (link_sanitizer_common): Add -lrt flag.
641 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
642 Set USE_CXX_ABI_FLAG=true for darwin.
643 * asan/Makefile.am (asan_files): Add new files.
644 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
645 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
646 * asan/Makefile.in: Regenerate.
647 * ubsan/Makefile.am (ubsan_files): Add new files.
648 (DEFS): Add DCAN_SANITIZE_UB=1.
649 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
650 * ubsan/Makefile.in: Regenerate.
651 * tsan/Makefile.am (tsan_files): Add new files.
652 (DEFS): Add DCAN_SANITIZE_UB=0.
653 * tsan/Makefile.in: Regenerate.
654 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
655 * sanitizer_common/Makefile.in: Regenerate.
656 * asan/libtool-version: Bump the libasan SONAME.
657
1842a04c
MT
6582015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
659
660 PR sanitizer/67258
661 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
662
97d8f801
MT
6632015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
664
665 PR sanitizer/63927
666 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
667 for PowerPC.
668
3d61d875
BS
6692015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
670
671 PR sanitizer/63927
672 * sanitizer_common/sanitizer_stacktrace.cc
673 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
674 find the link register at an offset of 16 from the base of the
675 caller's stack frame.
676
f3915b42
MH
6772015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
678
679 * Makefile.in: Regenerated with automake-1.11.6.
680 * aclocal.m4: Likewise.
681 * asan/Makefile.in: Likewise.
682 * configure: Likewise.
683 * interception/Makefile.in: Likewise.
684 * libbacktrace/Makefile.in: Likewise.
685 * lsan/Makefile.in: Likewise.
686 * sanitizer_common/Makefile.in: Likewise.
687 * tsan/Makefile.in: Likewise.
688 * ubsan/Makefile.in: Likewise.
689
d041a6fc
YG
6902015-04-13 Yury Gribov <y.gribov@samsung.com>
691
692 PR sanitizer/64839
693 * sanitizer_common/sanitizer_platform.h: Cherry pick
694 upstream r234470.
695 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
696 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
697 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
698 * Makefile.in: Regenerate.
699 * asan/Makefile.in: Regenerate.
700 * config.h.in: Regenerate.
701 * configure: Regenerate.
702 * interception/Makefile.in: Regenerate.
703 * libbacktrace/Makefile.in: Regenerate.
704 * lsan/Makefile.in: Regenerate.
705 * sanitizer_common/Makefile.in: Regenerate.
706 * tsan/Makefile.in: Regenerate.
707 * ubsan/Makefile.in: Regenerate.
708
709
d886f7cc
CL
7102015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
711
712 PR sanitizer/59009
713 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
714 upstream r230324.
715 * sanitizer_common/sanitizer_platform.h: Likewise.
716 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
717
563fb64a
BE
7182015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
719
720 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
721 upstream 224508 and 224755.
722
ee876e59
JJ
7232015-03-09 Jakub Jelinek <jakub@redhat.com>
724
725 PR sanitizer/63958
726 Reapply:
727 2014-10-14 David S. Miller <davem@davemloft.net>
728
729 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
730 Define at __kernel_time_t, as needed for sparc.
731 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
732 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
733 (__sanitizer): Define struct___old_kernel_stat_sz,
734 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
735 (__sanitizer_ipc_perm): Adjust for sparc targets.
736 (__sanitizer_shmid_ds): Likewsie.
737 (__sanitizer_sigaction): Likewise.
738 (IOC_SIZE): Likewsie.
739
6ad0611b
PB
7402015-02-27 Peter Bergner <bergner@vnet.ibm.com>
741
742 * configure.tgt: Enable build on powerpc*le-*-linux.
743
09901e8a 7442015-02-23 Jakub Jelinek <jakub@redhat.com>
86ee2038
JJ
745
746 PR bootstrap/63888
747 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
748 support until it is rewritten upstream.
749
94213c10
MK
7502015-01-26 Matthias Klose <doko@ubuntu.com>
751
752 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
753 * configure: Regenerate.
754
8790f572
VK
7552015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
756
94213c10 757 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
8790f572 758 * configure: Regenerate.
94213c10 759 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
8790f572 760
b0edd457
VK
7612015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
762
763 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
764 * configure: Regenerate.
765 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
766 (libtsan_la_DEPENDENCIES): Likewise.
767 * Makefile.in: Regenerate.
768 * asan/Makefile.in: Regenerate.
769 * interception/Makefile.in: Regenerate.
770 * libbacktrace/Makefile.in: Regenerate.
771 * lsan/Makefile.in: Regenerate.
772 * sanitizer_common/Makefile.in: Regenerate.
773 * tsan/Makefile.in: Regenerate.
774 * ubsan/Makefile.in: Regenerate.
775
19ac475f
JJ
7762015-01-22 Jakub Jelinek <jakub@redhat.com>
777
778 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
779
8b08ef25
JJ
7802015-01-21 Jakub Jelinek <jakub@redhat.com>
781
782 PR sanitizer/64435
783 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
784 upstream r226637.
785 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
786 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
787
3ea36418
JJ
7882015-01-20 Jakub Jelinek <jakub@redhat.com>
789
790 PR sanitizer/64632
791 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
792
9deaf59d
JJ
7932015-01-19 Jakub Jelinek <jakub@redhat.com>
794
795 PR sanitizer/64435
796 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
797 upstream r223925.
798
b6a8bacc
JJ
7992015-01-13 Jakub Jelinek <jakub@redhat.com>
800
801 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
802 upstream r224518 and r224519.
803 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
804 r224834.
805
f2798565
JJ
8062014-12-16 Jakub Jelinek <jakub@redhat.com>
807
808 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
809 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
810 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
811 upstream r224308.
812
a699d672
L
8132014-11-21 H.J. Lu <hongjiu.lu@intel.com>
814
815 PR bootstrap/63784
816 * configure: Regenerated.
817
7697b16f
JJ
8182014-11-21 Jakub Jelinek <jakub@redhat.com>
819
820 PR target/61137
821 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
822 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
823
7f201a67
UB
8242014-11-14 Uros Bizjak <ubizjak@gmail.com>
825
826 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
827 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
828 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
829 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
830 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
831 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
832 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
833 * sanitizer_common/Makefile.in: Regenerate.
834 * asan/Makefile.in: Ditto.
835 * lsan/Makefile.in: Ditto.
836 * interception/Makefile.in: Ditto.
837 * tsan/Makefile.in: Ditto.
838 * libbacktrace/Makefile.in: Ditto.
839 * ubsan/Makefile.in: Ditto.
840
c5be964a
KS
8412014-11-13 Kostya Serebryany <kcc@google.com>
842
843 * All source files: Merge from upstream r221802.
844 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
845 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
846 with 'start' to follow the new interface.
847 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
848 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
849 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
850 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
851 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
852 files.
853 (AM_CXXFLAGS): Added -std=c++11.
854 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
855 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
856 * asan/Makefile.in: Regenerate.
857 * interception/Makefile.in: Regenerate.
858 * libbacktrace/Makefile.in: Regenerate.
859 * lsan/Makefile.in: Regenerate.
860 * sanitizer_common/Makefile.in: Regenerate.
861 * tsan/Makefile.in: Regenerate.
862 * ubsan/Makefile.in: Regenerate.
863
ebf6d33b
FXC
8642014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
865
866 PR target/63610
867 * configure: Regenerate.
868
d13fc1ed
ML
8692014-10-16 Martin Liska <mliska@suse.cz>
870
871 * asan/Makefile.am: IPA ICF pass is disabled.
872 * asan/Makefile.in: Likewise.
873
c8473336
DM
8742014-10-14 David S. Miller <davem@davemloft.net>
875
876 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
877 Define at __kernel_time_t, as needed for sparc.
878 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
879 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
880 (__sanitizer): Define struct___old_kernel_stat_sz,
881 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
882 (__sanitizer_ipc_perm): Adjust for sparc targets.
883 (__sanitizer_shmid_ds): Likewsie.
884 (__sanitizer_sigaction): Likewsie.
885 (IOC_SIZE): Likewsie.
886
694b4cfa
JJ
8872014-10-14 Jakub Jelinek <jakub@redhat.com>
888
889 * ubsan/Makefile.am (DEFS): Add -DPIC.
890 * ubsan/Makefile.in: Regenerated.
891
a3125fc2
CL
8922014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
893
894 * configure.tgt: Enable build on aarch64*-linux.
895
866e32ad
KS
8962014-09-19 Kostya Serebryany <kcc@google.com>
897
898 * All source files: Merge from upstream r218156.
899 * asan/Makefile.am (asan_files): Added new files.
900 * asan/Makefile.in: Regenerate.
901 * ubsan/Makefile.am (ubsan_files): Added new files.
902 * ubsan/Makefile.in: Regenerate.
903 * tsan/Makefile.am (tsan_files): Added new files.
904 * tsan/Makefile.in: Regenerate.
905 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
906 files.
907 * sanitizer_common/Makefile.in: Regenerate.
908 * asan/libtool-version: Bump the libasan SONAME.
909
126edc3f
JJ
9102014-09-10 Jakub Jelinek <jakub@redhat.com>
911
912 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
913 upstream r215485, r217389, r217391 and r217400.
914
0d807c80
PC
9152014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
916
917 * sanitizer_common/sanitizer_common_interceptors.inc:
918 Cherry pick upstream r211008.
919
4622301b
RB
9202014-06-11 Richard Biener <rguenther@suse.de>
921
922 * asan/asan_linux.cc: Cherry pick upstream r210012.
923
ecd5543f
JJ
9242014-05-30 Jakub Jelinek <jakub@redhat.com>
925
926 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
927 r209879.
928 * sanitizer_common/sanitizer_common.h: Likewise.
929 * asan/asan_mapping.h: Likewise.
930 * asan/asan_linux.cc: Likewise.
931 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
932 * sanitizer_common/sanitizer_allocator.h: Likewise.
933
85a16bf8
MP
9342014-05-23 Marek Polacek <polacek@redhat.com>
935
936 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
937 floating-point types.
938
dee5ea7a
KS
9392014-05-22 Kostya Serebryany <kcc@google.com>
940
941 * All source files: Merge from upstream r209283.
942 * asan/Makefile.am (asan_files): Added new files.
943 * asan/Makefile.in: Regenerate.
944 * tsan/Makefile.am (tsan_files): Added new files.
945 * tsan/Makefile.in: Regenerate.
0d807c80
PC
946 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
947 files.
dee5ea7a
KS
948 * sanitizer_common/Makefile.in: Regenerate.
949
2675305b
YG
9502014-05-14 Yury Gribov <y.gribov@samsung.com>
951
952 PR sanitizer/61100
953 * Makefile.am (nodist_saninclude_HEADERS): Install
954 public headers.
955 * Makefile.in: Regenerate.
956
a6c9ab4e
RO
9572014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
958
959 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
960 Add ../../libbacktrace/sort.c.
961 * libbacktrace/Makefile.in: Regenerate.
962 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
963
a42a7046
BS
9642014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
965
966 * configure.tgt: Unsupported for little endian PowerPC for now.
967
5ab39ec3
JJ
9682014-02-04 Jakub Jelinek <jakub@redhat.com>
969
81c87471
JJ
970 PR sanitizer/60055
971 * tsan/tsan_flags.cc (__tsan_default_options): Add
972 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
973 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
974
5ab39ec3
JJ
975 PR sanitizer/60038
976 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
977 sanitizer_atomic.h and unistd.h.
978 (kThreadDescriptorSize): Made static, remove initializer and const,
979 change type to atomic_uintptr_t.
980 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
981 query glibc version, compute kThreadDescriptorSize depending on
982 glibc version minor number.
983 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
984 kThreadDescriptorSize directly.
985
4a7eaf5f
YG
9862014-01-23 Yury Gribov <y.gribov@samsung.com>
987 Jakub Jelinek <jakub@redhat.com>
988
989 PR sanitizer/57316
990 * configure.ac: Check for missing syscalls.
991 * Makefile.am: Likewise.
992 * configure: Regenerate.
993 * Makefile.in: Regenerate.
994
2613419a
JJ
9952014-01-09 Jakub Jelinek <jakub@redhat.com>
996
b5f58ba3
JJ
997 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
998 (LibbacktraceSymbolizer::Demangle): New declaration.
999 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1000 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1001 method if possible.
1002 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1003 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1004 (struct CplusV3DemangleData): New type.
1005 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1006 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1007 SymbolizeDataCallback): Use CplusV3Demangle.
1008 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1009 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1010 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1011 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1012 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1013 cplus_demangle_init_info, cplus_demangle_mangled_name,
1014 cplus_demangle_operators, cplus_demangle_print,
1015 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1016 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1017 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1018 Define.
1019 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1020 (memcmp, strncmp): Redefine.
1021 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1022 ../../libiberty/cp-demangle.c.
1023 * libbacktrace/bridge.cc (__asan_internal_memcmp,
1024 __asan_internal_strncmp): New functions.
1025 * sanitizer_common/Makefile.in: Regenerated.
1026 * libbacktrace/Makefile.in: Regenerated.
1027 * configure: Regenerated.
1028 * configure.ac: Regenerated.
1029 * config.h.in: Regenerated.
1030
2613419a
JJ
1031 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1032 -isystem $(top_srcdir)/include/system.
1033 * sanitizer_common/Makefile.in: Regenerated.
1034 * include/system/linux/aio_abi.h: New header.
1035 * include/system/linux/mroute.h: New header.
1036 * include/system/linux/mroute6.h: New header.
1037 * include/system/linux/perf_event.h: New header.
1038 * include/system/linux/types.h: New header.
c915a581
JJ
1039
1040 PR sanitizer/59136
1041 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1042 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1043 and -I/-include flags.
1044 * lsan/Makefile.am (liblsan_la_LIBADD): Add
1045 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1046 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1047 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1048 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1049 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1050 libbacktrace.
1051 * README.gcc: Document that also lsan and ubsan are
1052 maintained in compiler-rt upstream.
1053 * libbacktrace/Makefile.am: New file.
1054 * libbacktrace/backtrace-rename.h: New file.
1055 * libbacktrace/backtrace-supported.h.in: New file.
1056 * libbacktrace/bridge.cc: New file.
1057 * configure.ac: Add tests needed for libbacktrace build
1058 within libsanitizer.
1059 * sanitizer_common/Makefile.in: Regenerated.
1060 * lsan/Makefile.in: Regenerated.
1061 * tsan/Makefile.in: Regenerated.
1062 * ubsan/Makefile.in: Regenerated.
1063 * libbacktrace/Makefile.in: Generated.
1064 * config.h.in: Regenerated.
1065 * configure: Regenerated.
1066 * Makefile.in: Regenerated.
1067 * interception/Makefile.in: Regenerated.
1068 * asan/Makefile.in: Regenerated.
1069 * aclocal.m4: Regenerated.
1070
409f3b46
KS
10712013-12-19 Kostya Serebryany <kcc@google.com>
1072
92a285c1 1073 * sanitizer_common/sanitizer_platform_limits_posix.cc:
409f3b46
KS
1074 workaround for missing definition of EOWNERDEAD, backport
1075 from upstream r196779.
1076
079db27b
L
10772013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 * sanitizer_common/sanitizer_platform_limits_posix.h
1080 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1081 (__sanitizer_clock_t): Use long long for x32.
1082
7efb96c0
L
10832013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1084
1085 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1086 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1087 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1088
df9d1700
L
10892013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1090
1091 * configure.ac (link_sanitizer_common): Add -lm.
1092 * configure: Regenerated.
1093
c4c16f74
KS
10942013-12-05 Kostya Serebryany <kcc@google.com>
1095
1096 * All source files: Merge from upstream r196489.
1097 * merge.sh: Add *.S to the list of merged files.
1098
666ee4d6
YG
10992013-12-05 Yury Gribov <y.gribov@samsung.com>
1100
1101 PR sanitizer/59368
1102 * Makefile.am (gcc_version): Added gcc_version.
1103 * Makefile.in: Regenerate.
1104
df77f0e4
KS
11052013-12-05 Kostya Serebryany <kcc@google.com>
1106
1107 * All source files: Merge from upstream r196090.
1108 * tsan/Makefile.am (tsan_files): Added new files.
1109 * tsan/Makefile.in: Regenerate.
1110 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1111 * sanitizer_common/Makefile.in: Regenerate.
1112 * lsan/Makefile.am (lsan_files): Added new files.
1113 * lsan/Makefile.in: Regenerate.
1114
35814b03
JJ
11152013-11-29 Jakub Jelinek <jakub@redhat.com>
1116 Yury Gribov <y.gribov@samsung.com>
1117
1118 PR sanitizer/59063
1119 * libsanitizer.spec.in: Add spec file to hold link flags for
1120 various sanitizer libs.
1121 * configure.ac: Check whether clock_* routines come from librt.
1122 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1123 configure.ac.
1124 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1125 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1126 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1127 * asan/Makefile.in: Regenerate.
1128 * interception/Makefile.in: Regenerate.
1129 * lsan/Makefile.in: Regenerate.
1130 * sanitizer_common/Makefile.in: Regenerate.
1131 * tsan/Makefile.in: Regenerate.
1132 * ubsan/Makefile.in: Regenerate.
1133 * Makefile.in: Regenerate.
1134 * configure: Regenerate.
1135
049558ed
JJ
11362013-11-28 Jakub Jelinek <jakub@redhat.com>
1137 Yury Gribov <y.gribov@samsung.com>
1138
1139 PR sanitizer/59106
1140 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1141 don't need it.
1142 * ubsan/Makefile.in: Regenerated.
1143
9065ada9
JJ
11442013-11-22 Jakub Jelinek <jakub@redhat.com>
1145
1146 PR sanitizer/59061
1147 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1148 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1149 * configure: Regenerated.
1150 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1151 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1152 * lsan/Makefile.in: Regenerated.
1153
486294d4
MS
11542013-11-22 Mike Stump <mikestump@comcast.net>
1155
1156 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1157 change from upstream to fix build.
1158
2621c860
YG
11592013-11-18 Yury Gribov <y.gribov@samsung.com>
1160
1161 PR sanitizer/59106
1162 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1163 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1164 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1165 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1166 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1167 * asan/Makefile.in: Regenerate.
1168 * interception/Makefile.in: Regenerate.
1169 * tsan/Makefile.in: Regenerate.
1170 * lsan/Makefile.in: Regenerate.
1171 * sanitizer_common/Makefile.in: Regenerate.
1172
c8e1377b
KS
11732013-11-15 Kostya Serebryany <kcc@google.com>
1174
1175 PR sanitizer/58994
92a285c1
ML
1176 Backport from upstream revision 194573
1177 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1178 back to the original functions in the common libsanitizer
1179 interceptors and the __cxa_atexit() interceptor on Darwin.
c8e1377b 1180
c3d77f3a
PB
11812013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1182
1183 PR sanitizer/59009
1184 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1185 ifdef out more source.
1186
d00106f4
JJ
11872013-11-12 Jakub Jelinek <jakub@redhat.com>
1188
1189 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1190 ifdef out almost the whole source.
1191 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1192
e276866f
L
11932013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1194
1195 PR sanitizer/59018
1196 * sanitizer_common/sanitizer_platform_limits_posix.cc
1197 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1198 defined.
1199
f5c36cfc
L
12002013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1201
1202 PR sanitizer/59018
1203 * sanitizer_common/sanitizer_platform_limits_linux.cc
1204 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1205 defined.
1206 * sanitizer_common/sanitizer_platform_limits_posix.h
1207 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1208 defined.
1209 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1210 is defined.
1211 (__sanitizer___kernel_gid_t): Likewise.
1212 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1213 is defined.
1214
e45de14e
L
12152013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1216
1217 PR sanitizer/59018
1218 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1219 2 64-bit integers to save and restore fn and arg. Properly load
1220 newtls/child_tidptr into r8/r10.
1221
38693e39
L
12222013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1223
1224 PR sanitizer/59018
1225 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1226 internal_munmap, internal_open, internal_read, internal_write,
1227 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1228 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1229 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1230 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1231
ef1b3fda
KS
12322013-11-04 Kostya Serebryany <kcc@google.com>
1233
1234 * All source files: Merge from upstream r191666.
1235 * merge.sh: Added lsan.
1236 * configure.ac (AC_CONFIG_FILES): Added lsan.
1237 * Makefile.am (SUBDIRS): Added lsan.
1238 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1239 * asan/Makefile.am (asan_files): Added new files.
1240 (libasan_la_LIBADD): Added a dependency on lsan.
1241 * lsan/Makefile.am: New file.
1242 * asan/Makefile.in: Regenerate.
1243 * lsan/Makefile.in: Regenerate.
1244 * Makefile.in: Regenerate.
1245 * configure: Regenerate.
1246 * sanitizer_common/Makefile.in: Regenerate.
1247
3cbe17f7
AM
12482013-09-20 Alan Modra <amodra@gmail.com>
1249
1250 * configure: Regenerate.
1251
0cea211e
IS
12522013-09-01 Iain Sandoe <iain@codesourcery.com>
1253
1254 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1255 libinterception.la for Darwin.
1256 * ubsan/Makefile.in: Regenerate.
1257
de5a5fa1
MP
12582013-08-30 Jakub Jelinek <jakub@redhat.com>
1259
1260 * Makefile.am (SUBDIRS): Add ubsan.
1261 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1262 * merge.sh: Merge ubsan.
1263 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1264 * sanitizer_common/sanitizer_printf.cc: Likewise.
1265 * sanitizer_common/sanitizer_common.h: Likewise.
1266 * ubsan: New directory. Import ubsan runtime from llvm.
1267
634cfa2b
CL
12682013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1269
1270 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1271 Cherry pick upstream r182922.
1272
8a5800b8
CL
12732013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1274
1275 * configure.tgt: Add ARM pattern.
1276
a745e444 12772013-03-22 Jakub Jelinek <jakub@redhat.com>
1868beee
JJ
1278
1279 PR other/43620
1280 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1281 * Makefile.in: Regenerated.
1282 * asan/Makefile.in: Regenerated.
1283 * interception/Makefile.in: Regenerated.
1284 * sanitizer_common/Makefile.in: Regenerated.
1285 * tsan/Makefile.in: Regenerated.
1286
4c376126
JJ
12872013-02-28 Jakub Jelinek <jakub@redhat.com>
1288
1289 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1290 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1291 0x4fffffffffULL.
1292
7d613735
JJ
12932013-02-22 Jakub Jelinek <jakub@redhat.com>
1294
1295 PR sanitizer/56393
1296 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1297 libasan_preinit.o.
1298 (libasan_preinit.o): Depend on asan_preinit.o.
1299 * asan/Makefile.in: Regenerated.
1300 * asan/asan_preinit.cc: New file, synced from upstream.
1301 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1302
ecdbd01a 13032013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
304886c5
JH
1304
1305 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1306 dynamic/asan_interceptors_dynamic.cc.
1307 * asan/Makefile.in: Regenerated.
1308 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1309
4be7da26
JJ
13102013-02-21 Jakub Jelinek <jakub@redhat.com>
1311
1312 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1313 defined. Add used attribute.
1314
7df59255
KS
13152013-02-21 Kostya Serebryany <kcc@google.com>
1316
1317 * All source files: Merge from upstream r175733.
1318 * sanitizer_common/Makefile.am: Added a new file.
1319 * sanitizer_common/Makefile.in: Regenerated.
1320
8afd2ed7
L
13212013-02-14 H.J. Lu <hongjiu.lu@intel.com>
1322
1323 PR bootstrap/56327
1324 * interception/interception.h (OFF_T): Merged from upstream
1325 r175140.
1326
6422242b
JJ
13272013-02-13 Jakub Jelinek <jakub@redhat.com>
1328
1329 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1330
b4ab7d34
KS
13312013-02-13 Kostya Serebryany <kcc@google.com>
1332
8afd2ed7 1333 PR sanitizer/56128
b4ab7d34
KS
1334 * All source files: Merge from upstream r175049.
1335 * interception/Makefile.am: added include path.
1336 * interception/Makefile.in: Regenerated.
1337
34dc17ed
JH
13382013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
1339
1340 * configure.tgt: Disable build on darwin9 and earlier.
1341
2660d12d
KS
13422013-01-23 Kostya Serebryany <kcc@google.com>
1343
8afd2ed7 1344 PR sanitizer/55989
2660d12d
KS
1345 * All source files: Merge from upstream r173241.
1346 * merge.sh: Support merging .inc files.
1347
19006c45
JJ
13482013-01-16 Jakub Jelinek <jakub@redhat.com>
1349
1350 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1351 -Wno-c99-extensions.
1352 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1353 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1354 * sanitizer_common/Makefile.in: Regenerated.
1355 * interception/Makefile.in: Regenerated.
1356 * asan/Makefile.in: Regenerated.
1357
edadb734
WM
13582013-01-10 Wei Mi <wmi@google.com>
1359
1360 PR sanitizer/55488
1361 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1362 * tsan/Makefile.in: Regenerated.
1363 * tsan/tsan_rtl.h: Enable HACKY_CALL.
1364
e9772e16
KS
13652013-01-10 Kostya Serebryany <kcc@google.com>
1366
1367 * All source files: Merge from upstream r171973.
1368 * sanitizer_common/Makefile.am: Added new files.
1369 * asan/Makefile.am: Likewise.
1370 * tsan/Makefile.am: Likewise.
1371 * sanitizer_common/Makefile.in: Regenerated.
1372 * asan/Makefile.in: Likewise.
1373 * tsan/Makefile.in: Likewise.
1374
7f7162cf
L
13752013-01-07 H.J. Lu <hongjiu.lu@intel.com>
1376
1377 * asan/Makefile.am (libasan_la_LIBADD): Replace
1378 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1379 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1380 * Makefile.in: Regenerated.
1381 * configure: Likewise.
1382 * asan/Makefile.in: Likewise.
1383 * interception/Makefile.in: Likewise.
1384 * sanitizer_common/Makefile.in: Likewise.
1385 * tsan/Makefile.in: Likewise.
1386
b488a2c7
L
13872012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1388
1389 * Makefile.am (AM_MAKEFLAGS): Restored.
1390 * interception/Makefile.am: Likewise.
1391 * sanitizer_common/Makefile.am: Likewise.
1392 * tsan/Makefile.am: Likewise.
1393 * Makefile.in: Regenerated.
1394 * asan/Makefile.in: Likewise.
1395 * interception/Makefile.in: Likewise.
1396 * sanitizer_common/Makefile.in: Likewise.
1397 * tsan/Makefile.in: Likewise.
1398
e8adb21b
L
13992012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1400
1401 * Makefile.am (MAKEOVERRIDES): Restored.
1402 * asan/Makefile.am: Likewise.
1403 * interception/Makefile.am: Likewise.
1404 * sanitizer_common/Makefile.am: Likewise.
1405 * tsan/Makefile.am: Likewise.
1406 * Makefile.in: Regenerated.
1407 * asan/Makefile.in: Likewise.
1408 * interception/Makefile.in: Likewise.
1409 * sanitizer_common/Makefile.in: Likewise.
1410 * tsan/Makefile.in: Likewise.
1411
e1e953d9
L
14122012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1413
1414 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1415 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1416 * Makefile.in: Regenerated.
1417 * configure: Likewise.
1418 * asan/Makefile.in: Likewise.
1419 * interception/Makefile.in: Likewise.
1420 * sanitizer_common/Makefile.in: Likewise.
1421 * tsan/Makefile.in: Likewise.
1422
a62d3903
L
14232012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1424
1425 * Makefile.am (AM_MAKEFLAGS): Removed.
1426 (MAKEOVERRIDES): Likewise.
1427 * asan/Makefile.am: Likewise.
1428 * interception/Makefile.am: Likewise.
1429 * sanitizer_common/Makefile.am: Likewise.
1430 * tsan/Makefile.am: Likewise.
1431 * Makefile.in: Regenerated.
1432 * asan/Makefile.in: Likewise.
1433 * interception/Makefile.in: Likewise.
1434 * sanitizer_common/Makefile.in: Likewise.
1435 * tsan/Makefile.in: Likewise.
1436
d10a2df2
L
14372012-12-11 H.J. Lu <hongjiu.lu@intel.com>
1438
1439 PR sanitizer/55533
1440 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1441 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1442 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1443 (AM_MAKEFLAGS): Remove CC and CXX.
1444 * interception/Makefile.am: Likewise.
1445 * sanitizer_common/Makefile.am: Likewise.
1446 * tsan/Makefile.am: Likewise.
1447 * Makefile.in: Regenerated.
1448 * aclocal.m4: Likewise.
1449 * configure: Likewise.
1450 * asan/Makefile.in: Likewise.
1451 * interception/Makefile.in: Likewise.
1452 * sanitizer_common/Makefile.in: Likewise.
1453 * tsan/Makefile.in: Likewise.
1454
957fee09
PB
14552012-12-06 Peter Bergner <bergner@vnet.ibm.com>
1456
1457 * configure.tgt: Enable build on powerpc*-linux.
1458
ecdbd01a 14592012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
3157880f
JH
1460
1461 PR 55599/sanitizer
d10a2df2
L
1462 * configure.ac: Set enable_static=no on darwin.
1463 * configure: Regenerated.
3157880f 1464
695edbac
KS
14652012-12-06 Kostya Serebryany <kcc@google.com>
1466
1467 * All files: Merge from upstream r169392.
1468
a0408454
KS
14692012-12-05 Kostya Serebryany <kcc@google.com>
1470
1471 * All files: Merge from upstream r169371.
1472
41d37c56 14732012-12-04 Kostya Serebryany <kcc@google.com>
ecdbd01a 1474 Jack Howarth <howarth@bromo.med.uc.edu>
8c4d267c
KS
1475
1476 PR 55521/sanitizer
1477 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1478 * Makefile.am: Don't build interception subdir when
1479 USING_MAC_INTERPOSE defined.
1480 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1481 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1482 Compile asan_interceptors_dynamic.cc but not libinterception
1483 when USING_MAC_INTERPOSE defined.
1484 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1485 * configure: Regenerated.
1486 * Makefile.in: Likewise.
1487 * asan/Makefile.in: Likewise.
1488 * interception/Makefile.in: Likewise.
1489 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1490 * asan/asan_mac.cc: Likewise.
1491 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1492 and use MISSING_BLOCKS_SUPPORT.
1493 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1494 * interception/mach_override/LICENSE.txt: Remove unused file.
1495 * interception/mach_override/mach_override.c: Likewise.
1496 * interception/mach_override/mach_override.h: Likewise.
1497 * interception/mach_override: Remove unused directory.
1498
a23ed040
L
14992012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1500
1501 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1502 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1503 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1504 files.
1505 (AM_MAKEFLAGS): Restore CC and CXX.
1506 * interception/Makefile.am: Likewise.
1507 * sanitizer_common/Makefile.am: Likewise.
1508 * tsan/Makefile.am: Likewise.
1509 * Makefile.in: Regenerated.
1510 * aclocal.m4: Likewise.
1511 * configure: Likewise.
1512 * asan/Makefile.in: Likewise.
1513 * interception/Makefile.in: Likewise.
1514 * sanitizer_common/Makefile.in: Likewise.
1515 * tsan/Makefile.in: Likewise.
1516
2ed685b8
L
15172012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1518
1519 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1520 * configure.ac (ACX_NONCANONICAL_TARGET): New.
1521 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1522 files.
1523 (AM_MAKEFLAGS): Remove CC and CXX.
1524 * interception/Makefile.am: Likewise.
1525 * sanitizer_common/Makefile.am: Likewise.
1526 * tsan/Makefile.am: Likewise.
1527 * Makefile.in: Regenerated.
1528 * aclocal.m4: Likewise.
1529 * configure: Likewise.
1530 * asan/Makefile.in: Likewise.
1531 * interception/Makefile.in: Likewise.
1532 * sanitizer_common/Makefile.in: Likewise.
1533 * tsan/Makefile.in: Likewise.
1534
4ba5ca46
KS
15352012-11-27 Kostya Serebryany <kcc@google.com>
1536
1537 * All files: Merge from upstream r168699.
1538
41d37c56 15392012-11-24 Kostya Serebryany <kcc@google.com>
ecdbd01a 1540 Jack Howarth <howarth@bromo.med.uc.edu>
f246eadc
JH
1541
1542 * interception/mach_override/mach_override.c: Migrate from llvm.
1543 * interception/mach_override/mach_override.h: Likewise.
1544 * interception/mach_override/LICENSE.txt: Likewise.
1545 * configure.tgt: Add darwin to supported targets.
1546 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1547 * interception/Makefile.am: Compile mach_override.c when
1548 USING_MACH_OVERRIDE defined.
1549 * configure: Regenerated.
1550 * interception/Makefile.in: Likewise.
1551
9cb5411c
L
15522012-11-23 H.J. Lu <hongjiu.lu@intel.com>
1553
1554 PR sanitizer/55450
1555 * tsan/Makefile.am (gcc_version): New.
1556 * tsan/Makefile.in: Regenerated.
1557
3409d40e 15582012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1559
e297eb60
KS
1560 * merge.sh: Support tsan, support added/removed files.
1561 * tsan/Makefile.am: Remove tsan_printf.cc.
1562 * tsan/Makefile.in: Regenerated.
1563 * other files: Merge from upstream r168514.
1564
15652012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1566
e297eb60 1567 * merge.sh: New file.
3409d40e 1568
64548f3b
JJ
15692012-11-23 Jakub Jelinek <jakub@redhat.com>
1570
1571 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1572 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1573 automake conditional instead of !MULTISUBDIR32.
1574 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1575 for 64-bit multilib.
1576 * configure.ac: Check for void * size, source in configure.tgt,
1577 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1578 * configure: Regenerated.
1579 * Makefile.in: Regenerated.
1580 * tsan/Makefile.in: Regenerated.
1581
cd0be65c
WM
15822012-11-22 Wei Mi <wmi@google.com>
1583
1584 * tsan: New directory. Import tsan runtime from llvm.
1585 * configure.ac: Add 64 bits tsan build.
1586 * Makefile.am: Likewise.
1587 * configure: Regenerated.
1588 * Makefile.in: Likewise.
1589
5cba83a8
KS
15902012-11-21 Kostya Serebryany <kcc@google.com>
1591
9cb5411c 1592 * README.gcc: Extend the README.gcc with mode details.
5cba83a8 1593
b014e124
KS
15942012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1595
1596 * sanitizer_common/sanitizer_linux.cc
1597 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1598 (internal_mmap): Use it.
1599 (internal_filesize): Likewise.
1600
2b723e21
TT
16012012-11-16 Tom Tromey <tromey@redhat.com>
1602
1603 * configure.ac: Invoke AM_MAINTAINER_MODE.
1604 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1605 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1606
d1caed14
L
16072012-11-16 H.J. Lu <hongjiu.lu@intel.com>
1608
1609 PR other/55333
1610 * include/sanitizer/common_interface_defs.h (uhwptr): New type
1611 for hardware pointer.
1612 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1613 Replace uptr with uhwptr for stack unwind.
1614
f3754998
DS
16152012-11-16 Dodji Seketeli <dodji@redhat.com>
1616
1617 * configure.tgt: Enable build on sparc linux.
1618
f64bcb29
L
16192012-11-15 H.J. Lu <hongjiu.lu@intel.com>
1620
1621 * configure.ac: Properly set MULTISUBDIR.
1622 * asan/Makefile.am (gcc_version): New.
1623 * interception/Makefile.am (gcc_version): Likewise.
1624 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1625 * configure: Regenerated.
1626 * asan/Makefile.in: Likewise.
1627 * interception/Makefile.in: Likewise.
1628 * sanitizer_common/Makefile.in: Likewise.
1629
2a6346c4
L
16302012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1631
1632 PR other/55291
1633 * configure.ac (--enable-version-specific-runtime-libs): New option.
1634 (AC_CANONICAL_SYSTEM): New.
1635 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1636 (toolexecdir): Support multilib.
1637 (toolexeclibdir): Likewise.
1638 (multilib_arg): New.
1639 * Makefile.in: Regenerated.
1640 * aclocal.m4: Likewise.
1641 * configure: Likewise.
1642 * asan/Makefile.in: Likewise.
1643 * interception/Makefile.in: Likewise.
1644 * sanitizer_common/Makefile.in: Likewise.
1645
4a56a7be
L
16462012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1647
1648 PR other/55292
1649 Backport from upstream revision 167883
1650 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1651 __x86_64__ instead of __WORDSIZE.
1652 (internal_filesize): Likwise.
1653
4053ca2c
L
16542012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1655
1656 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1657 * Makefile.in: Regenerated.
1658 * configure: Likewise.
1659
a2479b3d
L
16602012-11-13 H.J. Lu <hongjiu.lu@intel.com>
1661
1662 PR other/55304
1663 * acinclude.m4: New file.
1664 * Makefile.am (ACLOCAL_AMFLAGS): New.
1665 * configure.ac (AC_PREREQ): Set to 2.64.
1666 (AC_CONFIG_AUX_DIR): Set to "..".
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
1674 * config.guess: Removed.
1675 * config.sub: Likewise.
1676 * depcomp: Likewise.
1677 * install-sh: Likewise.
1678 * ltmain.sh: Likewise.
1679 * missing: Likewise.
1680
93bf5390
RH
16812012-11-13 Richard Henderson <rth@redhat.com>
1682
1683 * configure.tgt: New file.
1684
d2860e72
DM
16852012-11-12 David S. Miller <davem@davemloft.net>
1686
1687 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1688
f35db108
WM
16892012-10-29 Wei Mi <wmi@google.com>
1690
1691 Initial checkin: migrate asan runtime from llvm.