Pass unpromoted argument to promote_function_mode
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 14 Dec 2014 16:04:11 +0000 (16:04 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 14 Dec 2014 16:04:11 +0000 (08:04 -0800)
commit4cbdb69905032e1f33461af5260beae7bdae3f3b
tree7bd3c4e826594bf7918ca1a814fbf96f9818e0b8
parent5930876d68cf7480566c7c96ecc28069d20acd98
Pass unpromoted argument to promote_function_mode

This patch updates setup_incoming_promotions in combine.c to match what
is actually passed in assign_parm_setup_reg in function.c.

gcc/

PR rtl-optimization/64037
* combine.c (setup_incoming_promotions): Pass the argument
before any promotions happen to promote_function_mode.

gcc/testsuite/

PR rtl-optimization/64037
* g++.dg/pr64037.C: New test.

From-SVN: r218720
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr64037.C [new file with mode: 0644]