diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-01-27 19:48:30 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-01-27 19:48:30 +0100 |
commit | 8f91e6e0eff1494cfefb2129876847aab5748538 (patch) | |
tree | 368b5c8a00ed9b3e4a5b5d67306390a2880e97da /gcc/sanitizer.def | |
parent | ede673766742e2e48e43e3fa1c08c86d2ca8c893 (diff) | |
download | gcc-8f91e6e0eff1494cfefb2129876847aab5748538.zip gcc-8f91e6e0eff1494cfefb2129876847aab5748538.tar.gz gcc-8f91e6e0eff1494cfefb2129876847aab5748538.tar.bz2 |
re PR lto/69254 (ICE in streamer_get_builtin_tree when using -fsanitize=shift on the compile side only)
PR lto/69254
* sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
* asan.c (DEF_BUILTIN_STUB): Temporarily define.
* tree-streamer-in.c: Include asan.h.
(streamer_get_builtin_tree): For builtins in sanitizer
range call initialize_sanitizer_builtins and retry.
From-SVN: r232891
Diffstat (limited to 'gcc/sanitizer.def')
-rw-r--r-- | gcc/sanitizer.def | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/sanitizer.def b/gcc/sanitizer.def index 3a71801..303c1e4 100644 --- a/gcc/sanitizer.def +++ b/gcc/sanitizer.def @@ -20,12 +20,16 @@ along with GCC; see the file COPYING3. If not see /* Before including this file, you should define a macro: + DEF_BUILTIN_STUB(ENUM, NAME) DEF_SANITIZER_BUILTIN (ENUM, NAME, TYPE, ATTRS) See builtins.def for details. The builtins are created by the C-family of FEs in c-family/c-common.c, for other FEs by asan.c. */ +/* This has to come before all the sanitizer builtins. */ +DEF_BUILTIN_STUB(BEGIN_SANITIZER_BUILTINS, (const char *)0) + /* Address Sanitizer */ DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_INIT, "__asan_init", BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST) @@ -515,3 +519,6 @@ DEF_SANITIZER_BUILTIN(BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT, DEF_SANITIZER_BUILTIN(BUILT_IN_SANITIZER_COV_TRACE_PC, "__sanitizer_cov_trace_pc", BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST) + +/* This has to come after all the sanitizer builtins. */ +DEF_BUILTIN_STUB(END_SANITIZER_BUILTINS, (const char *)0) |