re PR target/61300 (powerpc64le miscompile with K&R-style function definition at...
commitddbb449ffe5236c4968a73b2440a4aef0350564e
authorAlan Modra <amodra@gmail.com>
Fri, 6 Jun 2014 01:04:22 +0000 (6 10:34 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 6 Jun 2014 01:04:22 +0000 (6 10:34 +0930)
tree23c342a3de8e01fa8b6546969fa6002664b39812
parent424ce7d729c3bdb240615b36052f75c6ac852943
re PR target/61300 (powerpc64le miscompile with K&R-style function definition at -O0)

PR target/61300
* doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
* doc/tm.texi: Regenerate.
* function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
Use throughout in place of REG_PARM_STACK_SPACE.
* config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
"incoming" param.  Pass to rs6000_function_parms_need_stack.
(rs6000_function_parms_need_stack): Add "incoming" param, ignore
prototype_p when incoming.  Use function decl when incoming
to handle K&R style functions.
* config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
(INCOMING_REG_PARM_STACK_SPACE): Define.

From-SVN: r211296
gcc/ChangeLog
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.h
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/function.c