bb-reorder buglet

Richard Henderson rth@cygnus.com
Tue May 30 14:03:00 GMT 2000


Not all ports define HAVE_return.


r~

        * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.

Index: bb-reorder.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/bb-reorder.c,v
retrieving revision 1.15
diff -c -p -d -r1.15 bb-reorder.c
*** bb-reorder.c	2000/05/26 03:34:33	1.15
--- bb-reorder.c	2000/05/30 20:59:53
*************** emit_jump_to_block_after (bb, after)
*** 501,512 ****
--- 501,516 ----
      }
    else
      {
+ #ifdef HAVE_return
        if (! HAVE_return)
  	abort ();
        jump = emit_jump_insn_after (gen_return (), after);
  
        if (rtl_dump_file)
  	fprintf (rtl_dump_file, "Emitting return\n");
+ #else
+       abort ();
+ #endif
      }
  
    return jump;


More information about the Gcc-patches mailing list