This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure on vax: Wrong insn in the fallthru edge
- To: jh at suse dot cz (Jan Hubicka)
- Subject: Re: Bootstrap failure on vax: Wrong insn in the fallthru edge
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 27 Sep 2001 13:08:37 -0400 (EDT)
- Cc: gcc-bugs at gcc dot gnu dot org, jh at suse dot cz, gcc-patches at gcc dot gnu dot org
> I believe that all we need is to disable the check, as for Vaxens we want
> to have the addr_diff in the way.
> I will prepare the patch tomorrow (and try to fix the Timode problem too).
I am currently trying the following. What do you think?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-09-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
* cfg.c (verify_flow_info): Allow jump table data in fallthru if
CASE_DROPS_THROUGH.
--- cfg.c.orig Fri Sep 21 18:29:22 2001
+++ cfg.c Thu Sep 27 12:45:27 2001
@@ -2110,7 +2110,12 @@
else
for (insn = NEXT_INSN (e->src->end); insn != e->dest->head;
insn = NEXT_INSN (insn))
- if (GET_CODE (insn) == BARRIER || INSN_P (insn))
+ if (GET_CODE (insn) == BARRIER
+#ifndef CASE_DROPS_THROUGH
+ || INSN_P (insn))
+#else
+ || (INSN_P (insn) && ! JUMP_TABLE_DATA_P (insn)))
+#endif
{
error ("verify_flow_info: Incorrect fallthru %i->%i",
e->src->index, e->dest->index);