Commit 9d7e5c4d by Michael Meissner Committed by Michael Meissner

PR 35736 -- use void_type_node for PREDICT_EXPR tree

From-SVN: r137425
parent 18970b3d
2008-07-03 Michael Meissner <gnu@the-meissners.org>
PR middle-end/35736
* predict.c (build_predict_expr): Use void_type_node for the tree
type, instead of NULL_TREE.
2008-07-03 H.J. Lu <hongjiu.lu@intel.com> 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (contains_aligned_value_p): Return true * config/i386/i386.c (contains_aligned_value_p): Return true
......
...@@ -1944,7 +1944,8 @@ gate_estimate_probability (void) ...@@ -1944,7 +1944,8 @@ gate_estimate_probability (void)
tree tree
build_predict_expr (enum br_predictor predictor, enum prediction taken) build_predict_expr (enum br_predictor predictor, enum prediction taken)
{ {
tree t = build1 (PREDICT_EXPR, NULL_TREE, build_int_cst (NULL, predictor)); tree t = build1 (PREDICT_EXPR, void_type_node,
build_int_cst (NULL, predictor));
PREDICT_EXPR_OUTCOME (t) = taken; PREDICT_EXPR_OUTCOME (t) = taken;
return t; return t;
} }
......
2008-07-03 Michael Meissner <gnu@the-meissners.org>
PR middle-end/35736
* gcc.dg/pr35736.c: New file.
2008-07-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 2008-07-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.dg/pr28243.c: Skip on SPU. * gcc.dg/pr28243.c: Skip on SPU.
......
/* { dg-do compile } */
/* { dg-options "-O -Wall" } */
void foo()
{
while (1)
for (;;({ continue; }))
;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment