Whee, fun with cfg checking code

Jeffrey A Law law@cygnus.com
Mon Oct 18 13:01:00 GMT 1999


This allows the code to recognize return instructions to work for the mn102
and mn103, which in turn prevents a consistency check in flow from
blowing up.

	* mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
	to the cfg code that this is a return instruction.
	* mn10300.md (return_internal): Similarly.

Index: mn10200/mn10200.md
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/mn10200/mn10200.md,v
retrieving revision 1.63
diff -c -3 -p -r1.63 mn10200.md
*** mn10200.md	1999/10/05 08:08:06	1.63
--- mn10200.md	1999/10/18 19:51:30
***************
*** 1743,1749 ****
    [(set_attr "cc" "clobber")])
  
  (define_insn "outline_epilogue_jump"
!   [(const_int 4)]
    ""
    "jmp ___epilogue_noreturn"
    [(set_attr "cc" "clobber")])
--- 1743,1750 ----
    [(set_attr "cc" "clobber")])
  
  (define_insn "outline_epilogue_jump"
!   [(const_int 4)
!    (return)]
    ""
    "jmp ___epilogue_noreturn"
    [(set_attr "cc" "clobber")])
Index: mn10300/mn10300.md
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/mn10300/mn10300.md,v
retrieving revision 1.72
diff -c -3 -p -r1.72 mn10300.md
*** mn10300.md	1999/10/05 08:08:07	1.72
--- mn10300.md	1999/10/18 19:51:33
***************
*** 2031,2037 ****
  }")
  
  (define_insn "return_internal"
!   [(const_int 2)]
    ""
    "rets"
    [(set_attr "cc" "clobber")])
--- 2031,2038 ----
  }")
  
  (define_insn "return_internal"
!   [(const_int 2)
!    (return)]
    ""
    "rets"
    [(set_attr "cc" "clobber")])




More information about the Gcc-patches mailing list