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;