This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[dataflow] [patch] Fix build failre on sh64 (take 2)


The attached is the patch which is revised according to Paolo's
suggestion.  Retested on i686-pc-linux-gnu with no new failures.

Regards,
	kaz
--
	* bt-load.c: Include recog.h.
	(move_btr_def): Use validate_replace_rtx instead of replace_rtx.

diff -uprN ORIG/dataflow/gcc/bt-load.c LOCAL/dataflow/gcc/bt-load.c
--- ORIG/dataflow/gcc/bt-load.c	2007-02-04 16:25:05.000000000 +0900
+++ LOCAL/dataflow/gcc/bt-load.c	2007-05-25 20:11:07.000000000 +0900
@@ -1,5 +1,5 @@
 /* Perform branch target register load optimizations.
-   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
+   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -37,6 +37,7 @@ Software Foundation, 51 Franklin Street,
 #include "tm_p.h"
 #include "toplev.h"
 #include "tree-pass.h"
+#include "recog.h"
 #include "df.h"
 
 /* Target register optimizations - these are performed after reload.  */
@@ -1231,7 +1232,7 @@ move_btr_def (basic_block new_def_bb, in
 	replacement_rtx = btr_rtx;
       else
 	replacement_rtx = gen_rtx_REG (GET_MODE (user->use), btr);
-      replace_rtx (user->insn, user->use, replacement_rtx);
+      validate_replace_rtx (user->insn, user->use, replacement_rtx);
       user->use = replacement_rtx;
     }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]