[Bug target/61300] powerpc64le miscompile with K&R-style function definition at -O0
amodra at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 11 23:50:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61300
--- Comment #9 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Wed Jun 11 23:49:49 2014
New Revision: 211482
URL: http://gcc.gnu.org/viewcvs?rev=211482&root=gcc&view=rev
Log:
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.
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/rs6000/rs6000-protos.h
branches/gcc-4_9-branch/gcc/config/rs6000/rs6000.c
branches/gcc-4_9-branch/gcc/config/rs6000/rs6000.h
branches/gcc-4_9-branch/gcc/doc/tm.texi
branches/gcc-4_9-branch/gcc/doc/tm.texi.in
branches/gcc-4_9-branch/gcc/function.c
More information about the Gcc-bugs
mailing list