Re: [RFC PATCH 1/9] LRA: Take account implicit usage of pseudo reg in mem arg

2014-12-19 Thread Kaz Kojima
>> It would be nice to have a small test case for this problem with >> compiler options to reproduce it. > > Thanks for the detailed explanation. The original issue has found > with the older sh-lra branch which was based on trunk at this September. > Now I've found that the original test case in

Re: [RFC PATCH 1/9] LRA: Take account implicit usage of pseudo reg in mem arg

2014-12-18 Thread Kaz Kojima
Vladimir Makarov wrote: >> * lra.c (lra_update_insn_regno_info): Take account of arguments >> via memory which could be implicit usage of pseudo regs. >> > > It could be a solution but I believe the problem should be solved in > some other way. The patch will generate a correct code bu

Re: [RFC PATCH 1/9] LRA: Take account implicit usage of pseudo reg in mem arg

2014-12-18 Thread Vladimir Makarov
On 2014-12-17 7:57 PM, Kaz Kojima wrote: This patch is discussed in PR55212 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212#c47 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212#c48 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212#c49 and is to avoid segfault in remove_pseudos. In the pro

[RFC PATCH 1/9] LRA: Take account implicit usage of pseudo reg in mem arg

2014-12-17 Thread Kaz Kojima
This patch is discussed in PR55212 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212#c47 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212#c48 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212#c49 and is to avoid segfault in remove_pseudos. In the problematic case in #c47, a call_insn has a no