Re: [PATCH] Fix ICE with -flto -fno-use-linker-plugin (PR lto/60567)

2014-04-10 Thread Jason Merrill
On 04/10/2014 09:27 AM, Jakub Jelinek wrote: The following patch copies that flag in the C++ FE, another alternative is to do that in cgraph_add_thunk function (apparently only called by use_thunk, thus practically the same spot, or it can be done in function_and_variable_visibility. I think Ho

[PATCH] Fix ICE with -flto -fno-use-linker-plugin (PR lto/60567)

2014-04-10 Thread Jakub Jelinek
Hi! As Honza has determined, the problem on this testcase is that forced_by_abi flag wasn't propagated from thunk's target to the thunk (in this case the thunk's target was forced_by_abi = true, while the thunk mistakenly didn't have that flag set). The following patch copies that flag in the C++