aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2015-02-13 15:42:30 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2015-02-13 15:42:30 +0100
commit730f474bf90d59582144b23c9176276ab680ef56 (patch)
tree057890be2e241d8ec94af725a0ddbbe26fa20fb6 /gcc/stmt.c
parent1e0c223f94b886b4d4e54582a1fb4ea9b5feb722 (diff)
downloadgcc-730f474bf90d59582144b23c9176276ab680ef56.zip
gcc-730f474bf90d59582144b23c9176276ab680ef56.tar.gz
gcc-730f474bf90d59582144b23c9176276ab680ef56.tar.bz2
re PR ipa/65034 (ICE (segfault) on arm-linux-gnueabihf)
PR ipa/65034 * stmt.c (emit_case_nodes): Use void_type_node instead of NULL_TREE as LABEL_DECL type. * decl.c (start_preparsed_function): Use void_type_node instead of NULL_TREE as LABEL_DECL type. * g++.dg/ipa/pr65034.C: New test. From-SVN: r220683
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index b85e3e6..45dc45f 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -1722,7 +1722,7 @@ emit_case_nodes (rtx index, case_node_ptr node, rtx default_label,
tree test_label
= build_decl (curr_insn_location (),
- LABEL_DECL, NULL_TREE, NULL_TREE);
+ LABEL_DECL, NULL_TREE, void_type_node);
/* The default label could be reached either through the right
subtree or the left subtree. Divide the probability
@@ -1881,7 +1881,7 @@ emit_case_nodes (rtx index, case_node_ptr node, rtx default_label,
Branch to a label where we will handle it later. */
test_label = build_decl (curr_insn_location (),
- LABEL_DECL, NULL_TREE, NULL_TREE);
+ LABEL_DECL, NULL_TREE, void_type_node);
probability = conditional_probability (
node->right->subtree_prob + default_prob/2,
subtree_prob + default_prob);