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]

Actually use the frv dfas for scheduling


Tested on frv-elf, committed as obvious ;/

Richard


	* config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
	(TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.

Index: config/frv/frv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.c,v
retrieving revision 1.28
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.28 frv.c
*** config/frv/frv.c	10 Jul 2003 18:04:20 -0000	1.28
--- config/frv/frv.c	1 Oct 2003 17:12:17 -0000
*************** static int frv_registers_used_p			PARAMS
*** 271,276 ****
--- 271,277 ----
  							 int));
  static int frv_registers_set_p			PARAMS ((rtx, unsigned char [],
  							 int));
+ static int frv_use_dfa_pipeline_interface	PARAMS ((void));
  static void frv_pack_insns			PARAMS ((void));
  static void frv_function_prologue		PARAMS ((FILE *, HOST_WIDE_INT));
  static void frv_function_epilogue		PARAMS ((FILE *, HOST_WIDE_INT));
*************** #define TARGET_ASM_OUTPUT_MI_THUNK frv_a
*** 309,314 ****
--- 310,318 ----
  #undef TARGET_ASM_CAN_OUTPUT_MI_THUNK
  #define TARGET_ASM_CAN_OUTPUT_MI_THUNK default_can_output_mi_thunk_no_vcall
  
+ #undef  TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE
+ #define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE frv_use_dfa_pipeline_interface
+ 
  struct gcc_target targetm = TARGET_INITIALIZER;
  
  /* Given a CONST, return true if the symbol_ref points to small data.  */
*************** frv_init_machine_status ()
*** 8186,8192 ****
--- 8190,8203 ----
  {
    return ggc_alloc_cleared (sizeof (struct machine_function));
  }
+ 
+ /* Implement TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE.  */
  
+ static int
+ frv_use_dfa_pipeline_interface (void)
+ {
+   return true;
+ }
  
  /* Update the register state information, to know about which registers are set
     or clobbered.  */


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