aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-11-22 09:54:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-11-22 09:54:14 +0000
commit7f29dafe76b6530ec8c742487f7061492d7aaaf8 (patch)
tree11e2bf2f66bf672dc32d6aa0ada91ad0306fd52c /gcc/tree.c
parentd42ef0f85fa3ceacfa64fdded5c08f5bfb669185 (diff)
downloadgcc-7f29dafe76b6530ec8c742487f7061492d7aaaf8.zip
gcc-7f29dafe76b6530ec8c742487f7061492d7aaaf8.tar.gz
gcc-7f29dafe76b6530ec8c742487f7061492d7aaaf8.tar.bz2
re PR c++/87229 (ICE: tree code 'call_expr' is not supported in LTO streams)
2018-11-22 Richard Biener <rguenther@suse.de> PR lto/87229 PR lto/88112 * lto-streamer-out.c (lto_is_streamable): Allow CALL_EXPRs which can appear in size expressions. * tree-streamer-in.c (unpack_ts_base_value_fields): Stream CALL_EXPR_BY_DESCRIPTOR. (streamer_read_tree_bitfields): Stream CALL_EXPR_IFN. * tree-streamer-out.c (pack_ts_base_value_fields): Stream CALL_EXPR_BY_DESCRIPTOR. (streamer_write_tree_bitfields): Stream CALL_EXPR_IFN. Revert PR lto/87229 * tree.c (free_lang_data_in_one_sizepos): Free non-gimple-val sizepos values. From-SVN: r266372
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 8264e9c..39a9246 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5347,13 +5347,6 @@ free_lang_data_in_one_sizepos (tree *expr_p)
tree expr = *expr_p;
if (CONTAINS_PLACEHOLDER_P (expr))
*expr_p = build0 (PLACEHOLDER_EXPR, TREE_TYPE (expr));
- /* ??? We have to reset all non-GIMPLE sizepos because those eventually
- refer to trees we cannot stream. See for example PR87229 which
- shows an example with non-gimplified abstract origins in C++.
- Note this should only happen for abstract copies so setting sizes
- to NULL is OK (but we cannot easily assert this). */
- else if (expr && !is_gimple_val (expr))
- *expr_p = NULL_TREE;
}