Re: [PATCH] PR middle-end/67850: Wrong call_used_regs used in aggregate_value_p

2015-10-06 Thread Richard Biener
On Tue, Oct 6, 2015 at 1:43 PM, H.J. Lu wrote: > Since targetm.expand_to_rtl_hook may be called to switch ABI, it should > be called for each function before expanding to RTL. Otherwise, we may > use the stale information from compilation of the previous function. > aggregate_value_p uses call_us

[PATCH] PR middle-end/67850: Wrong call_used_regs used in aggregate_value_p

2015-10-06 Thread H.J. Lu
Since targetm.expand_to_rtl_hook may be called to switch ABI, it should be called for each function before expanding to RTL. Otherwise, we may use the stale information from compilation of the previous function. aggregate_value_p uses call_used_regs. aggregate_value_p is used by IPA and return va