From: Richard Biener Date: Fri, 16 Jun 2017 11:47:00 +0000 (+0000) Subject: tree-switch-conversion.c (emit_case_bit_tests): Adjust initializer to workaround... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66846c079410498d0d836ebb112dad60f75c8edd;p=gcc.git 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 --- 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;