summaryrefslogtreecommitdiff
path: root/gcc/postreload-gcse.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-31 16:38:25 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-31 16:38:25 +0000
commit5ee7391d44a95f77c52ababfd5d0b1c60a1306ac (patch)
treeeb1cb6d12f45026af9ef859a57ece1c2d0710b67 /gcc/postreload-gcse.c
parentf2ccbedeaaf59a536396a51dc644d6b5cf4afcef (diff)
downloadgcc-5ee7391d44a95f77c52ababfd5d0b1c60a1306ac.tar.gz
* 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
Diffstat (limited to 'gcc/postreload-gcse.c')
-rw-r--r--gcc/postreload-gcse.c5
1 files changed, 5 insertions, 0 deletions
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.