From 175b7dd42a00f57f175e2a0b79c4a10913a98971 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 4 Jul 2018 09:53:05 +0200 Subject: [PATCH] Fix bootstrap on ia64 with old GCC version. 2018-07-04 Martin Liska * tree-switch-conversion.c: Define max_ratio_for_speed and max_ratio_for_size constants. From-SVN: r262376 --- gcc/ChangeLog | 5 +++++ gcc/tree-switch-conversion.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f644bef4e31..4d2dbe47e47 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-07-04 Martin Liska + + * tree-switch-conversion.c: Define + max_ratio_for_speed and max_ratio_for_size constants. + 2018-07-04 Denys Vlasenko Martin Liska diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index 4c9e7b9436b..9a594a01fc4 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -1212,6 +1212,11 @@ jump_table_cluster::is_beneficial (const vec &, return end - start + 1 >= case_values_threshold (); } +/* Definition of jump_table_cluster constants. */ + +const unsigned HOST_WIDE_INT jump_table_cluster::max_ratio_for_size; +const unsigned HOST_WIDE_INT jump_table_cluster::max_ratio_for_speed; + /* Find bit tests of given CLUSTERS, where all members of the vector are of type simple_cluster. New clusters are returned. */ -- 2.30.2