On Wed, Nov 19, 2014 at 10:04 AM, Jakub Jelinek <ja...@redhat.com> wrote: > On Wed, Nov 19, 2014 at 03:58:50PM +0100, Richard Henderson wrote: >> 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. > > r217769 broke lots of tests on i686-linux, haven't verified if everything > below is caused by this, but regparm-1.c at -m32 certainly is. > The ICE is: > regparm-1.c: In function ‘test_realigned’: > regparm-1.c:49:1: internal compiler error: in ix86_expand_prologue, at > config/i386/i386.c:11347 > } > ^ > 0x106140a ix86_expand_prologue() > ../../gcc/config/i386/i386.c:11347 > 0x11aaf2a gen_prologue() > ../../gcc/config/i386/i386.md:12095 > 0x99baf9 thread_prologue_and_epilogue_insns() > ../../gcc/function.c:5911 > 0x99cba4 rest_of_handle_thread_prologue_and_epilogue > ../../gcc/function.c:6481 > 0x99cc0c execute > ../../gcc/function.c:6519 > Please submit a full bug report, > with preprocessed source if appropriate. > Please include the complete backtrace with any bug report. > See <http://gcc.gnu.org/bugs.html> for instructions. >
I opened: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63977 H.J.