]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/ChangeLog
preprocessor: Fix tracking of system header state [PR60014,PR60723]
[thirdparty/gcc.git] / libsanitizer / ChangeLog
CommitLineData
ab332cd7
GA
12022-10-11 Olivier Hainque <hainque@adacore.com>
2 Olivier Hainque <hainque@adacore.com>
3
4 * configure: Regenerate.
5
69fd6dcc
GA
62022-10-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7
8 PR sanitizer/105531
9 * sanitizer_common/sanitizer_procmaps_solaris.cpp: Cherry-pick
10 llvm-project revision 1cd4d63fb9ab0f04c7151911dde0d58b673823de.
11
5e070cf4
GA
122022-09-04 Iain Sandoe <iain@sandoe.co.uk>
13
14 * LOCAL_PATCHES: Update.
15
542c60c4
GA
162022-08-31 Xi Ruoyao <xry111@xry111.site>
17
18 * configure.tgt: Allow loongarch64-*-linux*.
19
3de9fb32
GA
202022-08-30 Martin Liska <mliska@suse.cz>
21
22 * LOCAL_PATCHES: Update.
23
242022-08-30 Martin Liska <mliska@suse.cz>
25
26 * sanitizer_common/Makefile.am: Remove sanitizer_openbsd.
27 * sanitizer_common/Makefile.in: Regenerate.
28
b563a8dd
GA
292022-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30
31 PR sanitizer/105531
32 * sanitizer_common/sanitizer_linux_libcdep.cpp,
33 sanitizer_common/sanitizer_solaris.h:: Cherry-pick
34 llvm-project revision 3776db9a4fd2080d23d6a5f52e405eea44558761.
35
ab869e7f
GA
362022-05-05 Martin Liska <mliska@suse.cz>
37
38 * LOCAL_PATCHES: Update.
39
3e7db517
GA
402022-05-04 Martin Liska <mliska@suse.cz>
41
42 * tsan/Makefile.am: Update Makefile.am files.
43 * hwasan/Makefile.am: Likewise.
44 * sanitizer_common/Makefile.am: Likewise.
45 * Makefile.in: Re-generate.
46 * asan/Makefile.in: Likewise.
47 * hwasan/Makefile.in: Likewise.
48 * interception/Makefile.in: Likewise.
49 * libbacktrace/Makefile.in: Likewise.
50 * lsan/Makefile.in: Likewise.
51 * sanitizer_common/Makefile.in: Likewise.
52 * tsan/Makefile.in: Likewise.
53 * ubsan/Makefile.in: Likewise.
54
510613e7
GA
552022-03-14 Xi Ruoyao <xry111@mengyan1223.wang>
56
57 * configure.tgt: Enable build on mips*64*-*-linux*.
58
592022-03-14 Xi Ruoyao <xry111@mengyan1223.wang>
60
61 * sanitizer_common/sanitizer_atomic_clang.h: Ensures to only
62 include sanitizer_atomic_clang_mips.h for O32.
63
875e493b
GA
642022-02-15 Jakub Jelinek <jakub@redhat.com>
65
66 * sanitizer_common/sanitizer_linux_libcdep.cpp: Cherry-pick
67 llvm-project revision ef14b78d9a144ba81ba02083fe21eb286a88732b.
68
682ede39
GA
692022-02-03 David Seifert <soap@gentoo.org>
70 Jakub Jelinek <jakub@redhat.com>
71
72 * configure.ac: Support --disable-werror.
73 * aclocal.m4: Include also ../config/warnings.m4.
74 * libbacktrace/Makefile.am (WARN_FLAGS): Remove.
75 * configure: Regenerate.
76 * Makefile.in: Regenerate.
77 * asan/Makefile.in: Regenerate.
78 * hwasan/Makefile.in: Regenerate.
79 * interception/Makefile.in: Regenerate.
80 * libbacktrace/Makefile.in: Regenerate.
81 * lsan/Makefile.in: Regenerate.
82 * sanitizer_common/Makefile.in: Regenerate.
83 * tsan/Makefile.in: Regenerate.
84 * ubsan/Makefile.in: Regenerate.
85
3a580f96
GA
862021-12-06 H.J. Lu <hjl.tools@gmail.com>
87
88 * LOCAL_PATCHES: Add commit 70b043845d7.
89
902021-12-06 H.J. Lu <hjl.tools@gmail.com>
91
92 PR sanitizer/103466
93 * tsan/tsan_rtl_amd64.S (__tsan_trace_switch_thunk): Replace
94 vmovdqu with movdqu.
95 (__tsan_report_race_thunk): Likewise.
96
2f0dd172
GA
972021-11-28 Andrew Pinski <apinski@marvell.com>
98
99 PR sanitizer/62157
100 * Makefile.am: Force DIST_SUBDIRS to be SUBDIRS.
101 * Makefile.in: Regenerate.
102 * asan/Makefile.in: Likewise.
103 * hwasan/Makefile.in: Likewise.
104 * interception/Makefile.in: Likewise.
105 * libbacktrace/Makefile.in: Likewise.
106 * lsan/Makefile.in: Likewise.
107 * sanitizer_common/Makefile.in: Likewise.
108 * tsan/Makefile.in: Likewise.
109 * ubsan/Makefile.in: Likewise.
110
483092d3
GA
1112021-11-18 Jakub Jelinek <jakub@redhat.com>
112
113 PR bootstrap/102675
114 * sanitizer_common/Makefile.am: Use -DUSE_SYSTEM_MD5 in AM_CXXFLAGS
115 of sanitizer_platform_limits_freebsd.cpp.
116 * sanitizer_common/Makefile.in: Regenerated.
117
a8029add
GA
1182021-11-13 H.J. Lu <hjl.tools@gmail.com>
119
120 * LOCAL_PATCHES: Update to the corresponding revision.
121
29a1af24
GA
1222021-11-04 Martin Liska <mliska@suse.cz>
123
124 * LOCAL_PATCHES: Update git revision.
125
ce6eec39
GA
1262021-10-08 H.J. Lu <hjl.tools@gmail.com>
127
128 PR sanitizer/102632
129 * asan/Makefile.am (AM_CCASFLAGS): New. Set to $(EXTRA_ASFLAGS).
130 * hwasan/Makefile.am (AM_CCASFLAGS): Likewise.
131 * interception/Makefile.am (AM_CCASFLAGS): Likewise.
132 * lsan/Makefile.am (AM_CCASFLAGS): Likewise.
133 * tsan/Makefile.am (AM_CCASFLAGS): Likewise.
134 * ubsan/Makefile.am (AM_CCASFLAGS): Likewise.
135 * asan/Makefile.in: Regenerate.
136 * hwasan/Makefile.in: Likewise.
137 * interception/Makefile.in: Likewise.
138 * lsan/Makefile.in: Likewise.
139 * tsan/Makefile.in: Likewise.
140 * ubsan/Makefile.in: Likewise.
141
57c7ec62
GA
1422021-10-06 H.J. Lu <hjl.tools@gmail.com>
143
144 * LOCAL_PATCHES: Update to the corresponding revision.
145
9d116bcc
GA
1462021-10-01 H.J. Lu <hjl.tools@gmail.com>
147
148 * LOCAL_PATCHES: Update to the corresponding revision.
149
58f87503
GA
1502021-08-11 Jakub Jelinek <jakub@redhat.com>
151
152 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
153 llvm-project revision faef0d042f523357fe5590e7cb6a8391cf0351a8.
154
fa1407c7
GA
1552021-08-03 Mosè Giordano <mose@gnu.org>
156
157 PR sanitizer/101111
158 * configure.tgt: Fix bashism in setting of `EXTRA_CXXFLAGS'.
159
39169029
GA
1602021-07-28 Ilya Leoshkevich <iii@linux.ibm.com>
161
162 * configure.tgt (s390*-*-linux*): Enable LSan and TSan for
163 s390x.
164
92d45509
GA
1652021-07-20 H.J. Lu <hjl.tools@gmail.com>
166
167 * asan/libtool-version: Bump version.
168 * tsan/libtool-version: Likewise.
169
1702021-07-20 H.J. Lu <hjl.tools@gmail.com>
171
172 * LOCAL_PATCHES: Update to the corresponding revision.
173
2832d51b
GA
1742021-05-21 Tamar Christina <tamar.christina@arm.com>
175
176 PR sanitizer/100379
177 * sanitizer_common/sanitizer_common_interceptors_ioctl.inc: Cherry-pick
178 llvm-project revision f7c5351552387bd43f6ca3631016d7f0dfe0f135.
179 * sanitizer_common/sanitizer_platform_limits_posix.cpp: Likewise.
180 * sanitizer_common/sanitizer_platform_limits_posix.h: Likewise.
181
f9af11c7
GA
1822021-05-13 Iain Sandoe <iain@sandoe.co.uk>
183
184 * LOCAL_PATCHES: Add Darwin patch for __builtin_os_log_format.
185
1862021-05-13 Iain Sandoe <iain@sandoe.co.uk>
187
188 * sanitizer_common/sanitizer_mac.cpp : Check for the
189 availability of __builtin_os_log_format before trying to
190 include a header depending on it.
191 (OS_LOG_DEFAULT): New.
192 (os_log_error): Define to a fall-back using an older API.
193
1942021-05-13 Martin Liska <mliska@suse.cz>
195
196 * LOCAL_PATCHES: Update to the corresponding revision.
197
da946b41
GA
1982021-04-17 Jakub Jelinek <jakub@redhat.com>
199
200 PR sanitizer/100114
201 * sanitizer_common/sanitizer_posix_libcdep.cpp: Cherry-pick
202 llvm-project revisions 82150606fb11d28813ae6da1101f5bda638165fe
203 and b93629dd335ffee2fc4b9b619bf86c3f9e6b0023.
204
6405b40f
GA
2052021-03-08 Martin Liska <mliska@suse.cz>
206
207 PR sanitizer/98920
208 * asan/asan_interceptors.cpp (COMMON_INTERCEPT_FUNCTION_VER):
209 Cherry pick.
210 (COMMON_INTERCEPT_FUNCTION_VER_UNVERSIONED_FALLBACK): Likewise.
211 * asan/asan_interceptors.h (ASAN_INTERCEPT_FUNC_VER_UNVERSIONED_FALLBACK): Likewise.
212 * sanitizer_common/sanitizer_common_interceptors.inc
213 (COMMON_INTERCEPT_FUNCTION_GLIBC_VER_MIN): Likewise.
214 (INIT_REGEX): Likewise.
215 * tsan/tsan_interceptors_posix.cpp (COMMON_INTERCEPT_FUNCTION_VER_UNVERSIONED_FALLBACK):
216 Likewise.
217
e62bb7f0
GA
2182021-01-26 Martin Liska <mliska@suse.cz>
219
220 PR sanitizer/98828
221 * lsan/Makefile.am: Add missing lsan_posix.cpp file.
222 * lsan/Makefile.in: Likewise.
223
651b8a50
GA
2242021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
225
226 * configure: Re-generate.
227
6e1edf48
GA
2282020-12-05 Iain Sandoe <iain@sandoe.co.uk>
229
230 PR target/97865
231 * configure.tgt: Add dynamic_lookup to EXTRA_CXXFLAGS for
232 Darwin.
233 * configure: Regenerate.
234
a9625c50
GA
2352020-11-29 John David Anglin <danglin@gcc.gnu.org>
236
237 * configure: Regenerate.
238
360258da
GA
2392020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
240
241 * LOCAL_PATCHES: Add one commit.
242
2432020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
244
245 * Makefile.am: Condition Build hwasan directory.
246 * Makefile.in: Regenerate.
247 * configure: Regenerate.
248 * configure.ac: Set HWASAN_SUPPORTED based on target
249 architecture.
250 * configure.tgt: Likewise.
251
2522020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
253
254 * Makefile.am: Build libhwasan.
255 * Makefile.in: Build libhwasan.
256 * asan/Makefile.in: Build libhwasan.
257 * configure: Build libhwasan.
258 * configure.ac: Build libhwasan.
259 * hwasan/Makefile.am: New file.
260 * hwasan/Makefile.in: New file.
261 * hwasan/libtool-version: New file.
262 * interception/Makefile.in: Build libhwasan.
263 * libbacktrace/Makefile.in: Build libhwasan.
264 * libsanitizer.spec.in: Build libhwasan.
265 * lsan/Makefile.in: Build libhwasan.
266 * sanitizer_common/Makefile.in: Build libhwasan.
267 * tsan/Makefile.in: Build libhwasan.
268 * ubsan/Makefile.in: Build libhwasan.
269
7a97e2fc
GA
2702020-11-21 Iain Sandoe <iain@sandoe.co.uk>
271
272 * configure.tgt: Allow x86_64 Darwin2x.
273
77f67db2
GA
2742020-11-13 Martin Liska <mliska@suse.cz>
275
276 * LOCAL_PATCHES: Update to the latest commit.
277
970d683f
GA
2782020-10-19 Martin Liska <mliska@suse.cz>
279
280 * LOCAL_PATCHES: Add one commit.
281
3acb91a4
GA
2822020-10-18 Iain Sandoe <iain@sandoe.co.uk>
283
284 * sanitizer_common/sanitizer_mac.h: Ensure that TARGET_OS_
285 macros are defined where the macOS SDK does not contain
286 them.
287 (TARGET_OS_OSX, TARGET_OS_IOS, TARGET_OS_TV, TARGET_OS_WATCH):
288 Define where needed.
289
56e4eee9
GA
2902020-10-16 Martin Liska <mliska@suse.cz>
291
292 * LOCAL_PATCHES: Update revision.
293
44135373
GA
2942020-09-21 Ian Lance Taylor <iant@golang.org>
295
296 * libbacktrace/backtrace-rename.h (backtrace_uncompress_lzma):
297 Define.
298 (backtrace_syminfo_to_full_callback): Define.
299 (backtrace_syminfo_to_full_error_callback): Define.
300
96686b3f
GA
3012020-07-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
302
303 * sanitizer_common/sanitizer_linux.cpp: Cherry-pick llvm-project
304 revision f0e9b76c3500496f8f3ea7abe6f4bf801e3b41e7.
305
b952c2cf
GA
3062020-06-09 Martin Liska <mliska@suse.cz>
307
308 * asan/Makefile.am: Replace gnu++11 with gnu++14.
309 * interception/Makefile.am: Likewise.
310 * libbacktrace/Makefile.am: Likewise.
311 * lsan/Makefile.am: Likewise.
312 * sanitizer_common/Makefile.am: Likewise.
313 * tsan/Makefile.am: Likewise.
314 * ubsan/Makefile.am: Likewise.
315 * asan/Makefile.in: Regenerate.
316 * interception/Makefile.in: Likewise.
317 * libbacktrace/Makefile.in: Likewise.
318 * lsan/Makefile.in: Likewise.
319 * sanitizer_common/Makefile.in: Likewise.
320 * tsan/Makefile.in: Likewise.
321 * ubsan/Makefile.in: Likewise.
322
a9312a79
GA
3232020-06-02 Martin Liska <mliska@suse.cz>
324
325 * LOCAL_PATCHES: Update hash of local patches.
326
3272020-06-02 Martin Liska <mliska@suse.cz>
328
329 * MERGE: Merge from master.
330
885ef72f
GA
3312020-05-29 H.J. Lu <hjl.tools@gmail.com>
332
333 PR bootstrap/95413
334 * configure: Regenerated.
335
3362020-05-29 Martin Liska <mliska@suse.cz>
337
338 * HOWTO_MERGE: Do not mention not existing argument.
339 * README.gcc: Update LLVM repository location.
340
c3a4169b
GA
3412020-05-26 Martin Liska <mliska@suse.cz>
342
343 * LOCAL_PATCHES: Use git hash instead of SVN id.
344 * merge.sh: Use git instead of VCS. Update paths
345 relative to upstream git repository.
346
4c1a5d8b
L
3472020-05-15 H.J. Lu <hongjiu.lu@intel.com>
348
349 PR bootstrap/95147
350 * configure: Regenerated.
351
8d286dd1
L
3522020-05-14 H.J. Lu <hongjiu.lu@intel.com>
353
354 * configure: Regenerated.
355
d730fd95
AT
3562020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
357
358 * configure.tgt: Add x86_64- and i?86-*-freebsd* targets.
bf1dde97
AT
359
3602020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
361
362 * sanitizer_common/Makefile.am: Add
363 sanitizer_platform_limits_freebsd.cpp.
364 * sanitizer_common/Makefile.in: Regenerate.
365
63cc547f
IS
3662020-03-01 Iain Sandoe <iain@sandoe.co.uk>
367
368 PR sanitizer/93731
369 * configure.tgt (x86_64-*-darwin*, i?86-*-darwin*): Enable by
370 default only for Darwin versions greater than 12 (macOS 10.8).
371
e8e66971
MR
3722020-01-24 Maciej W. Rozycki <macro@wdc.com>
373
374 * configure.ac: Handle `--with-toolexeclibdir='.
375 * Makefile.in: Regenerate.
376 * aclocal.m4: Regenerate.
377 * configure: Regenerate.
378 * asan/Makefile.in: Regenerate.
379 * interception/Makefile.in: Regenerate.
380 * libbacktrace/Makefile.in: Regenerate.
381 * lsan/Makefile.in: Regenerate.
382 * sanitizer_common/Makefile.in: Regenerate.
383 * tsan/Makefile.in: Regenerate.
384 * ubsan/Makefile.in: Regenerate.
385
4abc46b5
JJ
3862019-11-26 Jakub Jelinek <jakub@redhat.com>
387
388 PR sanitizer/92154
389 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry-pick
390 llvm-project revision 947f9692440836dcb8d88b74b69dd379d85974ce.
391 * sanitizer_common/sanitizer_platform_limits_posix.cpp: Likewise.
392
f6fbdc38
ML
3932019-11-20 Martin Liska <mliska@suse.cz>
394
395 * libtool-version: Remove.
396 * lsan/libtool-version: Upate comment to not mention libmudflap.
397 * tsan/libtool-version: Likewise.
398 * ubsan/libtool-version: Likewise.
399
4a96e1c4
AS
4002019-11-13 Andreas Schwab <schwab@suse.de>
401
402 * configure.tgt (riscv64-*-linux*): Enable build.
403
21bb1625
ML
4042019-11-07 Martin Liska <mliska@suse.cz>
405
406 * all source files: Reapply all revisions mentioned in LOCAL_PATCHES.
407
cb7dc4da
ML
4082019-11-07 Martin Liska <mliska@suse.cz>
409
410 * merge.sh: Update to use llvm-project git repository.
411 * all source files: Merge from upstream
412 82588e05cc32bb30807e480abd4e689b0dee132a.
413
1c48938e
ML
4142019-11-05 Martin Liska <mliska@suse.cz>
415
416 * ubsan/ubsan_flags.cpp (InitializeFlags): Trunk decided to print
417 summary for all sanitizers, but we want to have UBSAN without it.
418
acd700fd
ML
4192019-11-05 Martin Liska <mliska@suse.cz>
420
421 * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply from
422 LOCAL_PATCHES.
423 (CheckODRViolationViaPoisoning): Likewise.
424 (RegisterGlobal): Likewise.
425 * asan/asan_interceptors.h (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): Likewise.
426 (defined): Likewise.
427 * asan/asan_mapping.h: Likewise.
428 * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise.
429 * sanitizer_common/sanitizer_mac.cpp (defined): Likewise.
430 * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise.
431 * sanitizer_common/sanitizer_platform_limits_posix.h: Likewise.
432 * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise.
433 * tsan/tsan_rtl_ppc64.S: Likewise.
434 * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
435 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
436 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
437 (struct CFICheckFailData): Likewise.
438 (RECOVERABLE): Likewise.
439 * ubsan/ubsan_platform.h: Likewise.
440
617be04a
ML
4412019-11-05 Martin Liska <mliska@suse.cz>
442
443 * tsan/Makefile.am: Rename tsan_interceptors.cpp to
444 tsan_interceptors_posix.
445 * tsan/Makefile.in: Regenerate.
446
3ca75cd5
ML
4472019-11-05 Martin Liska <mliska@suse.cz>
448
449 * all source files: Merge from upstream r375507.
450
761a3a95
TC
4512019-10-22 Tamar Christina <tamar.christina@arm.com>
452
453 PR sanitizer/92154
454 * sanitizer_common/sanitizer_platform_limits_posix.cpp:
455 Cherry-pick compiler-rt revision r375220.
456
e9085da5
MR
4572019-09-27 Maciej W. Rozycki <macro@wdc.com>
458
459 * configure: Regenerate.
460
45d53c67
CL
4612019-09-10 Christophe Lyon <christophe.lyon@st.com>
462 Mickaël Guêné <mickael.guene@st.com>
463
464 * configure.tgt (arm*-*-*fdpiceabi): Sanitizers are
465 unsupported in this configuration.
466
639f51ba
IS
4672019-08-16 Iain Sandoe <iain@sandoe.co.uk>
468
469 * LOCAL_PATCHES: Add r274585.
470
dea853e8
IS
4712019-08-16 Iain Sandoe <iain@sandoe.co.uk>
472
473 * asan/asan_interceptors.h: Reapply r272406.
474
b3595983
ML
4752019-08-15 Martin Liska <mliska@suse.cz>
476
477 * LOCAL_PATCHES: Add r274540
478
71e895b1
ML
4792019-08-15 Martin Liska <mliska@suse.cz>
480
481 * tsan/tsan_rtl_ppc64.S: Reapply.
482
8bc1fac7
IS
4832019-08-15 Iain Sandoe <iain@sandoe.co.uk>
484
485 PR bootstrap/91455
486 * Makefile.in: Regenerated.
487 * aclocal.m4: Likewise.
488 * asan/Makefile.in: Likewise.
489 * configure: Likewise.
490 * interception/Makefile.in: Likewise.
491 * libbacktrace/Makefile.in: Likewise.
492 * lsan/Makefile.in: Likewise.
493 * sanitizer_common/Makefile.am: Include top_srcdir unconditionally.
494 * sanitizer_common/Makefile.in: Regenerated.
495 * tsan/Makefile.in: Likewise.
496 * ubsan/Makefile.in: Likewise.
497
e2723123
ML
4982019-08-14 Martin Liska <mliska@suse.cz>
499
500 * LOCAL_PATCHES: Refresh based on what was committed.
501
47f0255f
ML
5022019-08-14 Martin Liska <mliska@suse.cz>
503
504 * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply
505 patch from trunk.
506 (CheckODRViolationViaPoisoning): Likewise.
507 (RegisterGlobal): Likewise.
508 * asan/asan_mapping.h: Likewise.
509 * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise.
510 * sanitizer_common/sanitizer_mac.cpp (defined): Likewise.
511 * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise.
512 * sanitizer_common/sanitizer_platform_limits_posix.h (defined): Likewise.
513 * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise.
514 * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
515 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
516 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
517 (struct CFICheckFailData): Likewise.
518 (RECOVERABLE): Likewise.
519 * ubsan/ubsan_platform.h: Likewise.
520
b667dd70
ML
5212019-08-14 Martin Liska <mliska@suse.cz>
522
523 PR sanitizer/89832
524 PR sanitizer/91325
525 * All source files: Merge from upstream 368656.
526
7cfb7260
RO
5272019-06-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
528
529 * sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick
530 compiler-rt revision 363778.
531
9553f0d2
IS
5322019-06-18 Iain Sandoe <iain@sandoe.co.uk>
533
534 PR libsanitizer/87880
535 * asan/asan_interceptors.h:
536 (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New.
537 * asan/Makefile.am (DEFS): Add
538 ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0.
539 * asan/Makefile.in: Regenerated.
540 * asan/libtool-version: Bump version.
541
7f63a854
SB
5422019-05-27 Segher Boessenkool <segher@kernel.crashing.org>
543
544 PR target/90639
545 * tsan/tsan_rtl_ppc64.S: Add ".machine altivec".
546
ccd1242e
RO
5472019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
548
549 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
550 handling.
551 * configure: Regenerate.
552
b8e214c6
ML
5532019-04-08 Martin Liska <mliska@suse.cz>
554
555 * LOCAL_PATCHES: Add revision.
556
17cf9090
ML
5572019-04-08 Martin Liska <mliska@suse.cz>
558
559 PR sanitizer/89941
560 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined):
561 Reapply patch from r259664.
562 * sanitizer_common/sanitizer_platform_limits_posix.h (defined):
563 Likewise.
564
7a26e273
EB
5652019-03-13 Eric Botcazou <ebotcazou@adacore.com>
566
567 PR sanitizer/80953
568 Merge from LLVM revision 355980
569 * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC.
570 (kAllocatorSize): Likewise.
571 (DefaultSizeClassMap): Likewise.
572 * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define.
573 (SHADOW_OFFSET): Define for SPARC.
574 Include asan_mapping_sparc64.h for SPARC 64-bit.
575 * asan/asan_mapping_sparc64.h: New file.
576
a196c82c
EB
5772019-03-13 Eric Botcazou <ebotcazou@adacore.com>
578
579 PR sanitizer/80953
580 Merge from LLVM revision 355979
581 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
582 copy Global objects for SPARC with GCC.
583
36b50aeb
EB
5842019-03-13 Eric Botcazou <ebotcazou@adacore.com>
585
586 PR sanitizer/80953
587 Merge from LLVM revision 355978
588 * sanitizer_common/sanitizer_allocator_primary32.h
589 (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if
590 SANITIZER_SIGN_EXTENDED_ADDRESSES is set.
591 (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES.
592 (ComputeRegionId): Likewise.
593 * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return
594 appropriate value for SPARC 64-bit.
595 * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE):
596 Define for SPARC.
597 (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit.
598
017abbe3
EB
5992019-03-13 Eric Botcazou <ebotcazou@adacore.com>
600
601 PR sanitizer/80953
602 Merge from LLVM revision 355965
603 * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for
604 SPARC/Linux.
605 (GetPcSpBp): Likewise.
606 * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc):
607 Adjust for SPARC.
608 * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND):
609 Define to 1 for SPARC.
610 * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite.
611 * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack):
612 Adjust the PC address for SPARC with GCC.
613
c24847a5
ML
6142019-03-06 Martin Liska <mliska@suse.cz>
615
616 PR sanitizer/88684
617 * sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
618 (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
619 * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
620 Likewise.
621
4dfc5b35
L
6222019-02-20 H.J. Lu <hongjiu.lu@intel.com>
623
624 PR sanitizer/89409
625 * sanitizer_common/sanitizer_linux.cc (internal_readlink):
626 Cherry-pick compiler-rt r354451.
627
a795cd3d
JG
6282019-01-23 Jonny Grant <jg@jguk.org>
629
630 PR sanitizer/89010
631 * libsanitizer/README.gcc: Update to current https URLs.
632
96051ee5
ML
6332018-12-27 Martin Liska <mliska@suse.cz>
634
a795cd3d 635 PR sanitizer/86229
96051ee5
ML
636 * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
637 pick rL350085.
638 * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
639
15e109b3
ML
6402018-11-09 Martin Liska <mliska@suse.cz>
641
642 * LOCAL_PATCHES: Include one local patch.
643
d1e2e13c
ML
6442018-11-09 Martin Liska <mliska@suse.cz>
645
646 PR sanitizer/87892
647 * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return
648 1 when CPU_COUNT macro is not defined.
649
39abbb86
BS
6502018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com>
651
652 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
653 Disable ASLR for powerpc64 when using sanitizers.
654
aaabfd71
RO
6552018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
656
657 PR sanitizer/80953
658 * configure.tgt (sparc*-*-solaris2.11*): Enable.
659 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
660
0b5ccc80
RO
6612018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
662
663 PR sanitizer/80953
664 * sanitizer_common/sanitizer_internal_defs.h,
665 sanitizer_common/sanitizer_platform_limits_solaris.h,
666 sanitizer_common/sanitizer_procmaps_solaris.cc,
667 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
668 revision 346153.
669 * sanitizer_common/sanitizer_stacktrace.h,
670 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
671 compiler-rt revision 346155.
672
b40a67df
SB
6732018-11-05 Segher Boessenkool <segher@kernel.crashing.org>
674
675 * LOCAL_PATCHES: Add r258525.
676 * sanitizer_common/sanitizer_stacktrace.cc
677 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
678 for PowerPC SYSV ABI.
679
6388cb29
ML
6802018-11-05 Martin Liska <mliska@suse.cz>
681
682 PR sanitizer/87860
683 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream
684 r346129.
685
22e05272
JM
6862018-10-31 Joseph Myers <joseph@codesourcery.com>
687
688 PR bootstrap/82856
689 * Makefile.am: Include multilib.am.
690 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
691 * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
692 interception/Makefile.in, libbacktrace/Makefile.in,
693 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
694 ubsan/Makefile.in: Regenerate.
695
088371bf
ML
6962018-10-31 Martin Liska <mliska@suse.cz>
697
698 * LOCAL_PATCHES: Update to installed revisions.
699
c244886c
ML
7002018-10-31 Martin Liska <mliska@suse.cz>
701
702 * ubsan/ubsan_platform.h: Add ifndef as we define it with
703 -DCAN_SANITIZE_UB CFLAGS.
704
f607b87c
ML
7052018-10-31 Martin Liska <mliska@suse.cz>
706
707 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
708
e63c9677
ML
7092018-10-31 Martin Liska <mliska@suse.cz>
710
711 * LOCAL_PATCHES: Update patch list.
712 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
713 patches from GCC's trunk.
714 (CheckODRViolationViaPoisoning): Likewise.
715 (RegisterGlobal): Likewise.
716 * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
717 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
718 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
719 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
720 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
721 (struct CFICheckFailData): Likewise.
722 (RECOVERABLE): Likewise.
723
8468f944
ML
7242018-10-31 Martin Liska <mliska@suse.cz>
725
726 * config.h.in: Regenerate.
727 * configure: Likewise.
728 * sanitizer_common/Makefile.am: Include new files, remove old
729 files.
730 * sanitizer_common/Makefile.in: Regenerate.
731 * ubsan/Makefile.am: Include new files, remove old
732 files.
733 * ubsan/Makefile.in: Likewise.
734 * asan/Makefile.am: Include new files.
735 * asan/Makefile.in: Regenerate.
736
eac97531
ML
7372018-10-31 Martin Liska <mliska@suse.cz>
738
739 * All source files: Merge from upstream 345033.
740
95fba530
ML
7412018-10-31 Martin Liska <mliska@suse.cz>
742
743 * HOWTO_MERGE: Enhance documentation.
744 * merge.sh: Add support for git as well.
745
b4f1f01d
ML
7462018-08-02 Martin Liska <mliska@suse.cz>
747
92a285c1 748 PR sanitizer/86022
b4f1f01d 749 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
92a285c1 750 Cherry-pick compiler-rt revision 338606.
b4f1f01d 751
c191b1ab
MP
7522018-08-01 Marek Polacek <polacek@redhat.com>
753
754 PR sanitizer/86759
755 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
756 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
757 319180.
758
c83b4b82
L
7592018-07-25 H.J. Lu <hongjiu.lu@intel.com>
760
761 PR target/86560
762 * asan/asan_interceptors.cc (swapcontext) Cherry-pick
763 compiler-rt revision 337603.
764 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
765 Likewise.
766
bdfc619e
JJ
7672018-07-05 Jakub Jelinek <jakub@redhat.com>
768
769 Revert
770 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
771
772 PR sanitizer/84250
773 * Makefile.am: Reorder libs.
774 * Makefile.in: Regenerate.
775 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
776 libsanitizer_ubsan.la.
777 * asan/Makefile.in: Regenerate.
778 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
779 * ubsan/Makefile.in: Regenerate.
780
ca8dd9f2
MO
7812018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
782
783 PR sanitizer/84250
784 * Makefile.am: Reorder libs.
785 * Makefile.in: Regenerate.
786 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
787 libsanitizer_ubsan.la.
788 * asan/Makefile.in: Regenerate.
789 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
790 * ubsan/Makefile.in: Regenerate.
791
3b07c0e5
DK
7922018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
793
92a285c1
ML
794 PR sanitizer/86090
795 * configure.ac: Check for lstat and readlink.
796 * configure, config.h.in: Rebuild.
3b07c0e5 797
5b87c1fe
MK
7982018-05-31 Matthias Klose <doko@ubuntu.com>
799
800 PR sanitizer/86012
801 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
802 SIZEOF_STRUCT_USTAT for 32bit sparc.
803
71b55d45
L
8042018-05-24 H.J. Lu <hongjiu.lu@intel.com>
805
806 PR sanitizer/85835
807 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
808 include <sys/ustat.h> for Linux.
809 (SIZEOF_STRUCT_USTAT): New.
810 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
811
bc40f166
HPN
8122018-04-26 Hans-Peter Nilsson <hp@axis.com>
813
752361c9
HPN
814 * configure.tgt <mips*-*-linux*>: Enable build, excluding
815 mips*64*-*-linux*.
816
9f943b24
HPN
817 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
818 take the shortcut to #include <sys/stat.h> for MIPS instead of
819 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
820 or wrong to get the kernel struct stat.
821 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
822 Correct the value for 32-bit non-android struct_kernel_stat_sz.
823
bc40f166
HPN
824 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
825 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
826
7b47ecf2
L
8272018-04-24 H.J. Lu <hongjiu.lu@intel.com>
828
829 * configure: Regenerated.
830
a0e1df88
JJ
8312018-04-19 Jakub Jelinek <jakub@redhat.com>
832
833 * configure: Regenerated.
834
001ddaa8
DM
8352018-04-18 David Malcolm <dmalcolm@redhat.com>
836
837 PR jit/85384
838 * configure: Regenerate.
839
19ddb884
BS
8402018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
841
842 PR sanitizer/85389
843 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
844 from 0xa0000000000ULL to ~(uptr)0.
845
359ea407
JJ
8462018-03-19 Jakub Jelinek <jakub@redhat.com>
847
848 PR sanitizer/84761
849 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
850 Define if not defined.
851 (DL_INTERNAL_FUNCTION): Don't define.
852 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
853 determine at runtime whether to use regparm(3), stdcall calling
854 convention for older glibcs or normal calling convention for
855 newer glibcs for call to _dl_get_tls_static_info.
856
1422855a
SB
8572018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
858
859 * sanitizer_common/sanitizer_stacktrace.cc
860 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
861 for PowerPC SYSV ABI.
862
14e335ed
IT
8632018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
864
865 PR target/84148
866 * configure: Regenerate.
867
4c4f3c3f
ML
8682018-02-05 Martin Liska <mliska@suse.cz>
869
870 * asan/asan_flags.inc: Cherry-pick upstream r323995.
871 * asan/asan_report.cc (CheckForInvalidPointerPair):
872 Cherry-pick upstream r323995.
873
2d509539
RO
8742018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
875
876 PR sanitizer/82825
877 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
9dfc6e83 878 r324284.
2d509539 879
1f7273e5
RO
8802018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
881
882 PR sanitizer/82824
883 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
884
05abad4c
ML
8852017-12-05 Martin Liska <mliska@suse.cz>
886 Jakub Jelinek <jakub@redhat.com>
887
888 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
889 * asan/asan_descriptions.h: Likewise.
890 * asan/asan_report.cc: Likewise.
891 * asan/asan_thread.cc: Likewise.
892 * asan/asan_thread.h: Likewise.
893
9069eb28
IT
8942017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
895
896 * acinclude.m4: Add enable.m4 and cet.m4.
897 * Makefile.in: Regenerate.
898 * asan/Makefile.am: Update AM_CXXFLAGS.
899 * asan/Makefile.in: Regenerate.
900 * configure: Likewise.
901 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
902 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
903 * interception/Makefile.am: Update AM_CXXFLAGS.
904 * interception/Makefile.in: Regenerate.
905 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
906 * libbacktrace/Makefile.in: Regenerate.
907 * lsan/Makefile.am: Update AM_CXXFLAGS.
908 * lsan/Makefile.in: Regenerate.
909 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
910 AM_CCASFLAGS.
911 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
912 Add _CET_ENDBR macro.
913 * sanitizer_common/Makefile.in: Regenerate.
914 * tsan/Makefile.am: Update AM_CXXFLAGS.
915 * tsan/Makefile.in: Regenerate.
916 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
917 * ubsan/Makefile.am: Update AM_CXXFLAGS.
918 * ubsan/Makefile.in: Regenerate.
919
5925290f
JJ
9202017-11-08 Jakub Jelinek <jakub@redhat.com>
921
922 PR bootstrap/82670
923 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
924 and ubsan_signals_standalone.cc.
925 * ubsan/Makefile.in: Regenerated.
926
735e62b9
TV
9272017-11-05 Tom de Vries <tom@codesourcery.com>
928
929 PR other/82784
930 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
931 "do {} while (0)".
932 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
933
9a45ffbd
JJ
9342017-10-20 Jakub Jelinek <jakub@redhat.com>
935
936 PR sanitizer/82595
937 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
938 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
939 liblsan_preinit.o.
940 (lsan_files): Remove lsan_preinit.cc.
941 (liblsan_preinit.o): New rule.
942 * lsan/Makefile.in: Regenerated.
943
5d3805fc
JJ
9442017-10-19 Jakub Jelinek <jakub@redhat.com>
945
946 * All source files: Merge from upstream 315899.
92a285c1 947 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
5d3805fc 948 include/sanitizer/tsan_interface.h.
92a285c1 949 * asan/libtool-version: Bump the libasan SONAME.
5d3805fc
JJ
950 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
951 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
92a285c1 952 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
5d3805fc
JJ
953 sancov_flags.cc, sanitizer_allocator_checks.cc,
954 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
955 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
956 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
957 and sanitizer_coverage_mapping_libcdep.cc.
92a285c1 958 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
5d3805fc
JJ
959 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
960 (ubsan_files): Add ubsan_init_standalone.cc and
961 ubsan_signals_standalone.cc.
962 * ubsan/libtool-version: Bump the libubsan SONAME.
92a285c1
ML
963 * asan/Makefile.in: Regenerate.
964 * lsan/Makefile.in: Regenerate.
965 * sanitizer_common/Makefile.in: Regenerate.
966 * tsan/Makefile.in: Regenerate.
5d3805fc
JJ
967 * ubsan/Makefile.in: Regenerate.
968
bf4df9e6
L
9692017-10-05 H.J. Lu <hongjiu.lu@intel.com>
970
971 PR sanitizer/82379
972 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
973 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
974
d1453bec
JJ
9752017-10-02 Jakub Jelinek <jakub@redhat.com>
976
977 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
978 Define.
979
a5320f3c
JJ
9802017-08-07 Jakub Jelinek <jakub@redhat.com>
981
982 * include/system/sys/ptrace.h: New file.
983
c9b39a49
JJ
9842017-07-28 Jakub Jelinek <jakub@redhat.com>
985
986 PR sanitizer/80998
987 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
988 * ubsan/ubsan_checks.inc: Likewise.
989 * ubsan/ubsan_handlers.h: Likewise.
990
144e36a7
JJ
9912017-07-14 Jakub Jelinek <jakub@redhat.com>
992
993 PR sanitizer/81066
994 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
995 * sanitizer_common/sanitizer_linux.cc: Likewise.
996 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
997 * tsan/tsan_platform_linux.cc: Likewise.
998
d9f8c5af
ML
9992017-04-06 Martin Liska <mliska@suse.cz>
1000
1001 PR sanitizer/80166
1002 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
1003 Cherry-pick upstream r299036.
1004
fd6cba40
JJ
10052017-03-22 Jakub Jelinek <jakub@redhat.com>
1006
1007 PR sanitizer/78158
1008 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
1009
9b9ad360
AT
10102017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
1011
1012 PR sanitizer/79562
1013 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
1014 upstream r294806.
1015
1509524b
JJ
10162017-02-11 Jakub Jelinek <jakub@redhat.com>
1017
1018 PR sanitizer/79341
1019 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
1020 s390-linux 31-bit.
1021 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
1022 r294793.
1023 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
1024 upstream r294790.
1025 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
1026 r294799.
1027
778e0ac3
MO
10282017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
1029
1030 PR sanitizer/78663
1031 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
1032 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
1033
4997a71d
JJ
10342017-01-31 Jakub Jelinek <jakub@redhat.com>
1035
1036 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
1037
86b2a558
JJ
10382017-01-24 Jakub Jelinek <jakub@redhat.com>
1039
c831801d
JJ
1040 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
1041
86b2a558
JJ
1042 PR sanitizer/79168
1043 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
1044 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
1045 text.
1046 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
1047 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
1048 * tsan/tsan_ppc_regs.h: Likewise.
1049 * tsan/tsan_rtl_aarch64.S: Likewise.
1050 * tsan/tsan_rtl_mips64.S: Likewise.
1051 * tsan/tsan_rtl_ppc64.S: Likewise.
1052
73aa401e
JJ
10532017-01-21 Jakub Jelinek <jakub@redhat.com>
1054
1055 PR other/79046
1056 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
1057 instead of cat to get version from BASE-VER file.
1058 * asan/Makefile.am (gcc_version): Likewise.
1059 * ubsan/Makefile.am (gcc_version): Likewise.
1060 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1061 * lsan/Makefile.am (gcc_version): Likewise.
1062 * tsan/Makefile.am (gcc_version): Likewise.
1063 * interception/Makefile.in: Regenerated.
1064 * asan/Makefile.in: Regenerated.
1065 * ubsan/Makefile.in: Regenerated.
1066 * sanitizer_common/Makefile.in: Regenerated.
1067 * lsan/Makefile.in: Regenerated.
1068 * tsan/Makefile.in: Regenerated.
1069
3c36aa6b
JJ
10702017-01-17 Jakub Jelinek <jakub@redhat.com>
1071
1072 PR other/79046
1073 * configure.ac: Add GCC_BASE_VER.
1074 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1075 get version from BASE-VER file.
1076 * libbacktrace/Makefile.in: Regenerated.
1077 * interception/Makefile.in: Regenerated.
1078 * asan/Makefile.in: Regenerated.
1079 * ubsan/Makefile.in: Regenerated.
1080 * configure: Regenerated.
1081 * sanitizer_common/Makefile.in: Regenerated.
1082 * lsan/Makefile.in: Regenerated.
1083 * Makefile.in: Regenerated.
1084 * tsan/Makefile.in: Regenerated.
1085
942136a4
JC
10862017-01-10 James Clarke <jrtc27@jrtc27.com>
1087
1088 PR sanitizer/78992
1089 * sanitizer_common/sanitizer_platform_limits_posix.h
1090 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
1091
11bbe995
MO
10922016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
1093
1094 * LOCAL_PATCHES: Add revision.
1095
d61ed91e
MO
10962016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
1097
1098 PR sanitizer/78532
1099 * sanitizer_common/sanitizer_platform_limits_posix.h
1100 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
1101 versions.
1102
f4214e23
MT
11032016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
1104
1105 * LOCAL_PATCHES: Remove r242480.
1106
00212843
RO
11072016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1108
1109 * LOCAL_PATCHES: Add revision.
1110
97448adf
RO
11112016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
1112
1113 PR sanitizer/78267
1114 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
1115 compiler supports blocks extension.
1116
61a58d07
MT
11172016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
1118
1119 * LOCAL_PATCHES: Add revision.
1120
8c32ae0e
MT
11212016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
1122
1123 PR sanitizer/78294
1124 * tsan/tsan_rtl.cc: Add missing attribute.
1125
949cc52d
MO
11262016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
1127
1128 * LOCAL_PATCHES: New file.
1129
511c8687
MO
11302016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
1131
1132 PR sanitizer/78307
1133 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
1134 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
1135 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
1136 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
1137 function.
1138 (__ubsan_handle_cfi_bad_type_abort): Likewise.
1139 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
1140 (__ubsan_handle_cfi_bad_type): Export function.
1141 (__ubsan_handle_cfi_bad_type_abort): Likewise.
1142 * HOWTO_MERGE: Update documentation.
1143
84c1b9d3
MK
11442016-11-15 Matthias Klose <doko@ubuntu.com>
1145
1146 * configure: Regenerate.
1147
8f16b6ca
MO
11482016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
1149
1150 * asan/asan_globals.cc (RegisterGlobal): Do not call
1151 CheckODRViolationViaPoisoning.
1152 (CheckODRViolationViaPoisoning): Remove.
1153
789306de
MO
11542016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
1155
1156 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
1157 compiled code with GCC when extracting the caller PC for ARM if no
1158 valid frame pointer is available.
1159
fe7913f6
MO
11602016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
1161
1162 PR sanitizer/63958
1163 Reapply:
1164 2014-10-14 David S. Miller <davem@davemloft.net>
1165
1166 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1167 Define at __kernel_time_t, as needed for sparc.
1168 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1169 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1170 (__sanitizer): Define struct___old_kernel_stat_sz,
1171 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1172 (__sanitizer_ipc_perm): Adjust for sparc targets.
1173 (__sanitizer_shmid_ds): Likewsie.
1174 (__sanitizer_sigaction): Likewise.
1175 (IOC_SIZE): Likewsie.
1176
10189819
MO
11772016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
1178
1179 * All source files: Merge from upstream 285547.
1180 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
1181 variable.
1182 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
1183 * asan/Makefile.am (asan_files): Add new files.
1184 * asan/Makefile.in: Regenerate.
1185 * ubsan/Makefile.in: Likewise.
1186 * lsan/Makefile.in: Likewise.
1187 * tsan/Makefile.am (tsan_files): Add new files.
1188 * tsan/Makefile.in: Regenerate.
1189 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
1190 (EXTRA_libsanitizer_common_la_SOURCES): Define.
1191 (libsanitizer_common_la_LIBADD): Likewise.
1192 (libsanitizer_common_la_DEPENDENCIES): Likewise.
1193 * sanitizer_common/Makefile.in: Regenerate.
1194 * interception/Makefile.in: Likewise.
1195 * libbacktace/Makefile.in: Likewise.
1196 * Makefile.in: Likewise.
1197 * configure: Likewise.
1198 * merge.sh: Handle builtins/assembly.h merging.
1199 * builtins/assembly.h: New file.
1200 * asan/libtool-version: Bump the libasan SONAME.
1201
aef6a97c
JJ
12022016-09-21 Jakub Jelinek <jakub@redhat.com>
1203
1204 PR sanitizer/77567
1205 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
1206
0ce48391
JJ
12072016-09-05 Jakub Jelinek <jakub@redhat.com>
1208
1209 PR sanitizer/77396
1210 * asan/asan_globals.cc: Cherry-pick upstream r280657.
1211
e23a7a99
JJ
12122016-08-12 Jakub Jelinek <jakub@redhat.com>
1213
1214 PR sanitizer/71042
1215 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
1216 * tsan/tsan_rtl_aarch64.S: Likewise.
1217
aa00995c
AM
12182016-07-23 Alan Modra <amodra@gmail.com>
1219
1220 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
1221 * configure.ac: Don't substitute OBSTACK_DEFS.
1222 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
1223 * tsan/Makefile.am: Likewise.
1224 * configure: Regenerate.
1225 * Makefile.in: Regenerate.
1226 * asan/Makefile.in: Regenerate.
1227 * interception/Makefile.in: Regenerate.
1228 * libbacktrace/Makefile.in: Regenerate.
1229 * lsan/Makefile.in: Regenerate.
1230 * sanitizer_common/Makefile.in: Regenerate.
1231 * tsan/Makefile.in: Regenerate.
1232 * ubsan/Makefile.in: Regenerate.
1233
69af4eec
JJ
12342016-05-17 Jakub Jelinek <jakub@redhat.com>
1235
1236 PR sanitizer/71160
1237 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
1238 and r269633.
1239
fefddbef
MO
12402016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
1241
1242 PR sanitizer/70624
1243 * asan/asan_mac.cc: Cherry pick upstream r266868.
1244
e4729419
JJ
12452016-01-19 Jakub Jelinek <jakub@redhat.com>
1246
1247 PR sanitizer/68824
1248 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
1249 InitializeInterceptors): Cherry pick upstream r258119.
1250
bf93d543
AT
12512016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
1252
1253 * configure.ac: Replace the hard-coded -ldl requirement for
1254 link_sanitizer_common with a configure time check for -ldl.
1255 * configure: Regenerate.
1256
9211bbb2
MO
12572015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1258
1259 * include/system/linux/asm/ptrace.h: Move to ...
1260 * include/system/asm/ptrace.h: ... this.
1261
664dd3cf
MO
12622015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1263
1264 * include/system/linux/asm/ptrace.h: New header.
1265
55aea9f5
MO
12662015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1267
1268 * All source files: Merge from upstream r253555.
1269 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
1270 dependences for TSan for aarch64-*-linux* targets.
1271 * tsan/Makefile.am: Add new source files.
1272 * configure: Regenerate.
1273 * tsan/Makefile.in: Likewise.
1274
62c0f0a6
AM
12752015-11-09 Alan Modra <amodra@gmail.com>
1276
1277 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
1278 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
1279 interceptors.
1280 * configure.ac: Substitute OBSTACK_DEFS.
1281 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
1282 * tsan/Makefile.am: Likewise.
1283 * configure: Regenerate.
1284 * Makefile.in: Regenerate.
1285 * asan/Makefile.in: Regenerate.
1286 * interception/Makefile.in: Regenerate.
1287 * libbacktrace/Makefile.in: Regenerate.
1288 * lsan/Makefile.in: Regenerate.
1289 * sanitizer_common/Makefile.in: Regenerate.
1290 * tsan/Makefile.in: Regenerate.
1291 * ubsan/Makefile.in: Regenerate.
1292
692b1131
MO
12932015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1294
1295 PR bootstrap/68041
1296 * configure.ac (link_sanitizer_common): Link against librt only if it
1297 contains shm_open, required by sanitizers.
1298 (CXX_ABI_NEEDED): Remove variable.
1299 * configure: Regenerate.
1300 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
1301 * ubsan/Makefile.in: Regenerate.
1302
7047bc9c
MO
13032015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1304
1305 * HOWTO_MERGE: New file.
1306
21d61063
MO
13072015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1308
1309 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
1310 compiled code with GCC when extracting the caller PC for ARM if no
1311 valid frame pointer is available.
1312
15ebe1fe
MO
13132015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1314
1315 PR bootstrap/63888
1316 Reapply:
1317 2015-02-20 Jakub Jelinek <jakub@redhat.com>
1318
1319 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
1320 support until it is rewritten upstream.
1321
1322 * c-c++-common/asan/pr63888.c: New test.
1323
0d57d3e0
MO
13242015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1325
1326 PR sanitizer/63958
1327 Reapply:
1328 2014-10-14 David S. Miller <davem@davemloft.net>
1329
1330 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1331 Define at __kernel_time_t, as needed for sparc.
1332 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1333 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1334 (__sanitizer): Define struct___old_kernel_stat_sz,
1335 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1336 (__sanitizer_ipc_perm): Adjust for sparc targets.
1337 (__sanitizer_shmid_ds): Likewsie.
1338 (__sanitizer_sigaction): Likewise.
1339 (IOC_SIZE): Likewsie.
1340
696d846a
MO
13412015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1342
1343 * All source files: Merge from upstream r250806.
1344 * configure.ac (link_sanitizer_common): Add -lrt flag.
1345 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
1346 Set USE_CXX_ABI_FLAG=true for darwin.
1347 * asan/Makefile.am (asan_files): Add new files.
1348 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
1349 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
1350 * asan/Makefile.in: Regenerate.
1351 * ubsan/Makefile.am (ubsan_files): Add new files.
1352 (DEFS): Add DCAN_SANITIZE_UB=1.
1353 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
1354 * ubsan/Makefile.in: Regenerate.
1355 * tsan/Makefile.am (tsan_files): Add new files.
1356 (DEFS): Add DCAN_SANITIZE_UB=0.
1357 * tsan/Makefile.in: Regenerate.
1358 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
1359 * sanitizer_common/Makefile.in: Regenerate.
1360 * asan/libtool-version: Bump the libasan SONAME.
1361
1842a04c
MT
13622015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
1363
1364 PR sanitizer/67258
1365 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
1366
97d8f801
MT
13672015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
1368
1369 PR sanitizer/63927
1370 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
1371 for PowerPC.
1372
3d61d875
BS
13732015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1374
1375 PR sanitizer/63927
1376 * sanitizer_common/sanitizer_stacktrace.cc
1377 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
1378 find the link register at an offset of 16 from the base of the
1379 caller's stack frame.
1380
f3915b42
MH
13812015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1382
1383 * Makefile.in: Regenerated with automake-1.11.6.
1384 * aclocal.m4: Likewise.
1385 * asan/Makefile.in: Likewise.
1386 * configure: Likewise.
1387 * interception/Makefile.in: Likewise.
1388 * libbacktrace/Makefile.in: Likewise.
1389 * lsan/Makefile.in: Likewise.
1390 * sanitizer_common/Makefile.in: Likewise.
1391 * tsan/Makefile.in: Likewise.
1392 * ubsan/Makefile.in: Likewise.
1393
d041a6fc
YG
13942015-04-13 Yury Gribov <y.gribov@samsung.com>
1395
1396 PR sanitizer/64839
1397 * sanitizer_common/sanitizer_platform.h: Cherry pick
1398 upstream r234470.
1399 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
1400 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
1401 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
1402 * Makefile.in: Regenerate.
1403 * asan/Makefile.in: Regenerate.
1404 * config.h.in: Regenerate.
1405 * configure: Regenerate.
1406 * interception/Makefile.in: Regenerate.
1407 * libbacktrace/Makefile.in: Regenerate.
1408 * lsan/Makefile.in: Regenerate.
1409 * sanitizer_common/Makefile.in: Regenerate.
1410 * tsan/Makefile.in: Regenerate.
1411 * ubsan/Makefile.in: Regenerate.
1412
1413
d886f7cc
CL
14142015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
1415
1416 PR sanitizer/59009
1417 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
1418 upstream r230324.
1419 * sanitizer_common/sanitizer_platform.h: Likewise.
1420 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1421
563fb64a
BE
14222015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1423
1424 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
1425 upstream 224508 and 224755.
1426
ee876e59
JJ
14272015-03-09 Jakub Jelinek <jakub@redhat.com>
1428
1429 PR sanitizer/63958
1430 Reapply:
1431 2014-10-14 David S. Miller <davem@davemloft.net>
1432
1433 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1434 Define at __kernel_time_t, as needed for sparc.
1435 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1436 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1437 (__sanitizer): Define struct___old_kernel_stat_sz,
1438 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1439 (__sanitizer_ipc_perm): Adjust for sparc targets.
1440 (__sanitizer_shmid_ds): Likewsie.
1441 (__sanitizer_sigaction): Likewise.
1442 (IOC_SIZE): Likewsie.
1443
6ad0611b
PB
14442015-02-27 Peter Bergner <bergner@vnet.ibm.com>
1445
1446 * configure.tgt: Enable build on powerpc*le-*-linux.
1447
09901e8a 14482015-02-23 Jakub Jelinek <jakub@redhat.com>
86ee2038
JJ
1449
1450 PR bootstrap/63888
1451 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
1452 support until it is rewritten upstream.
1453
94213c10
MK
14542015-01-26 Matthias Klose <doko@ubuntu.com>
1455
1456 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1457 * configure: Regenerate.
1458
8790f572
VK
14592015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1460
94213c10 1461 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
8790f572 1462 * configure: Regenerate.
94213c10 1463 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
8790f572 1464
b0edd457
VK
14652015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1466
1467 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
1468 * configure: Regenerate.
1469 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
1470 (libtsan_la_DEPENDENCIES): Likewise.
1471 * Makefile.in: Regenerate.
1472 * asan/Makefile.in: Regenerate.
1473 * interception/Makefile.in: Regenerate.
1474 * libbacktrace/Makefile.in: Regenerate.
1475 * lsan/Makefile.in: Regenerate.
1476 * sanitizer_common/Makefile.in: Regenerate.
1477 * tsan/Makefile.in: Regenerate.
1478 * ubsan/Makefile.in: Regenerate.
1479
19ac475f
JJ
14802015-01-22 Jakub Jelinek <jakub@redhat.com>
1481
1482 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
1483
8b08ef25
JJ
14842015-01-21 Jakub Jelinek <jakub@redhat.com>
1485
1486 PR sanitizer/64435
1487 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
1488 upstream r226637.
1489 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
1490 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
1491
3ea36418
JJ
14922015-01-20 Jakub Jelinek <jakub@redhat.com>
1493
1494 PR sanitizer/64632
1495 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
1496
9deaf59d
JJ
14972015-01-19 Jakub Jelinek <jakub@redhat.com>
1498
1499 PR sanitizer/64435
1500 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
1501 upstream r223925.
1502
b6a8bacc
JJ
15032015-01-13 Jakub Jelinek <jakub@redhat.com>
1504
1505 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
1506 upstream r224518 and r224519.
1507 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
1508 r224834.
1509
f2798565
JJ
15102014-12-16 Jakub Jelinek <jakub@redhat.com>
1511
1512 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
1513 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
1514 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
1515 upstream r224308.
1516
a699d672
L
15172014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1518
1519 PR bootstrap/63784
1520 * configure: Regenerated.
1521
7697b16f
JJ
15222014-11-21 Jakub Jelinek <jakub@redhat.com>
1523
1524 PR target/61137
1525 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
1526 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
1527
7f201a67
UB
15282014-11-14 Uros Bizjak <ubizjak@gmail.com>
1529
1530 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
1531 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
1532 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
1533 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
1534 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
1535 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
1536 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
1537 * sanitizer_common/Makefile.in: Regenerate.
1538 * asan/Makefile.in: Ditto.
1539 * lsan/Makefile.in: Ditto.
1540 * interception/Makefile.in: Ditto.
1541 * tsan/Makefile.in: Ditto.
1542 * libbacktrace/Makefile.in: Ditto.
1543 * ubsan/Makefile.in: Ditto.
1544
c5be964a
KS
15452014-11-13 Kostya Serebryany <kcc@google.com>
1546
1547 * All source files: Merge from upstream r221802.
1548 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
1549 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
1550 with 'start' to follow the new interface.
1551 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1552 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1553 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1554 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1555 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1556 files.
1557 (AM_CXXFLAGS): Added -std=c++11.
1558 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1559 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1560 * asan/Makefile.in: Regenerate.
1561 * interception/Makefile.in: Regenerate.
1562 * libbacktrace/Makefile.in: Regenerate.
1563 * lsan/Makefile.in: Regenerate.
1564 * sanitizer_common/Makefile.in: Regenerate.
1565 * tsan/Makefile.in: Regenerate.
1566 * ubsan/Makefile.in: Regenerate.
1567
ebf6d33b
FXC
15682014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1569
1570 PR target/63610
1571 * configure: Regenerate.
1572
d13fc1ed
ML
15732014-10-16 Martin Liska <mliska@suse.cz>
1574
1575 * asan/Makefile.am: IPA ICF pass is disabled.
1576 * asan/Makefile.in: Likewise.
1577
c8473336
DM
15782014-10-14 David S. Miller <davem@davemloft.net>
1579
1580 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1581 Define at __kernel_time_t, as needed for sparc.
1582 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1583 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1584 (__sanitizer): Define struct___old_kernel_stat_sz,
1585 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1586 (__sanitizer_ipc_perm): Adjust for sparc targets.
1587 (__sanitizer_shmid_ds): Likewsie.
1588 (__sanitizer_sigaction): Likewsie.
1589 (IOC_SIZE): Likewsie.
1590
694b4cfa
JJ
15912014-10-14 Jakub Jelinek <jakub@redhat.com>
1592
1593 * ubsan/Makefile.am (DEFS): Add -DPIC.
1594 * ubsan/Makefile.in: Regenerated.
1595
a3125fc2
CL
15962014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
1597
1598 * configure.tgt: Enable build on aarch64*-linux.
1599
866e32ad
KS
16002014-09-19 Kostya Serebryany <kcc@google.com>
1601
1602 * All source files: Merge from upstream r218156.
1603 * asan/Makefile.am (asan_files): Added new files.
1604 * asan/Makefile.in: Regenerate.
1605 * ubsan/Makefile.am (ubsan_files): Added new files.
1606 * ubsan/Makefile.in: Regenerate.
1607 * tsan/Makefile.am (tsan_files): Added new files.
1608 * tsan/Makefile.in: Regenerate.
1609 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1610 files.
1611 * sanitizer_common/Makefile.in: Regenerate.
1612 * asan/libtool-version: Bump the libasan SONAME.
1613
126edc3f
JJ
16142014-09-10 Jakub Jelinek <jakub@redhat.com>
1615
1616 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
1617 upstream r215485, r217389, r217391 and r217400.
1618
0d807c80
PC
16192014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
1620
1621 * sanitizer_common/sanitizer_common_interceptors.inc:
1622 Cherry pick upstream r211008.
1623
4622301b
RB
16242014-06-11 Richard Biener <rguenther@suse.de>
1625
1626 * asan/asan_linux.cc: Cherry pick upstream r210012.
1627
ecd5543f
JJ
16282014-05-30 Jakub Jelinek <jakub@redhat.com>
1629
1630 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
1631 r209879.
1632 * sanitizer_common/sanitizer_common.h: Likewise.
1633 * asan/asan_mapping.h: Likewise.
1634 * asan/asan_linux.cc: Likewise.
1635 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
1636 * sanitizer_common/sanitizer_allocator.h: Likewise.
1637
85a16bf8
MP
16382014-05-23 Marek Polacek <polacek@redhat.com>
1639
1640 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
1641 floating-point types.
1642
dee5ea7a
KS
16432014-05-22 Kostya Serebryany <kcc@google.com>
1644
1645 * All source files: Merge from upstream r209283.
1646 * asan/Makefile.am (asan_files): Added new files.
1647 * asan/Makefile.in: Regenerate.
1648 * tsan/Makefile.am (tsan_files): Added new files.
1649 * tsan/Makefile.in: Regenerate.
0d807c80
PC
1650 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1651 files.
dee5ea7a
KS
1652 * sanitizer_common/Makefile.in: Regenerate.
1653
2675305b
YG
16542014-05-14 Yury Gribov <y.gribov@samsung.com>
1655
1656 PR sanitizer/61100
1657 * Makefile.am (nodist_saninclude_HEADERS): Install
1658 public headers.
1659 * Makefile.in: Regenerate.
1660
a6c9ab4e
RO
16612014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1662
1663 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1664 Add ../../libbacktrace/sort.c.
1665 * libbacktrace/Makefile.in: Regenerate.
1666 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1667
a42a7046
BS
16682014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1669
1670 * configure.tgt: Unsupported for little endian PowerPC for now.
1671
5ab39ec3
JJ
16722014-02-04 Jakub Jelinek <jakub@redhat.com>
1673
81c87471
JJ
1674 PR sanitizer/60055
1675 * tsan/tsan_flags.cc (__tsan_default_options): Add
1676 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
1677 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1678
5ab39ec3
JJ
1679 PR sanitizer/60038
1680 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1681 sanitizer_atomic.h and unistd.h.
1682 (kThreadDescriptorSize): Made static, remove initializer and const,
1683 change type to atomic_uintptr_t.
1684 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1685 query glibc version, compute kThreadDescriptorSize depending on
1686 glibc version minor number.
1687 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1688 kThreadDescriptorSize directly.
1689
4a7eaf5f
YG
16902014-01-23 Yury Gribov <y.gribov@samsung.com>
1691 Jakub Jelinek <jakub@redhat.com>
1692
1693 PR sanitizer/57316
1694 * configure.ac: Check for missing syscalls.
1695 * Makefile.am: Likewise.
1696 * configure: Regenerate.
1697 * Makefile.in: Regenerate.
1698
2613419a
JJ
16992014-01-09 Jakub Jelinek <jakub@redhat.com>
1700
b5f58ba3
JJ
1701 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1702 (LibbacktraceSymbolizer::Demangle): New declaration.
1703 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1704 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1705 method if possible.
1706 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1707 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1708 (struct CplusV3DemangleData): New type.
1709 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1710 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1711 SymbolizeDataCallback): Use CplusV3Demangle.
1712 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1713 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1714 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1715 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1716 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1717 cplus_demangle_init_info, cplus_demangle_mangled_name,
1718 cplus_demangle_operators, cplus_demangle_print,
1719 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1720 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1721 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1722 Define.
1723 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1724 (memcmp, strncmp): Redefine.
1725 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1726 ../../libiberty/cp-demangle.c.
1727 * libbacktrace/bridge.cc (__asan_internal_memcmp,
1728 __asan_internal_strncmp): New functions.
1729 * sanitizer_common/Makefile.in: Regenerated.
1730 * libbacktrace/Makefile.in: Regenerated.
1731 * configure: Regenerated.
1732 * configure.ac: Regenerated.
1733 * config.h.in: Regenerated.
1734
2613419a
JJ
1735 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1736 -isystem $(top_srcdir)/include/system.
1737 * sanitizer_common/Makefile.in: Regenerated.
1738 * include/system/linux/aio_abi.h: New header.
1739 * include/system/linux/mroute.h: New header.
1740 * include/system/linux/mroute6.h: New header.
1741 * include/system/linux/perf_event.h: New header.
1742 * include/system/linux/types.h: New header.
c915a581
JJ
1743
1744 PR sanitizer/59136
1745 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1746 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1747 and -I/-include flags.
1748 * lsan/Makefile.am (liblsan_la_LIBADD): Add
1749 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1750 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1751 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1752 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1753 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1754 libbacktrace.
1755 * README.gcc: Document that also lsan and ubsan are
1756 maintained in compiler-rt upstream.
1757 * libbacktrace/Makefile.am: New file.
1758 * libbacktrace/backtrace-rename.h: New file.
1759 * libbacktrace/backtrace-supported.h.in: New file.
1760 * libbacktrace/bridge.cc: New file.
1761 * configure.ac: Add tests needed for libbacktrace build
1762 within libsanitizer.
1763 * sanitizer_common/Makefile.in: Regenerated.
1764 * lsan/Makefile.in: Regenerated.
1765 * tsan/Makefile.in: Regenerated.
1766 * ubsan/Makefile.in: Regenerated.
1767 * libbacktrace/Makefile.in: Generated.
1768 * config.h.in: Regenerated.
1769 * configure: Regenerated.
1770 * Makefile.in: Regenerated.
1771 * interception/Makefile.in: Regenerated.
1772 * asan/Makefile.in: Regenerated.
1773 * aclocal.m4: Regenerated.
1774
409f3b46
KS
17752013-12-19 Kostya Serebryany <kcc@google.com>
1776
92a285c1 1777 * sanitizer_common/sanitizer_platform_limits_posix.cc:
409f3b46
KS
1778 workaround for missing definition of EOWNERDEAD, backport
1779 from upstream r196779.
1780
079db27b
L
17812013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1782
1783 * sanitizer_common/sanitizer_platform_limits_posix.h
1784 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1785 (__sanitizer_clock_t): Use long long for x32.
1786
7efb96c0
L
17872013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1788
1789 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1790 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1791 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1792
df9d1700
L
17932013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1794
1795 * configure.ac (link_sanitizer_common): Add -lm.
1796 * configure: Regenerated.
1797
c4c16f74
KS
17982013-12-05 Kostya Serebryany <kcc@google.com>
1799
1800 * All source files: Merge from upstream r196489.
1801 * merge.sh: Add *.S to the list of merged files.
1802
666ee4d6
YG
18032013-12-05 Yury Gribov <y.gribov@samsung.com>
1804
1805 PR sanitizer/59368
1806 * Makefile.am (gcc_version): Added gcc_version.
1807 * Makefile.in: Regenerate.
1808
df77f0e4
KS
18092013-12-05 Kostya Serebryany <kcc@google.com>
1810
1811 * All source files: Merge from upstream r196090.
1812 * tsan/Makefile.am (tsan_files): Added new files.
1813 * tsan/Makefile.in: Regenerate.
1814 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1815 * sanitizer_common/Makefile.in: Regenerate.
1816 * lsan/Makefile.am (lsan_files): Added new files.
1817 * lsan/Makefile.in: Regenerate.
1818
35814b03
JJ
18192013-11-29 Jakub Jelinek <jakub@redhat.com>
1820 Yury Gribov <y.gribov@samsung.com>
1821
1822 PR sanitizer/59063
1823 * libsanitizer.spec.in: Add spec file to hold link flags for
1824 various sanitizer libs.
1825 * configure.ac: Check whether clock_* routines come from librt.
1826 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1827 configure.ac.
1828 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1829 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1830 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1831 * asan/Makefile.in: Regenerate.
1832 * interception/Makefile.in: Regenerate.
1833 * lsan/Makefile.in: Regenerate.
1834 * sanitizer_common/Makefile.in: Regenerate.
1835 * tsan/Makefile.in: Regenerate.
1836 * ubsan/Makefile.in: Regenerate.
1837 * Makefile.in: Regenerate.
1838 * configure: Regenerate.
1839
049558ed
JJ
18402013-11-28 Jakub Jelinek <jakub@redhat.com>
1841 Yury Gribov <y.gribov@samsung.com>
1842
1843 PR sanitizer/59106
1844 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1845 don't need it.
1846 * ubsan/Makefile.in: Regenerated.
1847
9065ada9
JJ
18482013-11-22 Jakub Jelinek <jakub@redhat.com>
1849
1850 PR sanitizer/59061
1851 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1852 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1853 * configure: Regenerated.
1854 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1855 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1856 * lsan/Makefile.in: Regenerated.
1857
486294d4
MS
18582013-11-22 Mike Stump <mikestump@comcast.net>
1859
1860 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1861 change from upstream to fix build.
1862
2621c860
YG
18632013-11-18 Yury Gribov <y.gribov@samsung.com>
1864
1865 PR sanitizer/59106
1866 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1867 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1868 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1869 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1870 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1871 * asan/Makefile.in: Regenerate.
1872 * interception/Makefile.in: Regenerate.
1873 * tsan/Makefile.in: Regenerate.
1874 * lsan/Makefile.in: Regenerate.
1875 * sanitizer_common/Makefile.in: Regenerate.
1876
c8e1377b
KS
18772013-11-15 Kostya Serebryany <kcc@google.com>
1878
1879 PR sanitizer/58994
92a285c1
ML
1880 Backport from upstream revision 194573
1881 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1882 back to the original functions in the common libsanitizer
1883 interceptors and the __cxa_atexit() interceptor on Darwin.
c8e1377b 1884
c3d77f3a
PB
18852013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1886
1887 PR sanitizer/59009
1888 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1889 ifdef out more source.
1890
d00106f4
JJ
18912013-11-12 Jakub Jelinek <jakub@redhat.com>
1892
1893 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1894 ifdef out almost the whole source.
1895 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1896
e276866f
L
18972013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1898
1899 PR sanitizer/59018
1900 * sanitizer_common/sanitizer_platform_limits_posix.cc
1901 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1902 defined.
1903
f5c36cfc
L
19042013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1905
1906 PR sanitizer/59018
1907 * sanitizer_common/sanitizer_platform_limits_linux.cc
1908 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1909 defined.
1910 * sanitizer_common/sanitizer_platform_limits_posix.h
1911 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1912 defined.
1913 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1914 is defined.
1915 (__sanitizer___kernel_gid_t): Likewise.
1916 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1917 is defined.
1918
e45de14e
L
19192013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1920
1921 PR sanitizer/59018
1922 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1923 2 64-bit integers to save and restore fn and arg. Properly load
1924 newtls/child_tidptr into r8/r10.
1925
38693e39
L
19262013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1927
1928 PR sanitizer/59018
1929 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1930 internal_munmap, internal_open, internal_read, internal_write,
1931 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1932 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1933 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1934 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1935
ef1b3fda
KS
19362013-11-04 Kostya Serebryany <kcc@google.com>
1937
1938 * All source files: Merge from upstream r191666.
1939 * merge.sh: Added lsan.
1940 * configure.ac (AC_CONFIG_FILES): Added lsan.
1941 * Makefile.am (SUBDIRS): Added lsan.
1942 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1943 * asan/Makefile.am (asan_files): Added new files.
1944 (libasan_la_LIBADD): Added a dependency on lsan.
1945 * lsan/Makefile.am: New file.
1946 * asan/Makefile.in: Regenerate.
1947 * lsan/Makefile.in: Regenerate.
1948 * Makefile.in: Regenerate.
1949 * configure: Regenerate.
1950 * sanitizer_common/Makefile.in: Regenerate.
1951
3cbe17f7
AM
19522013-09-20 Alan Modra <amodra@gmail.com>
1953
1954 * configure: Regenerate.
1955
0cea211e
IS
19562013-09-01 Iain Sandoe <iain@codesourcery.com>
1957
1958 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1959 libinterception.la for Darwin.
1960 * ubsan/Makefile.in: Regenerate.
1961
de5a5fa1
MP
19622013-08-30 Jakub Jelinek <jakub@redhat.com>
1963
1964 * Makefile.am (SUBDIRS): Add ubsan.
1965 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1966 * merge.sh: Merge ubsan.
1967 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1968 * sanitizer_common/sanitizer_printf.cc: Likewise.
1969 * sanitizer_common/sanitizer_common.h: Likewise.
1970 * ubsan: New directory. Import ubsan runtime from llvm.
1971
634cfa2b
CL
19722013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1973
1974 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1975 Cherry pick upstream r182922.
1976
8a5800b8
CL
19772013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1978
1979 * configure.tgt: Add ARM pattern.
1980
a745e444 19812013-03-22 Jakub Jelinek <jakub@redhat.com>
1868beee
JJ
1982
1983 PR other/43620
1984 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1985 * Makefile.in: Regenerated.
1986 * asan/Makefile.in: Regenerated.
1987 * interception/Makefile.in: Regenerated.
1988 * sanitizer_common/Makefile.in: Regenerated.
1989 * tsan/Makefile.in: Regenerated.
1990
4c376126
JJ
19912013-02-28 Jakub Jelinek <jakub@redhat.com>
1992
1993 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1994 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1995 0x4fffffffffULL.
1996
7d613735
JJ
19972013-02-22 Jakub Jelinek <jakub@redhat.com>
1998
1999 PR sanitizer/56393
2000 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
2001 libasan_preinit.o.
2002 (libasan_preinit.o): Depend on asan_preinit.o.
2003 * asan/Makefile.in: Regenerated.
2004 * asan/asan_preinit.cc: New file, synced from upstream.
2005 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
2006
ecdbd01a 20072013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
304886c5
JH
2008
2009 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
2010 dynamic/asan_interceptors_dynamic.cc.
2011 * asan/Makefile.in: Regenerated.
2012 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
2013
4be7da26
JJ
20142013-02-21 Jakub Jelinek <jakub@redhat.com>
2015
2016 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
2017 defined. Add used attribute.
2018
7df59255
KS
20192013-02-21 Kostya Serebryany <kcc@google.com>
2020
2021 * All source files: Merge from upstream r175733.
2022 * sanitizer_common/Makefile.am: Added a new file.
2023 * sanitizer_common/Makefile.in: Regenerated.
2024
8afd2ed7
L
20252013-02-14 H.J. Lu <hongjiu.lu@intel.com>
2026
2027 PR bootstrap/56327
2028 * interception/interception.h (OFF_T): Merged from upstream
2029 r175140.
2030
6422242b
JJ
20312013-02-13 Jakub Jelinek <jakub@redhat.com>
2032
2033 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
2034
b4ab7d34
KS
20352013-02-13 Kostya Serebryany <kcc@google.com>
2036
8afd2ed7 2037 PR sanitizer/56128
b4ab7d34
KS
2038 * All source files: Merge from upstream r175049.
2039 * interception/Makefile.am: added include path.
2040 * interception/Makefile.in: Regenerated.
2041
34dc17ed
JH
20422013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
2043
2044 * configure.tgt: Disable build on darwin9 and earlier.
2045
2660d12d
KS
20462013-01-23 Kostya Serebryany <kcc@google.com>
2047
8afd2ed7 2048 PR sanitizer/55989
2660d12d
KS
2049 * All source files: Merge from upstream r173241.
2050 * merge.sh: Support merging .inc files.
2051
19006c45
JJ
20522013-01-16 Jakub Jelinek <jakub@redhat.com>
2053
2054 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
2055 -Wno-c99-extensions.
2056 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
2057 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
2058 * sanitizer_common/Makefile.in: Regenerated.
2059 * interception/Makefile.in: Regenerated.
2060 * asan/Makefile.in: Regenerated.
2061
edadb734
WM
20622013-01-10 Wei Mi <wmi@google.com>
2063
2064 PR sanitizer/55488
2065 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
2066 * tsan/Makefile.in: Regenerated.
2067 * tsan/tsan_rtl.h: Enable HACKY_CALL.
2068
e9772e16
KS
20692013-01-10 Kostya Serebryany <kcc@google.com>
2070
2071 * All source files: Merge from upstream r171973.
2072 * sanitizer_common/Makefile.am: Added new files.
2073 * asan/Makefile.am: Likewise.
2074 * tsan/Makefile.am: Likewise.
2075 * sanitizer_common/Makefile.in: Regenerated.
2076 * asan/Makefile.in: Likewise.
2077 * tsan/Makefile.in: Likewise.
2078
7f7162cf
L
20792013-01-07 H.J. Lu <hongjiu.lu@intel.com>
2080
2081 * asan/Makefile.am (libasan_la_LIBADD): Replace
2082 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
2083 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
2084 * Makefile.in: Regenerated.
2085 * configure: Likewise.
2086 * asan/Makefile.in: Likewise.
2087 * interception/Makefile.in: Likewise.
2088 * sanitizer_common/Makefile.in: Likewise.
2089 * tsan/Makefile.in: Likewise.
2090
b488a2c7
L
20912012-12-12 H.J. Lu <hongjiu.lu@intel.com>
2092
2093 * Makefile.am (AM_MAKEFLAGS): Restored.
2094 * interception/Makefile.am: Likewise.
2095 * sanitizer_common/Makefile.am: Likewise.
2096 * tsan/Makefile.am: Likewise.
2097 * Makefile.in: Regenerated.
2098 * asan/Makefile.in: Likewise.
2099 * interception/Makefile.in: Likewise.
2100 * sanitizer_common/Makefile.in: Likewise.
2101 * tsan/Makefile.in: Likewise.
2102
e8adb21b
L
21032012-12-12 H.J. Lu <hongjiu.lu@intel.com>
2104
2105 * Makefile.am (MAKEOVERRIDES): Restored.
2106 * asan/Makefile.am: Likewise.
2107 * interception/Makefile.am: Likewise.
2108 * sanitizer_common/Makefile.am: Likewise.
2109 * tsan/Makefile.am: Likewise.
2110 * Makefile.in: Regenerated.
2111 * asan/Makefile.in: Likewise.
2112 * interception/Makefile.in: Likewise.
2113 * sanitizer_common/Makefile.in: Likewise.
2114 * tsan/Makefile.in: Likewise.
2115
e1e953d9
L
21162012-12-12 H.J. Lu <hongjiu.lu@intel.com>
2117
2118 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
2119 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
2120 * Makefile.in: Regenerated.
2121 * configure: Likewise.
2122 * asan/Makefile.in: Likewise.
2123 * interception/Makefile.in: Likewise.
2124 * sanitizer_common/Makefile.in: Likewise.
2125 * tsan/Makefile.in: Likewise.
2126
a62d3903
L
21272012-12-12 H.J. Lu <hongjiu.lu@intel.com>
2128
2129 * Makefile.am (AM_MAKEFLAGS): Removed.
2130 (MAKEOVERRIDES): Likewise.
2131 * asan/Makefile.am: Likewise.
2132 * interception/Makefile.am: Likewise.
2133 * sanitizer_common/Makefile.am: Likewise.
2134 * tsan/Makefile.am: Likewise.
2135 * Makefile.in: Regenerated.
2136 * asan/Makefile.in: Likewise.
2137 * interception/Makefile.in: Likewise.
2138 * sanitizer_common/Makefile.in: Likewise.
2139 * tsan/Makefile.in: Likewise.
2140
d10a2df2
L
21412012-12-11 H.J. Lu <hongjiu.lu@intel.com>
2142
2143 PR sanitizer/55533
2144 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
2145 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
2146 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
2147 (AM_MAKEFLAGS): Remove CC and CXX.
2148 * interception/Makefile.am: Likewise.
2149 * sanitizer_common/Makefile.am: Likewise.
2150 * tsan/Makefile.am: Likewise.
2151 * Makefile.in: Regenerated.
2152 * aclocal.m4: Likewise.
2153 * configure: Likewise.
2154 * asan/Makefile.in: Likewise.
2155 * interception/Makefile.in: Likewise.
2156 * sanitizer_common/Makefile.in: Likewise.
2157 * tsan/Makefile.in: Likewise.
2158
957fee09
PB
21592012-12-06 Peter Bergner <bergner@vnet.ibm.com>
2160
2161 * configure.tgt: Enable build on powerpc*-linux.
2162
ecdbd01a 21632012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
3157880f
JH
2164
2165 PR 55599/sanitizer
d10a2df2
L
2166 * configure.ac: Set enable_static=no on darwin.
2167 * configure: Regenerated.
3157880f 2168
695edbac
KS
21692012-12-06 Kostya Serebryany <kcc@google.com>
2170
2171 * All files: Merge from upstream r169392.
2172
a0408454
KS
21732012-12-05 Kostya Serebryany <kcc@google.com>
2174
2175 * All files: Merge from upstream r169371.
2176
41d37c56 21772012-12-04 Kostya Serebryany <kcc@google.com>
ecdbd01a 2178 Jack Howarth <howarth@bromo.med.uc.edu>
8c4d267c
KS
2179
2180 PR 55521/sanitizer
2181 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
2182 * Makefile.am: Don't build interception subdir when
2183 USING_MAC_INTERPOSE defined.
2184 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
2185 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
2186 Compile asan_interceptors_dynamic.cc but not libinterception
2187 when USING_MAC_INTERPOSE defined.
2188 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
2189 * configure: Regenerated.
2190 * Makefile.in: Likewise.
2191 * asan/Makefile.in: Likewise.
2192 * interception/Makefile.in: Likewise.
2193 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
2194 * asan/asan_mac.cc: Likewise.
2195 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
2196 and use MISSING_BLOCKS_SUPPORT.
2197 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
2198 * interception/mach_override/LICENSE.txt: Remove unused file.
2199 * interception/mach_override/mach_override.c: Likewise.
2200 * interception/mach_override/mach_override.h: Likewise.
2201 * interception/mach_override: Remove unused directory.
2202
a23ed040
L
22032012-11-28 H.J. Lu <hongjiu.lu@intel.com>
2204
2205 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
2206 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
2207 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
2208 files.
2209 (AM_MAKEFLAGS): Restore CC and CXX.
2210 * interception/Makefile.am: Likewise.
2211 * sanitizer_common/Makefile.am: Likewise.
2212 * tsan/Makefile.am: Likewise.
2213 * Makefile.in: Regenerated.
2214 * aclocal.m4: Likewise.
2215 * configure: Likewise.
2216 * asan/Makefile.in: Likewise.
2217 * interception/Makefile.in: Likewise.
2218 * sanitizer_common/Makefile.in: Likewise.
2219 * tsan/Makefile.in: Likewise.
2220
2ed685b8
L
22212012-11-28 H.J. Lu <hongjiu.lu@intel.com>
2222
2223 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
2224 * configure.ac (ACX_NONCANONICAL_TARGET): New.
2225 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
2226 files.
2227 (AM_MAKEFLAGS): Remove CC and CXX.
2228 * interception/Makefile.am: Likewise.
2229 * sanitizer_common/Makefile.am: Likewise.
2230 * tsan/Makefile.am: Likewise.
2231 * Makefile.in: Regenerated.
2232 * aclocal.m4: Likewise.
2233 * configure: Likewise.
2234 * asan/Makefile.in: Likewise.
2235 * interception/Makefile.in: Likewise.
2236 * sanitizer_common/Makefile.in: Likewise.
2237 * tsan/Makefile.in: Likewise.
2238
4ba5ca46
KS
22392012-11-27 Kostya Serebryany <kcc@google.com>
2240
2241 * All files: Merge from upstream r168699.
2242
41d37c56 22432012-11-24 Kostya Serebryany <kcc@google.com>
ecdbd01a 2244 Jack Howarth <howarth@bromo.med.uc.edu>
f246eadc
JH
2245
2246 * interception/mach_override/mach_override.c: Migrate from llvm.
2247 * interception/mach_override/mach_override.h: Likewise.
2248 * interception/mach_override/LICENSE.txt: Likewise.
2249 * configure.tgt: Add darwin to supported targets.
2250 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
2251 * interception/Makefile.am: Compile mach_override.c when
2252 USING_MACH_OVERRIDE defined.
2253 * configure: Regenerated.
2254 * interception/Makefile.in: Likewise.
2255
9cb5411c
L
22562012-11-23 H.J. Lu <hongjiu.lu@intel.com>
2257
2258 PR sanitizer/55450
2259 * tsan/Makefile.am (gcc_version): New.
2260 * tsan/Makefile.in: Regenerated.
2261
3409d40e 22622012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 2263
e297eb60
KS
2264 * merge.sh: Support tsan, support added/removed files.
2265 * tsan/Makefile.am: Remove tsan_printf.cc.
2266 * tsan/Makefile.in: Regenerated.
2267 * other files: Merge from upstream r168514.
2268
22692012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 2270
e297eb60 2271 * merge.sh: New file.
3409d40e 2272
64548f3b
JJ
22732012-11-23 Jakub Jelinek <jakub@redhat.com>
2274
2275 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
2276 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
2277 automake conditional instead of !MULTISUBDIR32.
2278 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
2279 for 64-bit multilib.
2280 * configure.ac: Check for void * size, source in configure.tgt,
2281 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
2282 * configure: Regenerated.
2283 * Makefile.in: Regenerated.
2284 * tsan/Makefile.in: Regenerated.
2285
cd0be65c
WM
22862012-11-22 Wei Mi <wmi@google.com>
2287
2288 * tsan: New directory. Import tsan runtime from llvm.
2289 * configure.ac: Add 64 bits tsan build.
2290 * Makefile.am: Likewise.
2291 * configure: Regenerated.
2292 * Makefile.in: Likewise.
2293
5cba83a8
KS
22942012-11-21 Kostya Serebryany <kcc@google.com>
2295
9cb5411c 2296 * README.gcc: Extend the README.gcc with mode details.
5cba83a8 2297
b014e124
KS
22982012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2299
2300 * sanitizer_common/sanitizer_linux.cc
2301 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
2302 (internal_mmap): Use it.
2303 (internal_filesize): Likewise.
2304
2b723e21
TT
23052012-11-16 Tom Tromey <tromey@redhat.com>
2306
2307 * configure.ac: Invoke AM_MAINTAINER_MODE.
2308 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
2309 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
2310
d1caed14
L
23112012-11-16 H.J. Lu <hongjiu.lu@intel.com>
2312
2313 PR other/55333
2314 * include/sanitizer/common_interface_defs.h (uhwptr): New type
2315 for hardware pointer.
2316 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
2317 Replace uptr with uhwptr for stack unwind.
2318
f3754998
DS
23192012-11-16 Dodji Seketeli <dodji@redhat.com>
2320
2321 * configure.tgt: Enable build on sparc linux.
2322
f64bcb29
L
23232012-11-15 H.J. Lu <hongjiu.lu@intel.com>
2324
2325 * configure.ac: Properly set MULTISUBDIR.
2326 * asan/Makefile.am (gcc_version): New.
2327 * interception/Makefile.am (gcc_version): Likewise.
2328 * sanitizer_common/Makefile.am (gcc_version): Likewise.
2329 * configure: Regenerated.
2330 * asan/Makefile.in: Likewise.
2331 * interception/Makefile.in: Likewise.
2332 * sanitizer_common/Makefile.in: Likewise.
2333
2a6346c4
L
23342012-11-14 H.J. Lu <hongjiu.lu@intel.com>
2335
2336 PR other/55291
2337 * configure.ac (--enable-version-specific-runtime-libs): New option.
2338 (AC_CANONICAL_SYSTEM): New.
2339 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
2340 (toolexecdir): Support multilib.
2341 (toolexeclibdir): Likewise.
2342 (multilib_arg): New.
2343 * Makefile.in: Regenerated.
2344 * aclocal.m4: Likewise.
2345 * configure: Likewise.
2346 * asan/Makefile.in: Likewise.
2347 * interception/Makefile.in: Likewise.
2348 * sanitizer_common/Makefile.in: Likewise.
2349
4a56a7be
L
23502012-11-14 H.J. Lu <hongjiu.lu@intel.com>
2351
2352 PR other/55292
2353 Backport from upstream revision 167883
2354 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
2355 __x86_64__ instead of __WORDSIZE.
2356 (internal_filesize): Likwise.
2357
4053ca2c
L
23582012-11-14 H.J. Lu <hongjiu.lu@intel.com>
2359
2360 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
2361 * Makefile.in: Regenerated.
2362 * configure: Likewise.
2363
a2479b3d
L
23642012-11-13 H.J. Lu <hongjiu.lu@intel.com>
2365
2366 PR other/55304
2367 * acinclude.m4: New file.
2368 * Makefile.am (ACLOCAL_AMFLAGS): New.
2369 * configure.ac (AC_PREREQ): Set to 2.64.
2370 (AC_CONFIG_AUX_DIR): Set to "..".
2371 * Makefile.in: Regenerated.
2372 * aclocal.m4: Likewise.
2373 * configure: Likewise.
2374 * asan/Makefile.in: Likewise.
2375 * interception/Makefile.in: Likewise.
2376 * sanitizer_common/Makefile.in: Likewise.
2377
2378 * config.guess: Removed.
2379 * config.sub: Likewise.
2380 * depcomp: Likewise.
2381 * install-sh: Likewise.
2382 * ltmain.sh: Likewise.
2383 * missing: Likewise.
2384
93bf5390
RH
23852012-11-13 Richard Henderson <rth@redhat.com>
2386
2387 * configure.tgt: New file.
2388
d2860e72
DM
23892012-11-12 David S. Miller <davem@davemloft.net>
2390
2391 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
2392
f35db108
WM
23932012-10-29 Wei Mi <wmi@google.com>
2394
2395 Initial checkin: migrate asan runtime from llvm.