re PR tree-optimization/46288 (ICE: SIGSEGV in walk_gimple_op (gimple.c:2857) with...
authorRichard Guenther <rguenther@suse.de>
Wed, 3 Nov 2010 16:58:50 +0000 (16:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 Nov 2010 16:58:50 +0000 (16:58 +0000)
commit44cb6d4df48bdc70a4a74befd4b88094b7edb06c
tree756fef625111fa096ec9607e576ddffab7337f47
parentb7fa98e27bb48a44ad2a29e471653a56bdbee831
re PR tree-optimization/46288 (ICE: SIGSEGV in walk_gimple_op (gimple.c:2857) with -O -fno-tree-dce and __builtin_expect())

2010-11-03  Richard Guenther  <rguenther@suse.de>

PR middle-end/46288
* predict.c (strip_predict_hints): Simply DCE builtin expect if
the result is unused.

* gcc.dg/pr46288.c: New testcase.

From-SVN: r166258
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr46288.c [new file with mode: 0644]