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: PATCH: small -freorder-block defect



  In message <20000314000647.E1153@cygnus.com>you write:
  > On Sun, Mar 12, 2000 at 07:22:07PM -0800, Jason Eckhardt wrote:
  > > !   verify_flow_info ();
  > > !     {
  > > !       rtx x;
  > > !       for (x = get_insns(); x; x = NEXT_INSN (x))
  > > ! 	{
  > > ! 	  if (GET_RTX_CLASS (GET_CODE (x)) == 'i'
  > > ! 	      && GET_CODE (x) == JUMP_INSN
  > > ! 	      && returnjump_p (x)
  > > ! 	      && ! (NEXT_INSN (x) && GET_CODE (NEXT_INSN (x)) == BARRIE
  > R))
  > > ! 	    error ("reorder_basic_blocks: RETURN not followed by BARRIE
  > R!\n");
  > > ! 	}
  > 
  > Put this check in verify_flow_info.  And we should abort rather
  > than emit an error.
Agreed.

Jason --  We want as many of these kinds of checks in verify_flow_info so
that they can be checked for by other routines that modify the cfg and/or the
insn stream by just calling verify_flow_info.  And the standard way to deal
with "can't happen" situations to call abort (), not issue an error.

jeff


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