diff options
author | Ian Lance Taylor <iant@google.com> | 2009-06-25 06:16:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2009-06-25 06:16:11 +0000 |
commit | 5a82ecd9994682d76eba3c2c6460b3566fc5654c (patch) | |
tree | eb40ba24b9ba6cd915e72178183c60d3f3dd4700 /gcc/config/crx/crx.c | |
parent | b4589acca420c16a7d67c77b8e36afa9a0a8d8ce (diff) | |
download | gcc-5a82ecd9994682d76eba3c2c6460b3566fc5654c.zip gcc-5a82ecd9994682d76eba3c2c6460b3566fc5654c.tar.gz gcc-5a82ecd9994682d76eba3c2c6460b3566fc5654c.tar.bz2 |
arc.c: Include "df.h".
* config/arc/arc.c: Include "df.h".
(arc_attribute_table): Make static. Move higher in file.
(arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
(output_shift): Initialize n later to avoid warning.
* config/arm/arm.c (arm_attribute_table): Make static. Move
higher in file.
* config/avr/avr.c (avr_attribute_table): Make static. Move
higher in file.
(reg_class_tab): Change array type from int to enum reg_class.
(avr_jump_mode): Change GET_MODE to GET_CODE when checking for
LABEL_REF.
(out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
(lshrhi3_out): Likewise.
(class_likely_spilled_p): Change return type to bool.
(avr_rtx_costs): Use local code variable with enum type.
* config/avr/avr.md (movmemhi): Use add_reg_note.
(andhi3, andsi3): Don't use AS2 with "and".
(iorhi3, iorsi3): Don't use AS2 with "or".
* config/avr/avr-protos.h (class_likely_spilled_p): Update
declaration.
* config/crx/crx.c: Include "df.h".
(crx_attribute_table): Make static.
* config/m32r/m32r.c: Include "df.h".
(m32r_attribute_table): Make static. Move higher in file.
(pop): Use add_reg_note.
(block_move_call): Change 0 to LCT_NORMAL in function call.
* config/m32r/m32r.md (movsi_insn): Remove unused local value.
* config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
* config/m32r/m32r-protos.h (m32r_compute_function_type): Always
declare, not just when TREE_CODE is defined.
* config/m68hc11/m68hc11.c: Include "expr.h".
(m68hc11_attribute_table): Make static. Move higher in file.
(m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
function call.
(m68hc11_register_indirect_p): Likewise.
(m68hc11_function_arg_padding): Change return type to enum
direction.
(emit_move_after_reload): Use add_reg_note.
(m68hc11_emit_logical): Change code parameter to enum rtx_code.
(m68hc11_split_logical): Likewise.
(m68hc11_rtx_costs): Add local code_and outer_code variables with
enum type.
* config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
to VOIDmode in function call.
* config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
tree is defined.
(m68hc11_split_logical): Update declaration.
(m68hc11_function_arg_padding): Update declaration.
* config/mcore/mcore.c (regno_reg_class): Change form array of int
to array of enum reg_class.
(mcore_attribute_table): Make static. Move higher in file.
(mcore_rtx_costs): Add cast to enum type.
* config/mcore/mcore.h (regno_reg_class): Update declaration.
(GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
* config/sh/sh.c (sh_attribute_table): Make static. Move higher
in file.
* config/sh/predicates.md (trapping_target_operand): Rename and to
and_expr.
* config/sparc/sparc.c (sparc_attribute_table): Make static. Move
higher in file.
* config/spu/spu.c (spu_attribute_table): Make static. Move
higher in file.
* config/v850/v850.c (v850_attribute_table): Make static. Move
higher in file.
(v850_rtx_costs): Use local code with enum type.
(expand_epilogue): Add cast.
* config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
From-SVN: r148927
Diffstat (limited to 'gcc/config/crx/crx.c')
-rw-r--r-- | gcc/config/crx/crx.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/config/crx/crx.c b/gcc/config/crx/crx.c index 2844625..4aa617f 100644 --- a/gcc/config/crx/crx.c +++ b/gcc/config/crx/crx.c @@ -46,6 +46,7 @@ #include "optabs.h" #include "toplev.h" #include "basic-block.h" +#include "df.h" #include "target.h" #include "target-def.h" @@ -119,13 +120,6 @@ static int size_for_adjusting_sp; static enum machine_mode output_memory_reference_mode; /*****************************************************************************/ -/* GLOBAL VARIABLES */ -/*****************************************************************************/ - -/* Table of machine attributes. */ -EXPORTED_CONST struct attribute_spec crx_attribute_table[]; - -/*****************************************************************************/ /* TARGETM FUNCTION PROTOTYPES */ /*****************************************************************************/ @@ -170,7 +164,7 @@ static bool crx_legitimate_address_p (enum machine_mode, rtx, bool); #undef TARGET_ATTRIBUTE_TABLE #define TARGET_ATTRIBUTE_TABLE crx_attribute_table -const struct attribute_spec crx_attribute_table[] = { +static const struct attribute_spec crx_attribute_table[] = { /* ISRs have special prologue and epilogue requirements. */ {"interrupt", 0, 0, false, true, true, NULL}, {NULL, 0, 0, false, false, false, NULL} |