From ca4f3d13192837e3c285b1b3179a09e6fbb49500 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Tue, 6 Jul 2004 21:21:31 +0000 Subject: [PATCH] alpha.c (alpha_use_dfa_pipeline_interface): Remove. * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. From-SVN: r84170 --- gcc/ChangeLog | 19 +++++++++++++++++++ gcc/config/alpha/alpha.c | 9 +-------- gcc/config/arm/arm.c | 9 +-------- gcc/config/frv/frv.c | 12 +----------- gcc/config/i386/i386.c | 15 +-------------- gcc/config/ia64/ia64.c | 12 +----------- gcc/config/pa/pa.c | 10 +--------- gcc/config/sparc/sparc.c | 15 +-------------- gcc/config/v850/v850.c | 9 +-------- 9 files changed, 27 insertions(+), 83 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94cd3a29479..998580493f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,22 @@ +2004-07-06 Steven Bosscher + + * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove. + (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. + * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove. + (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. + * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove. + (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. + * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove. + (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. + * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove. + (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. + * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove. + (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. + * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove. + (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. + * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove. + (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. + 2004-07-06 Daniel Berlin * dojump.c (do_jump): REFERENCE_EXPR is dead. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 0fe8b000514..19bf341bfdf 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -5047,12 +5047,6 @@ alpha_issue_rate (void) return (alpha_cpu == PROCESSOR_EV4 ? 2 : 4); } -static int -alpha_use_dfa_pipeline_interface (void) -{ - return true; -} - /* How many alternative schedules to try. This should be as wide as the scheduling freedom in the DFA, but no wider. Making this value too large results extra work for the scheduler. @@ -10130,8 +10124,7 @@ alpha_init_libfuncs (void) #undef TARGET_SCHED_ISSUE_RATE #define TARGET_SCHED_ISSUE_RATE alpha_issue_rate #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE -#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE \ - alpha_use_dfa_pipeline_interface +#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 #undef TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD \ alpha_multipass_dfa_lookahead diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 37b13fe4c36..724f7c16b3d 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -117,7 +117,6 @@ static void thumb_output_function_prologue (FILE *, HOST_WIDE_INT); static int arm_comp_type_attributes (tree, tree); static void arm_set_default_type_attributes (tree); static int arm_adjust_cost (rtx, rtx, rtx, int); -static int arm_use_dfa_pipeline_interface (void); static int count_insns_for_constant (HOST_WIDE_INT, int); static int arm_get_strip_length (int); static bool arm_function_ok_for_sibcall (tree, tree); @@ -213,7 +212,7 @@ static bool arm_cookie_has_size (void); #define TARGET_SCHED_ADJUST_COST arm_adjust_cost #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE -#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE arm_use_dfa_pipeline_interface +#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 #undef TARGET_ENCODE_SECTION_INFO #ifdef ARM_PE @@ -4129,12 +4128,6 @@ arm_address_cost (rtx x) return TARGET_ARM ? arm_arm_address_cost (x) : arm_thumb_address_cost (x); } -static int -arm_use_dfa_pipeline_interface (void) -{ - return true; -} - static int arm_adjust_cost (rtx insn, rtx link, rtx dep, int cost) { diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 99e8cb9c7e2..de1cb379095 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -262,7 +262,6 @@ static void frv_registers_update (rtx, unsigned char [], static int frv_registers_used_p (rtx, unsigned char [], int); static int frv_registers_set_p (rtx, unsigned char [], int); static int frv_issue_rate (void); -static int frv_use_dfa_pipeline_interface (void); static void frv_pack_insns (void); static void frv_function_prologue (FILE *, HOST_WIDE_INT); static void frv_function_epilogue (FILE *, HOST_WIDE_INT); @@ -318,7 +317,7 @@ static rtx frv_struct_value_rtx (tree, int); #undef TARGET_SCHED_ISSUE_RATE #define TARGET_SCHED_ISSUE_RATE frv_issue_rate #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE -#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE frv_use_dfa_pipeline_interface +#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 #undef TARGET_FUNCTION_OK_FOR_SIBCALL #define TARGET_FUNCTION_OK_FOR_SIBCALL frv_function_ok_for_sibcall @@ -8366,15 +8365,6 @@ frv_issue_rate (void) return 4; } } - - -/* 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. */ diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index fea329863fb..4b1e389641b 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -866,7 +866,6 @@ static rtx ix86_expand_aligntest (rtx, int); static void ix86_expand_strlensi_unroll_1 (rtx, rtx, rtx); static int ix86_issue_rate (void); static int ix86_adjust_cost (rtx, rtx, rtx, int); -static int ia32_use_dfa_pipeline_interface (void); static int ia32_multipass_dfa_lookahead (void); static void ix86_init_mmx_sse_builtins (void); static rtx x86_this_parameter (tree); @@ -1018,8 +1017,7 @@ static void init_ext_80387_constants (void); #undef TARGET_SCHED_ISSUE_RATE #define TARGET_SCHED_ISSUE_RATE ix86_issue_rate #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE -#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE \ - ia32_use_dfa_pipeline_interface +#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 #undef TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD \ ia32_multipass_dfa_lookahead @@ -12387,17 +12385,6 @@ ix86_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost) return cost; } -static int -ia32_use_dfa_pipeline_interface (void) -{ - if (TARGET_PENTIUM - || TARGET_PENTIUMPRO - || TARGET_K6 - || TARGET_ATHLON_K8) - return 1; - return 0; -} - /* How many alternative schedules to try. This should be as wide as the scheduling freedom in the DFA, but no wider. Making this value too large results extra work for the scheduler. */ diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 2c7e36d511e..3195422cb45 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -164,7 +164,6 @@ struct ia64_frame_info /* Current frame information calculated by ia64_compute_frame_size. */ static struct ia64_frame_info current_frame_info; -static int ia64_use_dfa_pipeline_interface (void); static int ia64_first_cycle_multipass_dfa_lookahead (void); static void ia64_dependencies_evaluation_hook (rtx, rtx); static void ia64_init_dfa_pre_cycle_insn (void); @@ -342,7 +341,7 @@ static const struct attribute_spec ia64_attribute_table[] = #define TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK ia64_dependencies_evaluation_hook #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE -#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE ia64_use_dfa_pipeline_interface +#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 #undef TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD ia64_first_cycle_multipass_dfa_lookahead @@ -7370,15 +7369,6 @@ final_emit_insn_group_barriers (FILE *dump ATTRIBUTE_UNUSED) -/* If the following function returns TRUE, we will use the the DFA - insn scheduler. */ - -static int -ia64_use_dfa_pipeline_interface (void) -{ - return 1; -} - /* If the following function returns TRUE, we will use the the DFA insn scheduler. */ diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 9ece6dd9532..d4e8ca0e5fd 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -48,16 +48,8 @@ Boston, MA 02111-1307, USA. */ #include "target.h" #include "target-def.h" -static int hppa_use_dfa_pipeline_interface (void); - #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE -#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hppa_use_dfa_pipeline_interface - -static int -hppa_use_dfa_pipeline_interface (void) -{ - return 1; -} +#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 /* Return nonzero if there is a bypass for the output of OUT_INSN and the fp store IN_INSN. */ diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 64a207d46d4..5439f036bf4 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -161,7 +161,6 @@ static void sparc_elf_asm_named_section (const char *, unsigned int); static int sparc_adjust_cost (rtx, rtx, rtx, int); static int sparc_issue_rate (void); static void sparc_sched_init (FILE *, int, int); -static int sparc_use_dfa_pipeline_interface (void); static int sparc_use_sched_lookahead (void); static void emit_soft_tfmode_libcall (const char *, int, rtx *); @@ -242,7 +241,7 @@ enum processor_type sparc_cpu; #undef TARGET_SCHED_INIT #define TARGET_SCHED_INIT sparc_sched_init #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE -#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE sparc_use_dfa_pipeline_interface +#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 #undef TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD sparc_use_sched_lookahead @@ -7448,18 +7447,6 @@ sparc_sched_init (FILE *dump ATTRIBUTE_UNUSED, { } -static int -sparc_use_dfa_pipeline_interface (void) -{ - if ((1 << sparc_cpu) & - ((1 << PROCESSOR_ULTRASPARC) | (1 << PROCESSOR_CYPRESS) | - (1 << PROCESSOR_SUPERSPARC) | (1 << PROCESSOR_HYPERSPARC) | - (1 << PROCESSOR_SPARCLITE86X) | (1 << PROCESSOR_TSC701) | - (1 << PROCESSOR_ULTRASPARC3))) - return 1; - return 0; -} - static int sparc_use_sched_lookahead (void) { diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index 5bd8ce455b0..063a3fe5c77 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -64,7 +64,6 @@ static void v850_insert_attributes (tree, tree *); static void v850_select_section (tree, int, unsigned HOST_WIDE_INT); static void v850_encode_data_area (tree, rtx); static void v850_encode_section_info (tree, rtx, int); -static int v850_use_dfa_pipeline_interface (void); static bool v850_return_in_memory (tree, tree); static void v850_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode, tree, int *, int); @@ -119,7 +118,7 @@ static int v850_interrupt_p = FALSE; #define TARGET_ADDRESS_COST hook_int_rtx_0 #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE -#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE v850_use_dfa_pipeline_interface +#define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 #undef TARGET_MACHINE_DEPENDENT_REORG #define TARGET_MACHINE_DEPENDENT_REORG v850_reorg @@ -2345,12 +2344,6 @@ v850_encode_section_info (tree decl, rtx rtl, int first) v850_encode_data_area (decl, XEXP (rtl, 0)); } -static int -v850_use_dfa_pipeline_interface (void) -{ - return 1; -} - /* Return true if the given RTX is a register which can be restored by a function epilogue. */ int -- 2.30.2