This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/61300] powerpc64le miscompile with K&R-style function definition at -O0


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61300

--- Comment #10 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Wed Jun 11 23:50:16 2014
New Revision: 211483

URL: http://gcc.gnu.org/viewcvs?rev=211483&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_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/rs6000/rs6000-protos.h
    branches/gcc-4_8-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-4_8-branch/gcc/config/rs6000/rs6000.h
    branches/gcc-4_8-branch/gcc/doc/tm.texi
    branches/gcc-4_8-branch/gcc/doc/tm.texi.in
    branches/gcc-4_8-branch/gcc/function.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]