From 5ee7391d44a95f77c52ababfd5d0b1c60a1306ac Mon Sep 17 00:00:00 2001 From: amylaar Date: Thu, 31 Mar 2005 16:38:25 +0000 Subject: * postreload-gcse.c: Include target.h. (gcse_after_reload_main): Return early if we cannot modify jumps. * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97332 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/postreload-gcse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/postreload-gcse.c') diff --git a/gcc/postreload-gcse.c b/gcc/postreload-gcse.c index 75ca2572176..5234fe959af 100644 --- a/gcc/postreload-gcse.c +++ b/gcc/postreload-gcse.c @@ -43,6 +43,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "obstack.h" #include "hashtab.h" #include "params.h" +#include "target.h" /* The following code implements gcse after reload, the purpose of this pass is to cleanup redundant loads generated by reload and other @@ -1283,6 +1284,10 @@ delete_redundant_insns (void) void gcse_after_reload_main (rtx f ATTRIBUTE_UNUSED) { + + if (targetm.cannot_modify_jumps_p ()) + return; + memset (&stats, 0, sizeof (stats)); /* Allocate ememory for this pass. -- cgit v1.2.1