* postreload-gcse.c: Include target.h.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Mar 2005 16:38:25 +0000 (16:38 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Mar 2005 16:38:25 +0000 (16:38 +0000)
(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/ChangeLog
gcc/Makefile.in
gcc/postreload-gcse.c

index 41224f4..66e07c7 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
+
+       * 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).
+
 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
 
        * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
index 5e7e495..6719bb0 100644 (file)
@@ -2113,7 +2113,7 @@ postreload.o : postreload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H)
 postreload-gcse.o : postreload-gcse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
    $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) real.h insn-config.h $(GGC_H) \
    $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) function.h output.h toplev.h $(TM_P_H) \
-   except.h $(TREE_H)
+   except.h $(TREE_H) $(TARGET_H)
 caller-save.o : caller-save.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
    $(FLAGS_H) $(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) function.h \
    $(RECOG_H) reload.h $(EXPR_H) toplev.h $(TM_P_H)
index 75ca257..5234fe9 100644 (file)
@@ -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.