aboutsummaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-04-18 18:27:51 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-04-18 18:27:51 +0000
commitd3506b30cc1e17e9d14184f8c9a88c16d3dff5d9 (patch)
tree4f4b399e94dc6b7d86f56ab58f0145e056fbe1dd /gcc/targhooks.c
parent411b3a9c868ad26a3b41ac40b41cd608900e9d8c (diff)
gcc/
* targhooks.c (default_case_values_threshold): Fix code style nit. * stmt.c (add_case_node, expand_case): Move logic to remove/reduce case range and type folding from here... * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE type, as documented in tree.def fortran/ * trans-decl.c (gfc_trans_entry_master_switch): Build SWITCH_EXPR with NULL_TREE type instead of void_type_node. * trans-io.c (io_result): Likewise. * trans-stmt.c (gfc_trans_integer_select, gfc_trans_character_select): Likewise. go/ * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR with NULL_TREE type instead of void_type_node. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@186579 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r--gcc/targhooks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index 8e3d74ea356..da0b029cdbe 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -1200,7 +1200,8 @@ default_target_can_inline_p (tree caller, tree callee)
this means extra overhead for dispatch tables, which raises the
threshold for using them. */
-unsigned int default_case_values_threshold (void)
+unsigned int
+default_case_values_threshold (void)
{
return (HAVE_casesi ? 4 : 5);
}