From 0e2468e0ca0ad2e7adc0098f6a4061be7475fdc1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 22 Mar 2017 19:35:43 +0100 Subject: [PATCH] =?utf8?q?re=20PR=20sanitizer/80110=20(error:=20statement?= =?utf8?q?=20marked=20for=20throw,=20but=20doesn=E2=80=99t=20w/=20-fsaniti?= =?utf8?q?ze=3Dthread)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PR sanitizer/80110 * doc/invoke.texi (-fsanitize=thread): Document that with -fnon-call-exceptions atomics are not able to throw exceptions. From-SVN: r246400 --- gcc/ChangeLog | 5 +++++ gcc/doc/invoke.texi | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2721da3a36d..a1e007f118d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2017-03-22 Jakub Jelinek + PR sanitizer/80110 + * doc/invoke.texi (-fsanitize=thread): Document that with + -fnon-call-exceptions atomics are not able to throw + exceptions. + PR sanitizer/80110 * tsan.c: Include tree-eh.h. (instrument_builtin_call): Call maybe_clean_eh_stmt or diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 6d053a4af93..3f0eb2f5398 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -10761,6 +10761,10 @@ supported options. The option cannot be combined with @option{-fsanitize=address}, @option{-fsanitize=leak} and/or @option{-fcheck-pointer-bounds}. +Note that sanitized atomic builtins cannot throw exceptions when +operating on invalid memory addresses with non-call exceptions +(@option{-fnon-call-exceptions}). + @item -fsanitize=leak @opindex fsanitize=leak Enable LeakSanitizer, a memory leak detector. -- 2.30.2