re PR rtl-optimization/52629 (out-of-bounds access in reload1.c)
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 26 Mar 2012 08:41:02 +0000 (08:41 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 26 Mar 2012 08:41:02 +0000 (08:41 +0000)
commit2169f14c299675e237f066ee5d679e8ec504026d
tree9348ec306232214e21510616872803e11b9f6a02
parentdd03252e94757eb27d54ce78d32474b142d3692a
re PR rtl-optimization/52629 (out-of-bounds access in reload1.c)

PR rtl-optimization/52629
* reload1.c (count_pseudo): Short-circuit common case.
(count_spilled_pseudo): Return early for pseudos without hard regs.
Assert that the pseudo has got a hard reg before manipulating it.

From-SVN: r185787
gcc/ChangeLog
gcc/reload1.c