diff options
author | Anatoly Sokolov <aesok@post.ru> | 2010-09-25 13:40:19 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2010-09-25 13:40:19 +0400 |
commit | c21136eebbf57975d027b64730703553fcbc1b09 (patch) | |
tree | 8e7fc4a8f5ef72743b57393ec490c22036c31598 /gcc | |
parent | 915acec49bf7ffb41ff2bec3e149809c552496c4 (diff) | |
download | gcc-c21136eebbf57975d027b64730703553fcbc1b09.zip gcc-c21136eebbf57975d027b64730703553fcbc1b09.tar.gz gcc-c21136eebbf57975d027b64730703553fcbc1b09.tar.bz2 |
avr.h (CLASS_LIKELY_SPILLED_P): Remove.
* config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
* config/avr/avr-protos.h (class_likely_spilled_p): Remove.
* config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
(class_likely_spilled_p): Rename to...
(avr_class_likely_spilled_p): ...this. Make static. Change argument
type to reg_class_t.
From-SVN: r164618
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/avr/avr-protos.h | 1 | ||||
-rw-r--r-- | gcc/config/avr/avr.c | 8 | ||||
-rw-r--r-- | gcc/config/avr/avr.h | 2 |
4 files changed, 15 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2bd82c1..fb424bda 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2010-09-25 Anatoly Sokolov <aesok@post.ru> + + * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove. + * config/avr/avr-protos.h (class_likely_spilled_p): Remove. + * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define. + (class_likely_spilled_p): Rename to... + (avr_class_likely_spilled_p): ...this. Make static. Change argument + type to reg_class_t. + 2010-09-24 Jan Hubicka <jh@suse.cz> * lto-symtab.c (lto_symtab_entry_def): Add guessed field. diff --git a/gcc/config/avr/avr-protos.h b/gcc/config/avr/avr-protos.h index aa0c661..83de685 100644 --- a/gcc/config/avr/avr-protos.h +++ b/gcc/config/avr/avr-protos.h @@ -24,7 +24,6 @@ extern int function_arg_regno_p (int r); extern void avr_cpu_cpp_builtins (struct cpp_reader * pfile); extern int avr_ret_register (void); -extern bool class_likely_spilled_p (int c); extern enum reg_class avr_regno_reg_class (int r); extern void asm_globalize_label (FILE *file, const char *name); extern void avr_asm_declare_function_name (FILE *, const char *, tree); diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index cabf678d8..2c7a8ad 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -92,6 +92,7 @@ static bool avr_hard_regno_scratch_ok (unsigned int); static unsigned int avr_case_values_threshold (void); static bool avr_frame_pointer_required_p (void); static bool avr_can_eliminate (const int, const int); +static bool avr_class_likely_spilled_p (reg_class_t c); /* Allocate registers from r25 to r8 for parameters for function calls. */ #define FIRST_CUM_REG 26 @@ -193,6 +194,9 @@ static const struct attribute_spec avr_attribute_table[] = #undef TARGET_CAN_ELIMINATE #define TARGET_CAN_ELIMINATE avr_can_eliminate +#undef TARGET_CLASS_LIKELY_SPILLED_P +#define TARGET_CLASS_LIKELY_SPILLED_P avr_class_likely_spilled_p + #undef TARGET_OPTION_OVERRIDE #define TARGET_OPTION_OVERRIDE avr_option_override @@ -4762,8 +4766,8 @@ gas_output_ascii(FILE *file, const char *str, size_t length) assigned to registers of class CLASS would likely be spilled because registers of CLASS are needed for spill registers. */ -bool -class_likely_spilled_p (int c) +static bool +avr_class_likely_spilled_p (reg_class_t c) { return (c != ALL_REGS && c != ADDW_REGS); } diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h index 92c197a..60a5899 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -333,8 +333,6 @@ enum reg_class { #define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true -#define CLASS_LIKELY_SPILLED_P(c) class_likely_spilled_p(c) - #define CLASS_MAX_NREGS(CLASS, MODE) class_max_nregs (CLASS, MODE) #define STACK_PUSH_CODE POST_DEC |