* Properly set target/optimization options for thunks in free_lang_data
@ 2016-05-15 22:18 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2016-05-15 22:18 UTC (permalink / raw)
To: gcc-patches
Hi,
this patch updates free lang data to also set target/optimization flags for
thunks. This is because we eventually may produce a body for the thunk and it needs
to be compiled with correct settings.
Bootstrapped/regtested x86_64-linux, will commit it tomorrow.
Honza
* tree.c (free_lang_data_in_decl): Also set target/optimization flags
for thunks.
Index: tree.c
===================================================================
--- tree.c (revision 236211)
+++ tree.c (working copy)
@@ -5418,7 +5418,7 @@ free_lang_data_in_decl (tree decl)
DECL_INITIAL (decl) = error_mark_node;
}
}
- if (gimple_has_body_p (decl))
+ if (gimple_has_body_p (decl) || (node && node->thunk.thunk_p))
{
tree t;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-15 22:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-15 22:18 Properly set target/optimization options for thunks in free_lang_data 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).