PATCH: Fix bootstrap problem
Mark Mitchell
mark@codesourcery.com
Wed Dec 22 21:33:00 GMT 2004
It looks like Nathan didn't have time to fix my bootstrap breakage
(he's actually on vacation!) so I checked this in, after confirming
that it did not cause any warnings.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
2004-12-22 Mark Mitchell <mark@codesourcery.com>
* rtti.c (emit_support_tinfos): Avoid using C99 semantics.
Index: rtti.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/rtti.c,v
retrieving revision 1.206
diff -c -5 -p -r1.206 rtti.c
*** rtti.c 22 Dec 2004 18:00:39 -0000 1.206
--- rtti.c 22 Dec 2004 21:28:19 -0000
*************** emit_support_tinfos (void)
*** 1343,1362 ****
return;
doing_runtime = 1;
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))
! };
int i;
for (i = 0; i < 3; ++i)
{
tree tinfo;
tinfo = get_tinfo_decl (types[i]);
TREE_USED (tinfo) = 1;
mark_needed (tinfo);
/* The C++ ABI requires that these objects be COMDAT. But,
On systems without weak symbols, initialized COMDAT
--- 1343,1364 ----
return;
doing_runtime = 1;
for (ix = 0; fundamentals[ix]; ix++)
{
tree bltn = *fundamentals[ix];
! 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);
/* The C++ ABI requires that these objects be COMDAT. But,
On systems without weak symbols, initialized COMDAT
More information about the Gcc-patches
mailing list