summaryrefslogtreecommitdiffstats
path: root/gcc/cp
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-22 21:32:33 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-22 21:32:33 +0000
commitf1b3743807809f1824e24d455049f329ebf5fe24 (patch)
tree9ba203e8e167b1f9330495b5c467d6b3918a4240 /gcc/cp
parentd895350e4e8a4215ccbf3095a7c35f4b2daa8901 (diff)
downloadppe42-gcc-f1b3743807809f1824e24d455049f329ebf5fe24.tar.gz
ppe42-gcc-f1b3743807809f1824e24d455049f329ebf5fe24.zip
* rtti.c (emit_support_tinfos): Avoid using C99 semantics.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92504 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/rtti.c12
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index accc1e30296..ee0f56e3a36 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
2004-12-22 Mark Mitchell <mark@codesourcery.com>
+ * rtti.c (emit_support_tinfos): Avoid using C99 semantics.
+
PR c++/18464
* call.c (build_this): In templates, do not bother with
build_unary_op.
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index 6c92d19c528..4740533a7b3 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);
OpenPOWER on IntegriCloud