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/asan.c | |
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/asan.c')
-rw-r--r-- | gcc/asan.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2370,6 +2370,8 @@ initialize_sanitizer_builtins (void) /* ECF_COLD missing */ ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST #undef ATTR_PURE_NOTHROW_LEAF_LIST #define ATTR_PURE_NOTHROW_LEAF_LIST ECF_PURE | ATTR_NOTHROW_LEAF_LIST +#undef DEF_BUILTIN_STUB +#define DEF_BUILTIN_STUB(ENUM, NAME) #undef DEF_SANITIZER_BUILTIN #define DEF_SANITIZER_BUILTIN(ENUM, NAME, TYPE, ATTRS) \ decl = add_builtin_function ("__builtin_" NAME, TYPE, ENUM, \ @@ -2389,6 +2391,7 @@ initialize_sanitizer_builtins (void) ATTR_PURE_NOTHROW_LEAF_LIST) #undef DEF_SANITIZER_BUILTIN +#undef DEF_BUILTIN_STUB } /* Called via htab_traverse. Count number of emitted |