diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-06-19 04:10:11 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-06-19 04:10:11 +0000 |
commit | 6e014ef3ce30e4541f542bb7b61b638181990586 (patch) | |
tree | 8baf28053439785da620613f68f134bf2abfa4be /gcc | |
parent | ce4f8c6b7b07ce2eb56aa138a84de540f30b132c (diff) | |
download | gcc-6e014ef3ce30e4541f542bb7b61b638181990586.zip gcc-6e014ef3ce30e4541f542bb7b61b638181990586.tar.gz gcc-6e014ef3ce30e4541f542bb7b61b638181990586.tar.bz2 |
h8300.c (TARGET_INITIALIZER and friends): Move to the end of the file.
* config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
to the end of the file. Remove unnecessary prototypes.
From-SVN: r68176
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 54 |
2 files changed, 29 insertions, 30 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 756318c..0d21142 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-19 Kazu Hirata <kazu@cs.umass.edu> + + * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move + to the end of the file. Remove unnecessary prototypes. + 2003-06-19 Hans-Peter Nilsson <hp@axis.com> * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 474b499..8690a3c 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -57,20 +57,14 @@ static void push (int); static void pop (int); static const char *cond_string (enum rtx_code); static unsigned int h8300_asm_insn_count (const char *); -const struct attribute_spec h8300_attribute_table[]; static tree h8300_handle_fndecl_attribute (tree *, tree, tree, int, bool *); static tree h8300_handle_eightbit_data_attribute (tree *, tree, tree, int, bool *); static tree h8300_handle_tiny_data_attribute (tree *, tree, tree, int, bool *); -static void h8300_output_function_epilogue (FILE *, HOST_WIDE_INT); -static void h8300_insert_attributes (tree, tree *); -static void h8300_file_end (void); #ifndef OBJECT_FORMAT_ELF static void h8300_asm_named_section (const char *, unsigned int); #endif -static void h8300_encode_section_info (tree, rtx, int); static int h8300_and_costs (rtx); static int h8300_shift_costs (rtx); -static bool h8300_rtx_costs (rtx, int, int, int *); /* CPU_TYPE, says what cpu we're compiling for. */ int cpu_type; @@ -103,30 +97,6 @@ const char *h8_push_op, *h8_pop_op, *h8_mov_op; #define SYMBOL_FLAG_EIGHTBIT_DATA (SYMBOL_FLAG_MACH_DEP << 1) #define SYMBOL_FLAG_TINY_DATA (SYMBOL_FLAG_MACH_DEP << 2) -/* Initialize the GCC target structure. */ -#undef TARGET_ATTRIBUTE_TABLE -#define TARGET_ATTRIBUTE_TABLE h8300_attribute_table - -#undef TARGET_ASM_ALIGNED_HI_OP -#define TARGET_ASM_ALIGNED_HI_OP "\t.word\t" - -#undef TARGET_ASM_FUNCTION_EPILOGUE -#define TARGET_ASM_FUNCTION_EPILOGUE h8300_output_function_epilogue - -#undef TARGET_ASM_FILE_END -#define TARGET_ASM_FILE_END h8300_file_end - -#undef TARGET_ENCODE_SECTION_INFO -#define TARGET_ENCODE_SECTION_INFO h8300_encode_section_info - -#undef TARGET_INSERT_ATTRIBUTES -#define TARGET_INSERT_ATTRIBUTES h8300_insert_attributes - -#undef TARGET_RTX_COSTS -#define TARGET_RTX_COSTS h8300_rtx_costs - -struct gcc_target targetm = TARGET_INITIALIZER; - /* See below where shifts are handled for explanation of this enum. */ enum shift_alg @@ -4379,3 +4349,27 @@ byte_accesses_mergeable_p (rtx addr1, rtx addr2) return 0; } + +/* Initialize the GCC target structure. */ +#undef TARGET_ATTRIBUTE_TABLE +#define TARGET_ATTRIBUTE_TABLE h8300_attribute_table + +#undef TARGET_ASM_ALIGNED_HI_OP +#define TARGET_ASM_ALIGNED_HI_OP "\t.word\t" + +#undef TARGET_ASM_FUNCTION_EPILOGUE +#define TARGET_ASM_FUNCTION_EPILOGUE h8300_output_function_epilogue + +#undef TARGET_ASM_FILE_END +#define TARGET_ASM_FILE_END h8300_file_end + +#undef TARGET_ENCODE_SECTION_INFO +#define TARGET_ENCODE_SECTION_INFO h8300_encode_section_info + +#undef TARGET_INSERT_ATTRIBUTES +#define TARGET_INSERT_ATTRIBUTES h8300_insert_attributes + +#undef TARGET_RTX_COSTS +#define TARGET_RTX_COSTS h8300_rtx_costs + +struct gcc_target targetm = TARGET_INITIALIZER; |