re PR sanitizer/81125 (-fsanitize=undefined ICE)
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Jun 2017 07:10:14 +0000 (09:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Jun 2017 07:10:14 +0000 (09:10 +0200)
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
gcc/ubsan.h

index 06e0cec4d144a56a7d212ff077f2b43589948ac5..331e1a49e680c20e946eedf2c9c35bc17a95c423 100644 (file)
@@ -1,5 +1,10 @@
 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
 
+       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.
index 6593423e93a08a02b55550ff97de625c4f541db2..8d990b6a4b38122314f26608d294d7c827b1c815 100644 (file)
@@ -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,