Message ID | 2088304.ITDu5v2iMG@polaris |
---|---|
State | New |
Headers | show |
Series | Fix PR middle-end/87574 | expand |
Index: cgraphunit.c =================================================================== --- cgraphunit.c (revision 264986) +++ cgraphunit.c (working copy) @@ -1862,6 +1862,12 @@ cgraph_node::expand_thunk (bool output_a DECL_ARGUMENTS. In this case force_gimple_thunk is true. */ if (in_lto_p && !force_gimple_thunk) get_untransformed_body (); + + /* We need to force DECL_IGNORED_P when the thunk is created + after early debug was run. */ + if (force_gimple_thunk) + DECL_IGNORED_P (thunk_fndecl) = 1; + a = DECL_ARGUMENTS (thunk_fndecl); current_function_decl = thunk_fndecl;