This is the mail archive of the gcc@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]

INSN_CODE used on jump_table_data


Denis,

when building gcc for avr with --enable-checking=yes,rtl , I run into the following error:
...
/home/vries/gcc_versions/devel/src/libgcc/unwind-c.c: In function ‘__gcc_personality_sj0’: /home/vries/gcc_versions/devel/src/libgcc/unwind-c.c:234:1: internal compiler error: RTL check: expected elt 6 type 'i' or 'n', have '0' (rtx jump_table_data) in recog_memoized, at recog.h:154
 }
 ^
0xbcb709 rtl_check_failed_type2(rtx_def const*, int, int, int, char const*, int, char const*)
	/home/vries/gcc_versions/devel/src/gcc/rtl.c:764
0xf85f36 recog_memoized
	/home/vries/gcc_versions/devel/src/gcc/recog.h:154
0xf9ccaa avr_adjust_insn_length(rtx_def*, int)
	/home/vries/gcc_versions/devel/src/gcc/config/avr/avr.c:7780
0x84c2a9 shorten_branches(rtx_def*)
	/home/vries/gcc_versions/devel/src/gcc/final.c:1198
0x85cbc2 rest_of_handle_shorten_branches
	/home/vries/gcc_versions/devel/src/gcc/final.c:4519
0x85cc10 execute
	/home/vries/gcc_versions/devel/src/gcc/final.c:4549
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.
...

AFAIU, the problem is that avr_adjust_insn_length uses recog_memoized, which uses INSN_CODE on a jump_table_data.

Thanks,
- Tom


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