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