aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2010-10-16 17:36:52 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2010-10-16 17:36:52 +0400
commit4b0b4ab069cd49638ab3c09d427d00180ce60691 (patch)
tree0175463b9d03ccd0d03cccaaee2f7e8e2bed2f79
parent7bb3487f8f8f8b849f3b8735481f3fd8e88ec09c (diff)
downloadgcc-4b0b4ab069cd49638ab3c09d427d00180ce60691.zip
gcc-4b0b4ab069cd49638ab3c09d427d00180ce60691.tar.gz
gcc-4b0b4ab069cd49638ab3c09d427d00180ce60691.tar.bz2
avr.h (PREFERRED_RELOAD_CLASS): Remove.
* config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove. * config/avr/avr-protos.h (preferred_reload_class): Remove. * config/avr/avr.c (preferred_reload_class): Remove. * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove. * config/pa/pa.c (emit_move_sequence): Update comment * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove. * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove. * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove. * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove. * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove. * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove. * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove. * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove. * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove. * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove. * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove. * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove. * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove. From-SVN: r165541
-rw-r--r--gcc/ChangeLog21
-rw-r--r--gcc/config/arc/arc.h7
-rw-r--r--gcc/config/avr/avr-protos.h1
-rw-r--r--gcc/config/avr/avr.c10
-rw-r--r--gcc/config/avr/avr.h2
-rw-r--r--gcc/config/crx/crx.h2
-rw-r--r--gcc/config/fr30/fr30.h18
-rw-r--r--gcc/config/frv/frv.h20
-rw-r--r--gcc/config/h8300/h8300.h7
-rw-r--r--gcc/config/lm32/lm32.h2
-rw-r--r--gcc/config/m32r/m32r.h6
-rw-r--r--gcc/config/moxie/moxie.h5
-rw-r--r--gcc/config/pa/pa.c2
-rw-r--r--gcc/config/pa/pa.h6
-rw-r--r--gcc/config/picochip/picochip.h2
-rw-r--r--gcc/config/rx/rx.h2
-rw-r--r--gcc/config/spu/spu.h2
-rw-r--r--gcc/config/v850/v850.h7
-rw-r--r--gcc/config/vax/vax.h7
19 files changed, 22 insertions, 107 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f849036..0931306 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,24 @@
+2010-10-16 Anatoly Sokolov <aesok@post.ru>
+
+ * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/avr/avr-protos.h (preferred_reload_class): Remove.
+ * config/avr/avr.c (preferred_reload_class): Remove.
+ * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/pa/pa.c (emit_move_sequence): Update comment
+ * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
+ * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
+
2010-10-16 Joseph Myers <joseph@codesourcery.com>
* opts.c (set_fast_math_flags,
diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index f2d273dc..ff7e5b7 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -376,13 +376,6 @@ extern enum reg_class arc_regno_reg_class[FIRST_PSEUDO_REGISTER];
#define REGNO_OK_FOR_INDEX_P(REGNO) \
((REGNO) < 32 || (unsigned) reg_renumber[REGNO] < 32)
-/* Given an rtx X being reloaded into a reg required to be
- in class CLASS, return the class of reg to actually use.
- In general this is just CLASS; but on some machines
- in some cases it is preferable to use a more restrictive class. */
-#define PREFERRED_RELOAD_CLASS(X,CLASS) \
-(CLASS)
-
/* Return the maximum number of consecutive registers
needed to represent mode MODE in a register of class CLASS. */
#define CLASS_MAX_NREGS(CLASS, MODE) \
diff --git a/gcc/config/avr/avr-protos.h b/gcc/config/avr/avr-protos.h
index 3d717a2..7469856 100644
--- a/gcc/config/avr/avr-protos.h
+++ b/gcc/config/avr/avr-protos.h
@@ -83,7 +83,6 @@ extern void avr_output_bld (rtx operands[], int bit_nr);
extern void avr_output_addr_vec_elt (FILE *stream, int value);
extern const char *avr_out_sbxx_branch (rtx insn, rtx operands[]);
-extern enum reg_class preferred_reload_class (rtx x, enum reg_class rclass);
extern int extra_constraint_Q (rtx x);
extern int adjust_insn_length (rtx insn, int len);
extern rtx avr_libcall_value (enum machine_mode mode);
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index c1cd778..c55e432 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -5840,16 +5840,6 @@ avr_function_value (const_tree type,
return gen_rtx_REG (BLKmode, RET_REGISTER + 2 - offs);
}
-/* Places additional restrictions on the register class to
- use when it is necessary to copy value X into a register
- in class CLASS. */
-
-enum reg_class
-preferred_reload_class (rtx x ATTRIBUTE_UNUSED, enum reg_class rclass)
-{
- return rclass;
-}
-
int
test_hard_reg_class (enum reg_class rclass, rtx x)
{
diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h
index 3c7c4a4..b0578d4 100644
--- a/gcc/config/avr/avr.h
+++ b/gcc/config/avr/avr.h
@@ -329,8 +329,6 @@ enum reg_class {
#define REGNO_OK_FOR_INDEX_P(NUM) 0
-#define PREFERRED_RELOAD_CLASS(X, CLASS) preferred_reload_class(X,CLASS)
-
#define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true
#define CLASS_MAX_NREGS(CLASS, MODE) class_max_nregs (CLASS, MODE)
diff --git a/gcc/config/crx/crx.h b/gcc/config/crx/crx.h
index d4bf274..b12c428 100644
--- a/gcc/config/crx/crx.h
+++ b/gcc/config/crx/crx.h
@@ -229,8 +229,6 @@ enum reg_class
#define REGNO_OK_FOR_INDEX_P(REGNO) REGNO_OK_FOR_BASE_P(REGNO)
-#define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
-
#define SECONDARY_RELOAD_CLASS(CLASS, MODE, X) \
crx_secondary_reload_class (CLASS, MODE, X)
diff --git a/gcc/config/fr30/fr30.h b/gcc/config/fr30/fr30.h
index ed675b1..93e4e8d 100644
--- a/gcc/config/fr30/fr30.h
+++ b/gcc/config/fr30/fr30.h
@@ -384,24 +384,6 @@ enum reg_class
will reload one or both registers only if neither labeling works. */
#define REGNO_OK_FOR_INDEX_P(NUM) 1
-/* A C expression that places additional restrictions on the register class to
- use when it is necessary to copy value X into a register in class CLASS.
- The value is a register class; perhaps CLASS, or perhaps another, smaller
- class. On many machines, the following definition is safe:
-
- #define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
-
- Sometimes returning a more restrictive class makes better code. For
- example, on the 68000, when X is an integer constant that is in range for a
- `moveq' instruction, the value of this macro is always `DATA_REGS' as long
- as CLASS includes the data registers. Requiring a data register guarantees
- that a `moveq' will be used.
-
- If X is a `const_double', by returning `NO_REGS' you can force X into a
- memory constant. This is useful on certain machines where immediate
- floating values cannot be loaded into certain kinds of registers. */
-#define PREFERRED_RELOAD_CLASS(X, CLASS) CLASS
-
/* A C expression for the maximum number of consecutive registers of
class CLASS needed to hold a value of mode MODE.
diff --git a/gcc/config/frv/frv.h b/gcc/config/frv/frv.h
index d3d6320..9ce01f9 100644
--- a/gcc/config/frv/frv.h
+++ b/gcc/config/frv/frv.h
@@ -1201,26 +1201,6 @@ extern enum reg_class reg_class_from_letter[];
? GPR_P (NUM) \
: (reg_renumber [NUM] >= 0 && GPR_P (reg_renumber [NUM])))
-/* A C expression that places additional restrictions on the register class to
- use when it is necessary to copy value X into a register in class CLASS.
- The value is a register class; perhaps CLASS, or perhaps another, smaller
- class. On many machines, the following definition is safe:
-
- #define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
-
- Sometimes returning a more restrictive class makes better code. For
- example, on the 68000, when X is an integer constant that is in range for a
- `moveq' instruction, the value of this macro is always `DATA_REGS' as long
- as CLASS includes the data registers. Requiring a data register guarantees
- that a `moveq' will be used.
-
- If X is a `const_double', by returning `NO_REGS' you can force X into a
- memory constant. This is useful on certain machines where immediate
- floating values cannot be loaded into certain kinds of registers.
-
- This declaration must be present. */
-#define PREFERRED_RELOAD_CLASS(X, CLASS) CLASS
-
#define SECONDARY_INPUT_RELOAD_CLASS(CLASS, MODE, X) \
frv_secondary_reload_class (CLASS, MODE, X)
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index 7d7437f..12fbe63 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -455,13 +455,6 @@ enum reg_class {
((C) == 'G' ? (VALUE) == CONST0_RTX (SFmode) \
: 0)
-/* Given an rtx X being reloaded into a reg required to be
- in class CLASS, return the class of reg to actually use.
- In general this is just CLASS; but on some machines
- in some cases it is preferable to use a more restrictive class. */
-
-#define PREFERRED_RELOAD_CLASS(X, CLASS) (CLASS)
-
/* Return the maximum number of consecutive registers
needed to represent mode MODE in a register of class CLASS. */
diff --git a/gcc/config/lm32/lm32.h b/gcc/config/lm32/lm32.h
index b0c2d59..52b492c 100644
--- a/gcc/config/lm32/lm32.h
+++ b/gcc/config/lm32/lm32.h
@@ -227,8 +227,6 @@ enum reg_class
#define REGNO_OK_FOR_INDEX_P(REGNO) 0
-#define PREFERRED_RELOAD_CLASS(X,CLASS) (CLASS)
-
/*----------------------------------------*/
/* Stack Layout and Calling Conventions. */
/*----------------------------------------*/
diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h
index d767cb9..9522f57 100644
--- a/gcc/config/m32r/m32r.h
+++ b/gcc/config/m32r/m32r.h
@@ -653,12 +653,6 @@ extern enum reg_class m32r_regno_reg_class[FIRST_PSEUDO_REGISTER];
#define REGNO_OK_FOR_INDEX_P(REGNO) REGNO_OK_FOR_BASE_P(REGNO)
-/* Given an rtx X being reloaded into a reg required to be
- in class CLASS, return the class of reg to actually use.
- In general this is just CLASS; but on some machines
- in some cases it is preferable to use a more restrictive class. */
-#define PREFERRED_RELOAD_CLASS(X,CLASS) (CLASS)
-
/* Return the maximum number of consecutive registers
needed to represent mode MODE in a register of class CLASS. */
#define CLASS_MAX_NREGS(CLASS, MODE) \
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h
index 1445202..30170b4 100644
--- a/gcc/config/moxie/moxie.h
+++ b/gcc/config/moxie/moxie.h
@@ -201,11 +201,6 @@ enum reg_class
#define CLASS_MAX_NREGS(CLASS, MODE) \
((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
-/* A C expression that places additional restrictions on the register
- class to use when it is necessary to copy value X into a register
- in class CLASS. */
-#define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
-
/* The Overall Framework of an Assembler File */
#undef ASM_SPEC
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index 08d63e5..a2a822c 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -1665,7 +1665,7 @@ emit_move_sequence (rtx *operands, enum machine_mode mode, rtx scratch_reg)
Use scratch_reg to hold the address of the memory location.
- The proper fix is to change PREFERRED_RELOAD_CLASS to return
+ The proper fix is to change TARGET_PREFERRED_RELOAD_CLASS to return
NO_REGS when presented with a const_int and a register class
containing only FP registers. Doing so unfortunately creates
more problems than it solves. Fix this for 2.5. */
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index e637e68..47fc136 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -491,12 +491,6 @@ extern struct rtx_def *hppa_pic_save_rtx (void);
/* True if register is floating-point. */
#define FP_REGNO_P(N) ((N) >= FP_REG_FIRST && (N) <= FP_REG_LAST)
-/* Given an rtx X being reloaded into a reg required to be
- in class CLASS, return the class of reg to actually use.
- In general this is just CLASS; but on some machines
- in some cases it is preferable to use a more restrictive class. */
-#define PREFERRED_RELOAD_CLASS(X,CLASS) (CLASS)
-
#define MAYBE_FP_REG_CLASS_P(CLASS) \
reg_classes_intersect_p ((CLASS), FP_REGS)
diff --git a/gcc/config/picochip/picochip.h b/gcc/config/picochip/picochip.h
index 61571d6..95d9d37 100644
--- a/gcc/config/picochip/picochip.h
+++ b/gcc/config/picochip/picochip.h
@@ -355,8 +355,6 @@ extern const enum reg_class picochip_regno_reg_class[FIRST_PSEUDO_REGISTER];
#define REGNO_OK_FOR_INDEX_P(REGNO) 0
-#define PREFERRED_RELOAD_CLASS(X, CLASS) CLASS
-
#define CLASS_MAX_NREGS(CLASS, MODE) picochip_class_max_nregs(CLASS, MODE)
diff --git a/gcc/config/rx/rx.h b/gcc/config/rx/rx.h
index 7da4de1..544ed62 100644
--- a/gcc/config/rx/rx.h
+++ b/gcc/config/rx/rx.h
@@ -268,8 +268,6 @@ enum reg_class
{ 7, 10, 11, 12, 13, 14, 4, 3, 2, 1, 9, 8, 6, 5, 15 \
}
-#define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
-
#define REGNO_IN_RANGE(REGNO, MIN, MAX) \
(IN_RANGE ((REGNO), (MIN), (MAX)) \
|| (reg_renumber != NULL \
diff --git a/gcc/config/spu/spu.h b/gcc/config/spu/spu.h
index f1b8cab..98d2f24 100644
--- a/gcc/config/spu/spu.h
+++ b/gcc/config/spu/spu.h
@@ -225,8 +225,6 @@ enum reg_class {
#define INT_REG_OK_FOR_BASE_P(X,STRICT) \
((!(STRICT) || REGNO_OK_FOR_BASE_P (REGNO (X))))
-#define PREFERRED_RELOAD_CLASS(X,CLASS) (CLASS)
-
#define CLASS_MAX_NREGS(CLASS, MODE) \
((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h
index 2afa3cb..56df96e 100644
--- a/gcc/config/v850/v850.h
+++ b/gcc/config/v850/v850.h
@@ -376,13 +376,6 @@ enum reg_class
#define REGNO_OK_FOR_INDEX_P(regno) 0
-/* Given an rtx X being reloaded into a reg required to be
- in class CLASS, return the class of reg to actually use.
- In general this is just CLASS; but on some machines
- in some cases it is preferable to use a more restrictive class. */
-
-#define PREFERRED_RELOAD_CLASS(X,CLASS) (CLASS)
-
/* Return the maximum number of consecutive registers
needed to represent mode MODE in a register of class CLASS. */
diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h
index 35965dc..272dfbb 100644
--- a/gcc/config/vax/vax.h
+++ b/gcc/config/vax/vax.h
@@ -258,13 +258,6 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
#define INDEX_REG_CLASS ALL_REGS
#define BASE_REG_CLASS ALL_REGS
-/* Given an rtx X being reloaded into a reg required to be
- in class CLASS, return the class of reg to actually use.
- In general this is just CLASS; but on some machines
- in some cases it is preferable to use a more restrictive class. */
-
-#define PREFERRED_RELOAD_CLASS(X,CLASS) (CLASS)
-
/* Return the maximum number of consecutive registers
needed to represent mode MODE in a register of class CLASS. */
/* On the VAX, this is always the size of MODE in words,