This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++ patch] one more missed mark_used
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Wed, 30 Jul 2003 19:31:56 +0200
- Subject: [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