re PR lto/55736 (lto ICE: tree code ''junl is not supported in LTO streams)
authorRichard Biener <rguenther@suse.de>
Wed, 19 Dec 2012 13:53:18 +0000 (13:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 19 Dec 2012 13:53:18 +0000 (13:53 +0000)
commitd1f985421fff69c6956206f9606c4a9e35b32a70
tree16f545224cd8116189b4ccd1992329c439c78de9
parentc354951b7ef67f8bbbca3db79734db73880d17a2
re PR lto/55736 (lto ICE: tree code ''junl is not supported in LTO streams)

2012-12-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/55736
PR tree-optimization/55703
* gimplify.c (prune_expr_location): New function.
(unshare_expr_without_location): Likewise.
* tree.h (unshare_expr_without_location): Declare.
* ipa-prop.c (prune_expression_for_jf): Remove.
(prune_expression_for_jf_1): Likewise.
(ipa_set_jf_constant): Use unshare_expr_without_location.
(ipa_set_jf_arith_pass_through): Likewise.
(determine_known_aggregate_parts): Likewise.
* tree-switch-conversion.c (build_constructors): Use
unshare_expr_without_location on all constructor elements.

* gcc.dg/lto/pr55703_0.c: New testcase.

From-SVN: r194609
gcc/ChangeLog
gcc/gimplify.c
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr55703_0.c [new file with mode: 0644]
gcc/tree-switch-conversion.c
gcc/tree.h