This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Combine error?
- To: gcc-bugs at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Subject: Combine error?
- From: Jason Eckhardt <jle at cygnus dot com>
- Date: Mon, 20 Mar 2000 07:53:10 -0800 (PST)
I'm seeing many of these on hppa1.1 with --enable-checking:
Internal compiler error in `combine_instructions', at combine.c:632
RTL check: access of elt 5 of `note' with last elt 4
That code is:
/* Try each sequence of three linked insns ending with this one. */
for (links = LOG_LINKS (insn); links; links = XEXP (links, 1))
--> for (nextlinks = LOG_LINKS (XEXP (links, 0)); nextlinks;
nextlinks = XEXP (nextlinks, 1))
The subexpression "XEXP (links, 0)" in some cases is a note, so the rtl
checker flags a problem when we access LOG_LINKS of it.
What is the intent here? Should we simply check for a note and not
execute the for-loop if it is?
jason.