Re: Fix caller-save.c:add_used_regs_1 handling of pseudos

2014-02-24 Thread Richard Sandiford
Steven Bosscher writes: > On Sun, Feb 23, 2014 at 10:14 PM, Richard Sandiford wrote: >> I noticed in passing that this 4.7 cleanup: >> >> http://article.gmane.org/gmane.comp.gcc.patches/224853 > ... >> so that nothing happens for pseudos. I've no idea whether this makes >> a difference in pract

Re: Fix caller-save.c:add_used_regs_1 handling of pseudos

2014-02-23 Thread Steven Bosscher
On Sun, Feb 23, 2014 at 10:14 PM, Richard Sandiford wrote: > I noticed in passing that this 4.7 cleanup: > > http://article.gmane.org/gmane.comp.gcc.patches/224853 ... > so that nothing happens for pseudos. I've no idea whether this makes > a difference in practice or not but it seems safer to r

Fix caller-save.c:add_used_regs_1 handling of pseudos

2014-02-23 Thread Richard Sandiford
I noticed in passing that this 4.7 cleanup: http://article.gmane.org/gmane.comp.gcc.patches/224853 changed caller-save.c:add_used_regs_1 from: if (REG_P (x)) { regno = REGNO (x); if (!HARD_REGISTER_NUM_P (regno)) regno = reg_renumber[regno]; if (regno >= 0)