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]
Other format: [Raw text]

[C++ patch] one more missed mark_used


Hi,
typeinfo is not produced in unit-at-a-time when it is referenced via EH
tables only.

Honza

Wed Jul 30 19:29:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
			       Michael Matz  <matz@suse.de>
	* semantics.c (finish_handler_params): Mark type infos as used.
Index: semantics.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/semantics.c,v
retrieving revision 1.339
diff -c -3 -p -r1.339 semantics.c
*** semantics.c	29 Jul 2003 11:16:49 -0000	1.339
--- semantics.c	30 Jul 2003 17:29:23 -0000
*************** finish_handler_parms (tree decl, tree ha
*** 971,976 ****
--- 971,981 ----
      type = expand_start_catch_block (decl);
  
    HANDLER_TYPE (handler) = type;
+   if (type)
+     {
+       tree tinfo = get_tinfo_decl (type);
+       mark_used (tinfo);
+     }
  }
  
  /* Finish a handler, which may be given by HANDLER.  The BLOCKs are


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