Make TARGET_STATIC_CHAIN allow a function type
authorRichard Henderson <rth@redhat.com>
Wed, 19 Nov 2014 13:30:34 +0000 (05:30 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 19 Nov 2014 13:30:34 +0000 (05:30 -0800)
commitc21df29bcfc04945d3a7be6a0c6e306fc9efc505
treead9460795e6afe6279fd142b74f0096d38d6fcc3
parent45b70a7372142320ffcd73d98a5ddc7862ac283c
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.

From-SVN: r217769
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/moxie/moxie.c
gcc/config/xtensa/xtensa.c
gcc/doc/tm.texi
gcc/target.def
gcc/targhooks.c