* Cgraph alias reorg 1/14
@ 2011-06-09 23:45 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2011-06-09 23:45 UTC (permalink / raw)
To: gcc-patches
Hi,
there is bug in record_eh_tables that fires in one of C++ testcases where
personality function is present in the same unit and GCC happily optimizes it
out because it fails to set address_taken flag.
Bootstrapped/regtested x86_64-linux, will commit it shortly.
* cgraphbuild.c (record_eh_tables): Mark personality function as having
address taken.
Index: cgraphbuild.c
===================================================================
--- cgraphbuild.c (revision 174804)
+++ cgraphbuild.c (working copy)
@@ -149,9 +149,13 @@ record_eh_tables (struct cgraph_node *no
eh_region i;
if (DECL_FUNCTION_PERSONALITY (node->decl))
- ipa_record_reference (node, NULL,
- cgraph_get_create_node (DECL_FUNCTION_PERSONALITY (node->decl)),
- NULL, IPA_REF_ADDR, NULL);
+ {
+ struct cgraph_node *per_node;
+
+ per_node = cgraph_get_create_node (DECL_FUNCTION_PERSONALITY (node->decl));
+ ipa_record_reference (node, NULL, per_node, NULL, IPA_REF_ADDR, NULL);
+ cgraph_mark_address_taken_node (per_node);
+ }
i = fun->eh->region_tree;
if (!i)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-09 23:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-09 23:45 Cgraph alias reorg 1/14 Jan Hubicka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).