PR 35736 -- use void_type_node for PREDICT_EXPR tree
From-SVN: r137425
This commit is contained in:
parent
18970b3dd2
commit
9d7e5c4d3f
4 changed files with 22 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* config/i386/i386.c (contains_aligned_value_p): Return true
|
||||
|
|
|
@ -1944,7 +1944,8 @@ gate_estimate_probability (void)
|
|||
tree
|
||||
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;
|
||||
return t;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* gcc.dg/pr28243.c: Skip on SPU.
|
||||
|
|
9
gcc/testsuite/gcc.dg/pr35736.c
Normal file
9
gcc/testsuite/gcc.dg/pr35736.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O -Wall" } */
|
||||
|
||||
void foo()
|
||||
{
|
||||
while (1)
|
||||
for (;;({ continue; }))
|
||||
;
|
||||
}
|
Loading…
Add table
Reference in a new issue