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

Re: Bootstrap failure on vax: Wrong insn in the fallthru edge


> 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);


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