r217769 - in /trunk/gcc: ChangeLog config/i386/...
rth@gcc.gnu.org
rth@gcc.gnu.org
Wed Nov 19 13:30:00 GMT 2014
Author: rth
Date: Wed Nov 19 13:30:34 2014
New Revision: 217769
URL: https://gcc.gnu.org/viewcvs?rev=217769&root=gcc&view=rev
Log:
Make TARGET_STATIC_CHAIN allow a function type
As opposed to always being a decl. This is a prerequisite
to allowing the static chain to be loaded for indirect calls.
* targhooks.c (default_static_chain): Remove check for
DECL_STATIC_CHAIN.
* config/moxie/moxie.c (moxie_static_chain): Likewise.
* config/i386/i386.c (ix86_static_chain): Allow decl or type
as the first argument.
* config/xtensa/xtensa.c (xtensa_static_chain): Change the name
of the unused first parameter.
* doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
may be a type.
* target.def (static_chain): Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/config/moxie/moxie.c
trunk/gcc/config/xtensa/xtensa.c
trunk/gcc/doc/tm.texi
trunk/gcc/target.def
trunk/gcc/targhooks.c
More information about the Gcc-cvs
mailing list