From cb6794f6312a07b2d044677e0adb0667e860197d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 20 Jun 2017 09:10:14 +0200 Subject: [PATCH] re PR sanitizer/81125 (-fsanitize=undefined ICE) PR sanitizer/81125 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser by removing enum keyword. (ubsan_type_descriptor): Likewise. Formatting fix. From-SVN: r249397 --- gcc/ChangeLog | 5 +++++ gcc/ubsan.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06e0cec4d14..331e1a49e68 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2017-06-20 Jakub Jelinek + PR sanitizer/81125 + * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser + by removing enum keyword. + (ubsan_type_descriptor): Likewise. Formatting fix. + PR target/81121 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Require TARGET_SSE2 in the condition. diff --git a/gcc/ubsan.h b/gcc/ubsan.h index 6593423e93a..8d990b6a4b3 100644 --- a/gcc/ubsan.h +++ b/gcc/ubsan.h @@ -55,8 +55,9 @@ extern bool ubsan_expand_objsize_ifn (gimple_stmt_iterator *); extern bool ubsan_expand_vptr_ifn (gimple_stmt_iterator *); extern bool ubsan_instrument_unreachable (gimple_stmt_iterator *); extern tree ubsan_create_data (const char *, int, const location_t *, ...); -extern tree ubsan_type_descriptor (tree, enum ubsan_print_style = UBSAN_PRINT_NORMAL); -extern tree ubsan_encode_value (tree, enum ubsan_encode_value_phase +extern tree ubsan_type_descriptor (tree, ubsan_print_style + = UBSAN_PRINT_NORMAL); +extern tree ubsan_encode_value (tree, ubsan_encode_value_phase = UBSAN_ENCODE_VALUE_GENERIC); extern bool is_ubsan_builtin_p (tree); extern tree ubsan_build_overflow_builtin (tree_code, location_t, tree, tree, -- 2.30.2