From 66846c079410498d0d836ebb112dad60f75c8edd Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 16 Jun 2017 11:47:00 +0000 Subject: [PATCH] tree-switch-conversion.c (emit_case_bit_tests): Adjust initializer to workaround ICE in host GCC 4.8. 2017-06-16 Richard Biener * tree-switch-conversion.c (emit_case_bit_tests): Adjust initializer to workaround ICE in host GCC 4.8. From-SVN: r249245 --- gcc/ChangeLog | 5 +++++ gcc/tree-switch-conversion.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0fed0dce4cc..258f6cb9869 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-16 Richard Biener + + * tree-switch-conversion.c (emit_case_bit_tests): Adjust + initializer to workaround ICE in host GCC 4.8. + 2017-06-16 Jan Hubicka * ipa-inline-transform.c (update_noncloned_frequencies): Update also diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index 72927bf0c34..72e53af773f 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -268,7 +268,7 @@ static void emit_case_bit_tests (gswitch *swtch, tree index_expr, tree minval, tree range, tree maxval) { - struct case_bit_test test[MAX_CASE_BIT_TESTS] = { }; + struct case_bit_test test[MAX_CASE_BIT_TESTS] = { {} }; unsigned int i, j, k; unsigned int count; -- 2.30.2