summaryrefslogtreecommitdiff
path: root/gcc/tree-streamer-in.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-27 12:04:21 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-27 12:04:21 +0000
commit58287c3f4b74a0bb479c7036117d5804eb6765c4 (patch)
treec299b554740820453d3def4a8e59007a86edd7c7 /gcc/tree-streamer-in.c
parentdb827453ce1b7f76552f8ba9a8d18e65d7bf8de8 (diff)
downloadgcc-58287c3f4b74a0bb479c7036117d5804eb6765c4.tar.gz
2012-11-26 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 193836 using svnmerge.py **broken, gcc/melt/xtramelt-ana-base.melt dont compile** git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@193843 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-streamer-in.c')
-rw-r--r--gcc/tree-streamer-in.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c
index 57c86265767..73dc73cf383 100644
--- a/gcc/tree-streamer-in.c
+++ b/gcc/tree-streamer-in.c
@@ -236,7 +236,6 @@ unpack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr)
if (TREE_CODE (expr) == VAR_DECL
|| TREE_CODE (expr) == PARM_DECL)
DECL_HAS_VALUE_EXPR_P (expr) = (unsigned) bp_unpack_value (bp, 1);
- DECL_RESTRICTED_P (expr) = (unsigned) bp_unpack_value (bp, 1);
}
}
@@ -380,7 +379,7 @@ unpack_ts_translation_unit_decl_value_fields (struct data_in *data_in,
struct bitpack_d *bp, tree expr)
{
TRANSLATION_UNIT_LANGUAGE (expr) = xstrdup (bp_unpack_string (data_in, bp));
- VEC_safe_push (tree, gc, all_translation_units, expr);
+ vec_safe_push (all_translation_units, expr);
}
/* Unpack a TS_TARGET_OPTION tree from BP into EXPR. */
@@ -473,14 +472,14 @@ unpack_value_fields (struct data_in *data_in, struct bitpack_d *bp, tree expr)
{
unsigned HOST_WIDE_INT length = bp_unpack_var_len_unsigned (bp);
if (length > 0)
- VEC_safe_grow (tree, gc, BINFO_BASE_ACCESSES (expr), length);
+ vec_safe_grow (BINFO_BASE_ACCESSES (expr), length);
}
if (CODE_CONTAINS_STRUCT (code, TS_CONSTRUCTOR))
{
unsigned HOST_WIDE_INT length = bp_unpack_var_len_unsigned (bp);
if (length > 0)
- VEC_safe_grow (constructor_elt, gc, CONSTRUCTOR_ELTS (expr), length);
+ vec_safe_grow (CONSTRUCTOR_ELTS (expr), length);
}
}
@@ -907,14 +906,14 @@ lto_input_ts_binfo_tree_pointers (struct lto_input_block *ib,
/* Note that the number of slots in EXPR was read in
streamer_alloc_tree when instantiating EXPR. However, the
- vector is empty so we cannot rely on VEC_length to know how many
+ vector is empty so we cannot rely on vec::length to know how many
elements to read. So, this list is emitted as a 0-terminated
list on the writer side. */
do
{
t = stream_read_tree (ib, data_in);
if (t)
- VEC_quick_push (tree, BINFO_BASE_BINFOS (expr), t);
+ BINFO_BASE_BINFOS (expr)->quick_push (t);
}
while (t);
@@ -924,10 +923,10 @@ lto_input_ts_binfo_tree_pointers (struct lto_input_block *ib,
/* The vector of BINFO_BASE_ACCESSES is pre-allocated during
unpacking the bitfield section. */
- for (i = 0; i < VEC_length (tree, BINFO_BASE_ACCESSES (expr)); i++)
+ for (i = 0; i < vec_safe_length (BINFO_BASE_ACCESSES (expr)); i++)
{
tree a = stream_read_tree (ib, data_in);
- VEC_replace (tree, BINFO_BASE_ACCESSES (expr), i, a);
+ (*BINFO_BASE_ACCESSES (expr))[i] = a;
}
BINFO_INHERITANCE_CHAIN (expr) = stream_read_tree (ib, data_in);
@@ -951,7 +950,7 @@ lto_input_ts_constructor_tree_pointers (struct lto_input_block *ib,
constructor_elt e;
e.index = stream_read_tree (ib, data_in);
e.value = stream_read_tree (ib, data_in);
- VEC_replace (constructor_elt, CONSTRUCTOR_ELTS (expr), i, e);
+ (*CONSTRUCTOR_ELTS (expr))[i] = e;
}
}