Pass unpromoted argument to promote_function_mode
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 28 Nov 2014 15:27:55 +0000 (15:27 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 28 Nov 2014 15:27:55 +0000 (07:27 -0800)
commit51e5fd69c64bdd22b0931e8724f18b53bf95c6b7
treeebf1ddbfdab56b68e19c94f17ac00f8333b23d1c
parentf101d09c2a3edf21e053dc7e8c49cedf23a7a2cd
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: r218161
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr64037.C [new file with mode: 0644]