Pass unpromoted argument to promote_function_mode
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Nov 2014 15:27:55 +0000 (15:27 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Nov 2014 15:27:55 +0000 (15:27 +0000)
commit7ca7358e3f9042a9eb7be14bafa2e6ae3eb44f3f
treeebf1ddbfdab56b68e19c94f17ac00f8333b23d1c
parent6da5aa289dbdeb0afa9967a248e413d5d2e76a43
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218161 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr64037.C [new file with mode: 0644]