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]

Trival patch flow.c


All

Bootstrapped x86-linux

Graham

Changelog

	* flow.c (back_edge_of_syntacic_loop_p): Add whitespace.
	(libcall_dead_p): Likewise.

	(mark_used_regs): Constify fmt.
	(find_use_as_address): Likewise.

-----------------------------------------------------------
Index: flow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.450
diff -c -p -r1.450 flow.c
*** flow.c      2001/07/29 17:01:52     1.450
--- flow.c      2001/07/30 20:03:32
*************** back_edge_of_syntactic_loop_p (bb1, bb2)
*** 2046,2055 ****
--- 2046,2058 ----
  {
    rtx insn;
    int count = 0;
+
    if (bb1->index > bb2->index)
      return false;
+
    if (bb1->index == bb2->index)
      return true;
+
    for (insn = bb1->end; insn != bb2->head && count >= 0;
         insn = NEXT_INSN (insn))
      if (GET_CODE (insn) == NOTE)
*************** back_edge_of_syntactic_loop_p (bb1, bb2)
*** 2059,2064 ****
--- 2062,2068 ----
        if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_LOOP_END)
          count--;
        }
+
    return count >= 0;
  }
*************** libcall_dead_p (pbi, note, insn)
*** 5777,5782 ****
--- 5786,5792 ----
    if (x)
      {
        register rtx r = SET_SRC (x);
+
        if (GET_CODE (r) == REG)
        {
*************** mark_used_regs (pbi, x, cond, insn)
*** 7421,7427 ****
    /* Recursively scan the operands of this expression.  */

    {
!     register const char *fmt = GET_RTX_FORMAT (code);
      register int i;

      for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
--- 7431,7437 ----
    /* Recursively scan the operands of this expression.  */

    {
!     register const char * const fmt = GET_RTX_FORMAT (code);
      register int i;

      for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
*************** find_use_as_address (x, reg, plusconst)
*** 7584,7590 ****
       HOST_WIDE_INT plusconst;
  {
    enum rtx_code code = GET_CODE (x);
!   const char *fmt = GET_RTX_FORMAT (code);
    register int i;
    register rtx value = 0;
    register rtx tem;
--- 7594,7600 ----
       HOST_WIDE_INT plusconst;
  {
    enum rtx_code code = GET_CODE (x);
!   const char * const fmt = GET_RTX_FORMAT (code);
    register int i;
    register rtx value = 0;
    register rtx tem;
----------------------------------------------------------------------


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