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]

AVR port cleanup


Hi.

This patch remove unused macros and function declaration from AVR port.

        * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
        XEXP_) : Remove.
        * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
        avr_change_section, avr_reg_class_from_letter) : Remove declaration.


Index: gcc/config/avr/avr-protos.h
===================================================================
--- gcc/config/avr/avr-protos.h	(revision 155555)
+++ gcc/config/avr/avr-protos.h	(working copy)
@@ -22,15 +22,11 @@
 
 
 extern int function_arg_regno_p (int r);
-extern void avr_init_once (void);
 extern void avr_override_options (void);
 extern void avr_cpu_cpp_builtins (struct cpp_reader * pfile);
-extern void avr_optimization_options (int level, int size);
-extern char *avr_change_section (char *sect_name);
 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 enum reg_class avr_reg_class_from_letter (int c);
 extern void asm_globalize_label (FILE *file, const char *name);
 extern void avr_asm_declare_function_name (FILE *, const char *, tree);
 extern void order_regs_for_local_alloc (void);
Index: gcc/config/avr/avr.h
===================================================================
--- gcc/config/avr/avr.h        (revision 155555)
+++ gcc/config/avr/avr.h        (working copy)
@@ -414,16 +414,6 @@
 
 #define REG_OK_FOR_BASE_STRICT_P(X) REGNO_OK_FOR_BASE_P (REGNO (X))
 
-#ifdef REG_OK_STRICT
-#  define REG_OK_FOR_BASE_P(X) REG_OK_FOR_BASE_STRICT_P (X)
-#else
-#  define REG_OK_FOR_BASE_P(X) REG_OK_FOR_BASE_NOSTRICT_P (X)
-#endif
-
-#define REG_OK_FOR_INDEX_P(X) 0
-
-#define XEXP_(X,Y) (X)
-
 /* LEGITIMIZE_RELOAD_ADDRESS will allow register R26/27 to be used, where it
    is no worse than normal base pointers R28/29 and R30/31. For example:
    If base offset is greater than 63 bytes or for R++ or --R addressing.  */


Anatoly.


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