re PR rtl-optimization/53942 (unable to find a register to spill in class 'CREG')
commitf9fef34989a9d1974943ec3e835a547b56150c6a
authorJakub Jelinek <jakub@redhat.com>
Thu, 19 Jul 2012 20:48:25 +0000 (19 22:48 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 19 Jul 2012 20:48:25 +0000 (19 22:48 +0200)
tree0b64e6d9e88dfbc57439877cbb5bccdfdbdd43ed
parentfdb45c0cc3c8be240927799dfca7b297b177cc7d
re PR rtl-optimization/53942 (unable to find a register to spill in class 'CREG')

PR rtl-optimization/53942
* function.c (assign_parm_setup_reg): Avoid zero/sign extension
directly from likely spilled non-fixed hard registers, move them
to pseudo first.

* gcc.dg/pr53942.c: New test.

From-SVN: r189681
gcc/ChangeLog
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr53942.c [new file with mode: 0644]