This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/12161] ICE during bootstrap, locale-inst.c, cp/call.c: 4571


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12161



------- Additional Comments From mec at shout dot net  2003-09-04 19:45 -------
This patch makes pr gcc/12161 stop happening.  This may not be
the right fix.  It's just there to point people in the right
direction, and I use it so I can build my gcc.

Michael C

2003-09-04  Michael Chastain  <mec@shout.net>

        * cp/semantics.c (expand_body): Push/pop ggc context around
        the call to tree_rest_of_compilation.

Index: cp/semantics.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/cp/semantics.c,v
retrieving revision 1.354
diff -u -r1.354 semantics.c
--- cp/semantics.c      2 Sep 2003 17:32:28 -0000       1.354
+++ cp/semantics.c      4 Sep 2003 19:29:39 -0000
@@ -2889,7 +2889,9 @@
   optimize_function (fn);
   timevar_pop (TV_INTEGRATION);

+  ggc_push_context ();
   tree_rest_of_compilation (fn);
+  ggc_pop_context ();

   current_function_decl = saved_function;
   input_location = saved_loc;


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