https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78642
--- Comment #5 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- >> Is your compiler configured with --enable-checking=rtl ? > > Yes, but I don't think Rainer's is. not explicitly: I have S["stage1_checking"]="--enable-checking=yes,types,extra" in gcc/config.status which implies rtl checking. >> Perhaps it can be only reproduced natively, or relies on particular >> auto-host.h content (I don't have cross-binutils to Solaris around). > > Or it was fixed by your emit-rtl.c change. I'm still seeing it on Solaris 10, 11 and 12 between 20161201 (r243113) and 20161204 (r243227), both when using as and gas: $ cc1 -fpreprocessed 20030917-1.i -quiet -mcpu=v9 -O3 -ftracer -finline-functions -o 20030917-1.s /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/compile/20030917-1.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] blah(size,strp) ^~~~ /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/compile/20030917-1.c: In function 'blah': /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/compile/20030917-1.c:17:1: error: invalid rtl sharing found in the insn } ^ (insn 196 94 197 (clobber (reg/i:SI 8 %o0 [24])) "/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/compile/20030917-1.c":17 -1 (nil)) /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/compile/20030917-1.c:17:1: error: shared rtx (clobber (reg/i:SI 8 %o0 [24])) /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/compile/20030917-1.c:17:1: internal compiler error: internal consistency failure 0x64d74f verify_rtx_sharing /vol/gcc/src/hg/trunk/local/gcc/emit-rtl.c:2751 0x64deff verify_insn_sharing /vol/gcc/src/hg/trunk/local/gcc/emit-rtl.c:2837 0x652fc3 verify_rtl_sharing() /vol/gcc/src/hg/trunk/local/gcc/emit-rtl.c:2860 0x8fc603 execute_function_todo /vol/gcc/src/hg/trunk/local/gcc/passes.c:1982 0x8fd543 do_per_function /vol/gcc/src/hg/trunk/local/gcc/passes.c:1649 0x8fd767 execute_todo /vol/gcc/src/hg/trunk/local/gcc/passes.c:2015 Rainer