This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

fix x86 bootstrap


Robert's recent patch forgot to actually initialize the new
field, which resulted in .ctors not being marked "allocate",
which means that the linker didn't load the data from the 
object file.


r~


        * varasm.c (set_named_section_flags): Initialize "declared".

Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.213
diff -u -p -r1.213 varasm.c
--- varasm.c	2001/10/08 22:41:55	1.213
+++ varasm.c	2001/10/09 04:44:15
@@ -387,6 +387,7 @@ set_named_section_flags (section, flags)
       *slot = entry;
       entry->name = ggc_strdup (section);
       entry->flags = flags;
+      entry->declared = false;
     }
   else if (entry->flags != flags)
     return false;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]