aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/rtti.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r--gcc/cp/rtti.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index 6c92d19..4740533 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -1345,16 +1345,18 @@ emit_support_tinfos (void)
for (ix = 0; fundamentals[ix]; ix++)
{
tree bltn = *fundamentals[ix];
- tree types[3] = {
- bltn,
- build_pointer_type (bltn),
- build_pointer_type (build_qualified_type (bltn, TYPE_QUAL_CONST))
- };
+ tree types[3];
int i;
+ types[0] = bltn;
+ types[1] = build_pointer_type (bltn);
+ types[2] = build_pointer_type (build_qualified_type (bltn,
+ TYPE_QUAL_CONST));
+
for (i = 0; i < 3; ++i)
{
tree tinfo;
+
tinfo = get_tinfo_decl (types[i]);
TREE_USED (tinfo) = 1;
mark_needed (tinfo);