* rtti.c (emit_support_tinfos): Avoid using C99 semantics.
authorMark Mitchell <mark@codesourcery.com>
Wed, 22 Dec 2004 21:32:33 +0000 (21:32 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 22 Dec 2004 21:32:33 +0000 (21:32 +0000)
From-SVN: r92504

gcc/cp/ChangeLog
gcc/cp/rtti.c

index accc1e30296f59f5512a3bb8a32c70597e1837ef..ee0f56e3a3649197630944a59ab24ad8456fee0f 100644 (file)
@@ -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.
index 6c92d19c52880ae85c3d739cbaa8b8b82f7cce78..4740533a7b3295f0af651cb75cba196a780dfc07 100644 (file)
@@ -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);