tree-switch-conversion.c (emit_case_bit_tests): Adjust initializer to workaround...
authorRichard Biener <rguenther@suse.de>
Fri, 16 Jun 2017 11:47:00 +0000 (11:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 16 Jun 2017 11:47:00 +0000 (11:47 +0000)
2017-06-16  Richard Biener  <rguenther@suse.de>

* tree-switch-conversion.c (emit_case_bit_tests): Adjust
initializer to workaround ICE in host GCC 4.8.

From-SVN: r249245

gcc/ChangeLog
gcc/tree-switch-conversion.c

index 0fed0dce4cc65c8cc34cabaa4f8ba102bbb87f9e..258f6cb98692d025fe4fc434416aaaa58b2a8a0b 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-16  Richard Biener  <rguenther@suse.de>
+
+       * tree-switch-conversion.c (emit_case_bit_tests): Adjust
+       initializer to workaround ICE in host GCC 4.8.
+
 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-inline-transform.c (update_noncloned_frequencies): Update also
index 72927bf0c340b691bd126c7fddfb3cc1c10e30ac..72e53af773f5ba53bd78d00957634fa5cc021e9d 100644 (file)
@@ -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;