aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2004-04-11 10:20:42 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2004-04-11 10:20:42 +0200
commitcf22ce3c7f2137dcd3b74211fd48a2d98564ac23 (patch)
tree079b6c74f8f28cdd969feec97bfb776803d6ac17 /gcc/cfgrtl.c
parent3498229434bf8e8d7d7029eed3031377e6c8dd00 (diff)
downloadgcc-cf22ce3c7f2137dcd3b74211fd48a2d98564ac23.zip
gcc-cf22ce3c7f2137dcd3b74211fd48a2d98564ac23.tar.gz
gcc-cf22ce3c7f2137dcd3b74211fd48a2d98564ac23.tar.bz2
bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap failure on solaris.
2004-04-11 Andreas Tobler <a.tobler@schweiz.ch> * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap failure on solaris. Place ifdef HAVE_return around gen_ret call. * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef HAVE_return and place it around the place where it is needed. From-SVN: r80594
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 2e09ba2..461eb34 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -57,11 +57,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "cfglayout.h"
#include "expr.h"
-/* Stubs in case we don't have a return insn. */
-#ifndef HAVE_return
-#define HAVE_return 0
-#define gen_return() NULL_RTX
-#endif
/* The labels mentioned in non-jump rtl. Valid during find_basic_blocks. */
/* ??? Should probably be using LABEL_NUSES instead. It would take a
@@ -1134,10 +1129,11 @@ force_nonfallthru_and_redirect (edge e, basic_block target)
e->flags &= ~EDGE_FALLTHRU;
if (target == EXIT_BLOCK_PTR)
{
- if (HAVE_return)
+#ifdef HAVE_return
emit_jump_insn_after (gen_return (), BB_END (jump_block));
- else
+#else
abort ();
+#endif
}
else
{