aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-switch-conversion.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-07-04 09:53:05 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-07-04 07:53:05 +0000
commit175b7dd42a00f57f175e2a0b79c4a10913a98971 (patch)
tree3d85eaccc3dcbeef30433564cf28180385071283 /gcc/tree-switch-conversion.c
parentc518c1025b435e1c593a745036fc9b8ed04c5819 (diff)
downloadgcc-175b7dd42a00f57f175e2a0b79c4a10913a98971.zip
gcc-175b7dd42a00f57f175e2a0b79c4a10913a98971.tar.gz
gcc-175b7dd42a00f57f175e2a0b79c4a10913a98971.tar.bz2
Fix bootstrap on ia64 with old GCC version.
2018-07-04 Martin Liska <mliska@suse.cz> * tree-switch-conversion.c: Define max_ratio_for_speed and max_ratio_for_size constants. From-SVN: r262376
Diffstat (limited to 'gcc/tree-switch-conversion.c')
-rw-r--r--gcc/tree-switch-conversion.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c
index 4c9e7b9..9a594a0 100644
--- a/gcc/tree-switch-conversion.c
+++ b/gcc/tree-switch-conversion.c
@@ -1212,6 +1212,11 @@ jump_table_cluster::is_beneficial (const vec<cluster *> &,
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. */