]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
authorPaolo Bonzini <bonzini@gnu.org>
Fri, 15 May 2009 07:12:03 +0000 (07:12 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Fri, 15 May 2009 07:12:03 +0000 (07:12 +0000)
2009-05-15  Paolo Bonzini  <bonzini@gnu.org>

        * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
        * config/frv/frv.c: Likewise.
        * config/s390/s390.c: Likewise.
        * config/sparc/sparc.h: Likewise.
        * config/i386/i386.h: Likewise.
        * config/i386/i386.c: Likewise.
        * config/crx/crx.c: Likewise.
        * config/m68hc11/m68hc11.h: Likewise.
        * config/iq2000/iq2000.c: Likewise.
        * config/mn10300/mn10300.h: Likewise.
        * config/mn10300/mn10300.c: Likewise.
        * config/m68k/m68k.c: Likewise.
        * config/rs6000/rs6000.c: Likewise.
        * config/rs6000/xcoff.h: Likewise.
        * config/rs6000/linux64.h: Likewise.
        * config/rs6000/sysv4.h: Likewise.
        * config/score/score3.c: Likewise.
        * config/score/score7.c: Likewise.
        * config/score/score.c: Likewise.
        * config/arm/arm.md: Likewise.
        * config/mips/mips.c: Likewise.
        * config/mips/mips.md: Likewise.
        * config/bfin/bfin.h: Likewise.
        * config/pa/pa.c: Likewise.
        * config/pa/constraints.md: Likewise.

        * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
        * config/pdp11/pdp11.c (legitimate_address_p): Delete.
        * config/pdp11/pdp11.h: Use memory_address_p instead.

From-SVN: r147560

28 files changed:
gcc/ChangeLog
gcc/config/arm/arm.md
gcc/config/bfin/bfin.h
gcc/config/crx/crx.c
gcc/config/frv/frv.c
gcc/config/frv/frv.h
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/config/iq2000/iq2000.c
gcc/config/m68hc11/m68hc11.h
gcc/config/m68k/m68k.c
gcc/config/mips/mips.c
gcc/config/mips/mips.md
gcc/config/mn10300/mn10300.c
gcc/config/pa/constraints.md
gcc/config/pa/pa.c
gcc/config/pdp11/pdp11-protos.h
gcc/config/pdp11/pdp11.c
gcc/config/pdp11/pdp11.h
gcc/config/rs6000/linux64.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/sysv4.h
gcc/config/rs6000/xcoff.h
gcc/config/s390/s390.c
gcc/config/score/score.c
gcc/config/score/score3.c
gcc/config/score/score7.c
gcc/config/sparc/sparc.h

index 0cd4a41e1596146a24b537f87f2cd2bd55df8621..b089b1d4cd1013e09e759f048e8c9a1ce280542b 100644 (file)
@@ -1,3 +1,35 @@
+2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
+
+        * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
+        * config/frv/frv.c: Likewise.
+        * config/s390/s390.c: Likewise.
+        * config/sparc/sparc.h: Likewise.
+        * config/i386/i386.h: Likewise.
+        * config/i386/i386.c: Likewise.
+        * config/crx/crx.c: Likewise.
+        * config/m68hc11/m68hc11.h: Likewise.
+        * config/iq2000/iq2000.c: Likewise.
+        * config/mn10300/mn10300.h: Likewise.
+        * config/mn10300/mn10300.c: Likewise.
+        * config/m68k/m68k.c: Likewise.
+        * config/rs6000/rs6000.c: Likewise.
+        * config/rs6000/xcoff.h: Likewise.
+        * config/rs6000/linux64.h: Likewise.
+        * config/rs6000/sysv4.h: Likewise.
+        * config/score/score3.c: Likewise.
+        * config/score/score7.c: Likewise.
+        * config/score/score.c: Likewise.
+        * config/arm/arm.md: Likewise.
+        * config/mips/mips.c: Likewise.
+        * config/mips/mips.md: Likewise.
+        * config/bfin/bfin.h: Likewise.
+        * config/pa/pa.c: Likewise.
+        * config/pa/constraints.md: Likewise.
+
+        * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
+        * config/pdp11/pdp11.c (legitimate_address_p): Delete.
+        * config/pdp11/pdp11.h: Use memory_address_p instead.
+
 2009-05-14  Ian Lance Taylor  <iant@google.com>
 
        * passes.c (finish_optimization_passes): Change i to int.
index b18173e1affdc21cf4cfb575cb0950bf481b2e92..6f4f64cf6c198b0c808d4fc5c9bc4658a45855f9 100644 (file)
 
           /* ??? We shouldn't really get invalid addresses here, but this can
             happen if we are passed a SP (never OK for HImode/QImode) or 
-            virtual register (rejected by GO_IF_LEGITIMATE_ADDRESS for 
-            HImode/QImode) relative address.  */
+            virtual register (also rejected as illegitimate for HImode/QImode)
+            relative address.  */
           /* ??? This should perhaps be fixed elsewhere, for instance, in
             fixup_stack_1, by checking for other kinds of invalid addresses,
             e.g. a bare reference to a virtual register.  This may confuse the
        {
           /* ??? We shouldn't really get invalid addresses here, but this can
             happen if we are passed a SP (never OK for HImode/QImode) or
-            virtual register (rejected by GO_IF_LEGITIMATE_ADDRESS for
-            HImode/QImode) relative address.  */
+            virtual register (also rejected as illegitimate for HImode/QImode)
+            relative address.  */
           /* ??? This should perhaps be fixed elsewhere, for instance, in
             fixup_stack_1, by checking for other kinds of invalid addresses,
             e.g. a bare reference to a virtual register.  This may confuse the
index 7cd6756309bd225c777441be3af7601fc2fc9c61..29e4f9108429255e5684a6897275fd372316660b 100644 (file)
@@ -908,7 +908,7 @@ typedef struct {
 
 /*   A number, the maximum number of registers that can appear in a
      valid memory address.  Note that it is up to you to specify a
-     value equal to the maximum number that `GO_IF_LEGITIMATE_ADDRESS'
+     value equal to the maximum number that `TARGET_LEGITIMATE_ADDRESS_P'
      would ever accept. */
 #define MAX_REGS_PER_ADDRESS 1
 
index c45189eb0d36ad2ef03bc1eacc74d239b24edcb2..0ea5fbca7a1a9249f1ad391943973b13c26e958e 100644 (file)
@@ -545,7 +545,7 @@ crx_function_arg_regno_p (int n)
 /* ADDRESSING MODES */
 /* ---------------- */
 
-/* Implements the macro GO_IF_LEGITIMATE_ADDRESS defined in crx.h.
+/* Implements the hook for TARGET_LEGITIMATE_ADDRESS_P defined in crx.h.
  * The following addressing modes are supported on CRX:
  *
  * Relocations         --> const | symbol_ref | label_ref
index 1db3496b5be70396d5f832c0d8c56166f05c9b63..c7e717e05ae501f8668f88df926e8bfc9969ce8b 100644 (file)
@@ -3327,12 +3327,6 @@ frv_regno_ok_for_base_p (int regno, int strict_p)
    conditional to define the strict variant in that case and the non-strict
    variant otherwise.
 
-   Subroutines to check for acceptable registers for various purposes (one for
-   base registers, one for index registers, and so on) are typically among the
-   subroutines used to define `GO_IF_LEGITIMATE_ADDRESS'.  Then only these
-   subroutine macros need have two variants; the higher levels of macros may be
-   the same whether strict or not.
-
    Normally, constant addresses which are the sum of a `symbol_ref' and an
    integer are stored inside a `const' RTX to mark them as constant.
    Therefore, there is no need to recognize such sums specifically as
@@ -3343,22 +3337,6 @@ frv_regno_ok_for_base_p (int regno, int strict_p)
    are not marked with `const'.  It assumes that a naked `plus' indicates
    indexing.  If so, then you *must* reject such naked constant sums as
    illegitimate addresses, so that none of them will be given to
-   `PRINT_OPERAND_ADDRESS'.
-
-   On some machines, whether a symbolic address is legitimate depends on the
-   section that the address refers to.  On these machines, define the macro
-   `ENCODE_SECTION_INFO' to store the information into the `symbol_ref', and
-   then check for it here.  When you see a `const', you will have to look
-   inside it to find the `symbol_ref' in order to determine the section.
-
-   The best way to modify the name string is by adding text to the beginning,
-   with suitable punctuation to prevent any ambiguity.  Allocate the new name
-   in `saveable_obstack'.  You will have to modify `ASM_OUTPUT_LABELREF' to
-   remove and decode the added text and output the name accordingly, and define
-   `(* targetm.strip_name_encoding)' to access the original name string.
-
-   You can check the information stored here into the `symbol_ref' in the
-   definitions of the macros `GO_IF_LEGITIMATE_ADDRESS' and
    `PRINT_OPERAND_ADDRESS'.  */
 
 int
@@ -3484,7 +3462,7 @@ frv_legitimate_address_p_1 (enum machine_mode mode,
 
   if (TARGET_DEBUG_ADDR)
     {
-      fprintf (stderr, "\n========== GO_IF_LEGITIMATE_ADDRESS, mode = %s, result = %d, addresses are %sstrict%s\n",
+      fprintf (stderr, "\n========== legitimate_address_p, mode = %s, result = %d, addresses are %sstrict%s\n",
               GET_MODE_NAME (mode), ret, (strict_p) ? "" : "not ",
               (condexec_p) ? ", inside conditional code" : "");
       debug_rtx (x);
index e605bb21a8e8a7e70b04e07633c6946126b8fc04..15047e3c7ed5223bdded3947da29bfec5866268a 100644 (file)
@@ -2022,7 +2022,7 @@ __asm__("\n"                                                              \
 
 /* A number, the maximum number of registers that can appear in a valid memory
    address.  Note that it is up to you to specify a value equal to the maximum
-   number that `GO_IF_LEGITIMATE_ADDRESS' would ever accept.  */
+   number that `TARGET_LEGITIMATE_ADDRESS_P' would ever accept.  */
 #define MAX_REGS_PER_ADDRESS 2
 
 /* A C expression that is nonzero if X (assumed to be a `reg' RTX) is valid for
index 593ea84ffa65d507ce0e83c29371bab414d8d2ed..743618c4dea81672ce161d9756486662dad74f0a 100644 (file)
@@ -9258,9 +9258,9 @@ legitimate_pic_address_disp_p (rtx disp)
   return 0;
 }
 
-/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression that is a valid
-   memory address for an instruction.  The MODE argument is the machine mode
-   for the MEM expression that wants to use this address.
+/* Recognizes RTL expressions that are valid memory addresses for an
+   instruction.  The MODE argument is the machine mode for the MEM
+   expression that wants to use this address.
 
    It only recognizes address in canonical form.  LEGITIMIZE_ADDRESS should
    convert common non-canonical forms to canonical form so that they will
@@ -9527,7 +9527,7 @@ ix86_GOT_alias_set (void)
       differentiate them from global data objects.  The returned
       address is the PIC reg + an unspec constant.
 
-   GO_IF_LEGITIMATE_ADDRESS rejects symbolic references unless the PIC
+   TARGET_LEGITIMATE_ADDRESS_P rejects symbolic references unless the PIC
    reg also appears in the address.  */
 
 static rtx
@@ -10011,9 +10011,6 @@ legitimize_dllimport_symbol (rtx symbol, bool want_reg)
    OLDX is the address as it was before break_out_memory_refs was called.
    In some cases it is useful to look at this to decide what needs to be done.
 
-   MODE and WIN are passed so that this macro can use
-   GO_IF_LEGITIMATE_ADDRESS.
-
    It is always safe for this macro to do nothing.  It exists to recognize
    opportunities to optimize the output.
 
index 0a9e8a667329ba85a1b61a3ee4b36efa7dd5fb42..f41ed7db665c242a1b6e708cac2b500a15e40208 100644 (file)
@@ -1803,12 +1803,12 @@ typedef struct ix86_args {
 #define REG_OK_FOR_BASE_P(X)   REG_OK_FOR_BASE_STRICT_P (X)
 #endif
 
-/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression
+/* TARGET_LEGITIMATE_ADDRESS_P recognizes an RTL expression
    that is a valid memory address for an instruction.
    The MODE argument is the machine mode for the MEM expression
    that wants to use this address.
 
-   The other macros defined here are used only in GO_IF_LEGITIMATE_ADDRESS,
+   The other macros defined here are used only in TARGET_LEGITIMATE_ADDRESS_P,
    except for CONSTANT_ADDRESS_P which is usually machine-independent.
 
    See legitimize_pic_address in i386.c for details as to what
index d61ec3f7192fdb2051f847a86a7ab9b60e11e628..5ba18886778c17875596271c010239661a13bc3b 100644 (file)
@@ -258,7 +258,7 @@ iq2000_legitimate_address_p (enum machine_mode mode, rtx xinsn, bool strict)
 {
   if (TARGET_DEBUG_A_MODE)
     {
-      GO_PRINTF2 ("\n========== GO_IF_LEGITIMATE_ADDRESS, %sstrict\n",
+      GO_PRINTF2 ("\n========== legitimate_address_p, %sstrict\n",
                  strict ? "" : "not ");
       GO_DEBUG_RTX (xinsn);
     }
index a394403752a8cd117c56f2d1a17f86b9cb6d333a..e795485f9c18b77bee4f4882fb6f9f0edf7eeded 100644 (file)
@@ -1132,7 +1132,7 @@ extern unsigned char m68hc11_reg_valid_for_index[FIRST_PSEUDO_REGISTER];
 /* Maximum number of registers that can appear in a valid memory address */
 #define MAX_REGS_PER_ADDRESS   2
 
-/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression that is a
+/* TARGET_LEGITIMATE_ADDRESS_P recognizes an RTL expression that is a
    valid memory address for an instruction. The MODE argument is the
    machine mode for the MEM expression that wants to use this address.  */
 
index ce028a02a6608ef0fb638d434a86e4a158a7fa81..3e463023625e21eb54f4dbae5a0ebc6f5f177278 100644 (file)
@@ -4269,7 +4269,7 @@ strict_low_part_peephole_ok (enum machine_mode mode, rtx first_insn,
    simple fact that the m68k does not allow a pc-relative addressing
    mode as a destination.  gcc does not distinguish between source and
    destination addresses.  Hence, if we claim that pc-relative address
-   modes are valid, e.g. GO_IF_LEGITIMATE_ADDRESS accepts them, then we
+   modes are valid, e.g. TARGET_LEGITIMATE_ADDRESS_P accepts them, then we
    end up with invalid code.  To get around this problem, we left
    pc-relative modes as invalid addresses, and then added special
    predicates and constraints to accept them.
index 36521ca8ceba9695e576ec1ec56d8049daeb7163..ed10c391971c0b33626f3f652ecb4be061fbc387 100644 (file)
@@ -2140,7 +2140,7 @@ mips_stack_address_p (rtx x, enum machine_mode mode)
 
 /* Return true if ADDR matches the pattern for the LWXS load scaled indexed
    address instruction.  Note that such addresses are not considered
-   legitimate in the GO_IF_LEGITIMATE_ADDRESS sense, because their use
+   legitimate in the TARGET_LEGITIMATE_ADDRESS_P sense, because their use
    is so restricted.  */
 
 static bool
index 3b44a84104be0904c830cc06519270065fe91b27..78539cbe49db88195363954ef4892ff5c9cc7c00 100644 (file)
 ;; instructions will still work correctly.
 
 ;; ??? Perhaps it would be better to support these instructions by
-;; modifying GO_IF_LEGITIMATE_ADDRESS and friends.  However, since
+;; modifying TARGET_LEGITIMATE_ADDRESS_P and friends.  However, since
 ;; these instructions can only be used to load and store floating
 ;; point registers, that would probably cause trouble in reload.
 
index e32f3766d646f6e0e24ef7b7769884b9bfc7f4df..608f8a0fa35ed1555c02b806b88e4925c63e5c3f 100644 (file)
@@ -1794,9 +1794,6 @@ symbolic_operand (register rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
    OLDX is the address as it was before break_out_memory_refs was called.
    In some cases it is useful to look at this to decide what needs to be done.
 
-   MODE and WIN are passed so that this macro can use
-   GO_IF_LEGITIMATE_ADDRESS.
-
    Normally it is always safe for this macro to do nothing.  It exists to
    recognize opportunities to optimize the output.
 
index fdf3c9884101459788312a86f2e73aa5dd5fa494..c1f3d5cd3f354b293d50d820a374d06c5ec52772 100644 (file)
                                          ? SFmode : DFmode),
                                         XEXP (op, 0))")))
 
-;; We could allow short displacements but GO_IF_LEGITIMATE_ADDRESS
+;; We could allow short displacements but TARGET_LEGITIMATE_ADDRESS_P
 ;; can't tell when a long displacement is valid.
 (define_constraint "W"
   "A register indirect memory operand."
index 882fac1aad45b856d51f3598e793ca5c40899c82..a55f2ec01478ac3d7866ee836dad11c2eded2887 100644 (file)
@@ -871,9 +871,6 @@ legitimize_tls_address (rtx addr)
    OLDX is the address as it was before break_out_memory_refs was called.
    In some cases it is useful to look at this to decide what needs to be done.
 
-   MODE and WIN are passed so that this macro can use
-   GO_IF_LEGITIMATE_ADDRESS.
-
    It is always safe for this macro to do nothing.  It exists to recognize
    opportunities to optimize the output.
 
index 1ed272e508146aac51b1eaa6772bb34b6907c3bf..2c4bd22fde66555d49aec6e22e230d819043da33 100644 (file)
@@ -26,7 +26,6 @@ extern int expand_shift_operand (rtx, enum machine_mode);
 extern int immediate15_operand (rtx, enum machine_mode);
 extern int simple_memory_operand (rtx, enum machine_mode);
 
-extern int legitimate_address_p (enum machine_mode, rtx);
 extern int legitimate_const_double_p (rtx);
 extern void notice_update_cc_on_set (rtx, rtx);
 extern void output_addr_const_pdp11 (FILE *, rtx);
index 8f2d78fe555ca5c337d9fb1925bc4d3a25da8f9c..b46760897a512aedb14d98a3984101833f6df473 100644 (file)
@@ -1606,20 +1606,6 @@ output_block_move(rtx *operands)
     return "";
 }
 
-int
-legitimate_address_p (enum machine_mode mode, rtx address)
-{
-/* #define REG_OK_STRICT */
-    GO_IF_LEGITIMATE_ADDRESS(mode, address, win);
-    
-    return 0;
-    
-  win:
-    return 1;
-
-/* #undef REG_OK_STRICT */
-}
-
 /* This function checks whether a real value can be encoded as
    a literal, i.e., addressing mode 27.  In that mode, real values
    are one word values, so the remaining 48 bits have to be zero.  */
index 437e2b81e2e1eba0cbedde88b41ab622d8a9ff57..ac678f5cb5b683f44b9ad61a5bb76de383df9c19 100644 (file)
@@ -371,7 +371,7 @@ enum reg_class { NO_REGS, MUL_REGS, GENERAL_REGS, LOAD_FPU_REGS, NO_LOAD_FPU_REG
 
 #define EXTRA_CONSTRAINT(OP,CODE)                                      \
   ((GET_CODE (OP) != MEM) ? 0                                          \
-   : !legitimate_address_p (GET_MODE (OP), XEXP (OP, 0)) ? 0           \
+   : !memory_address_p (GET_MODE (OP), XEXP (OP, 0)) ? 0               \
    : ((CODE) == 'Q')     ? !simple_memory_operand (OP, GET_MODE (OP))  \
    : ((CODE) == 'R')     ? simple_memory_operand (OP, GET_MODE (OP))   \
    : 0)
index 1b4a36c030dbf994daa2aa7478dd465fcd54e232..c3193dcfe0de1fe82b6a2b0a04e97fce3842c4fc 100644 (file)
@@ -471,9 +471,8 @@ extern int dot_symbols;
    we also do this for floating-point constants.  We actually can only
    do this if the FP formats of the target and host machines are the
    same, but we can't check that since not every file that uses
-   GO_IF_LEGITIMATE_ADDRESS_P includes real.h.  We also do this when
-   we can write the entry into the TOC and the entry is not larger
-   than a TOC entry.  */
+   the macros includes real.h.  We also do this when we can write the
+   entry into the TOC and the entry is not larger than a TOC entry.  */
 
 #undef  ASM_OUTPUT_SPECIAL_POOL_ENTRY_P
 #define ASM_OUTPUT_SPECIAL_POOL_ENTRY_P(X, MODE)                       \
index a308731b291c5112ca2977e0e30371696997d4eb..be2eca084b1f9d4eb6e7b80893a50f408767c876 100644 (file)
@@ -3794,8 +3794,6 @@ legitimate_lo_sum_address_p (enum machine_mode mode, rtx x, int strict)
    called.  In some cases it is useful to look at this to decide what
    needs to be done.
 
-   MODE is passed so that this function can use GO_IF_LEGITIMATE_ADDRESS.
-
    It is always safe for this function to do nothing.  It exists to
    recognize opportunities to optimize the output.
 
@@ -4390,7 +4388,7 @@ rs6000_legitimize_reload_address (rtx x, enum machine_mode mode,
   return x;
 }
 
-/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression
+/* TARGET_LEGITIMATE_ADDRESS_P recognizes an RTL expression
    that is a valid memory address for an instruction.
    The MODE argument is the machine mode for the MEM expression
    that wants to use this address.
index e8d516268ef97aa6dba58cdc35dee7aa5dfb446b..611c0d299c8f37e8452bf36795e1c633d382012a 100644 (file)
@@ -387,8 +387,8 @@ do {                                                                        \
    containing one of them.  If -mfp-in-toc (the default), we also do
    this for floating-point constants.  We actually can only do this
    if the FP formats of the target and host machines are the same, but
-   we can't check that since not every file that uses
-   GO_IF_LEGITIMATE_ADDRESS_P includes real.h.
+   we can't check that since not every file that uses these target macros
+   includes real.h.
 
    Unlike AIX, we don't key off of -mminimal-toc, but instead do not
    allow floating point constants in the TOC if -mrelocatable.  */
index 76bbf4044d2fd69371416087bff723ba05f70cc8..6560f319a25aaa7e0f4bc1d3698507672a885a3b 100644 (file)
    or a CONST containing one of them.  If -mfp-in-toc (the default),
    we also do this for floating-point constants.  We actually can only
    do this if the FP formats of the target and host machines are the
-   same, but we can't check that since not every file that uses
-   GO_IF_LEGITIMATE_ADDRESS_P includes real.h.  We also do this when
-   we can write the entry into the TOC and the entry is not larger
-   than a TOC entry.  */
+   same, but we can't check that since not every file that uses these
+   target macros includes real.h.  We also do this when we can write the
+   entry into the TOC and the entry is not larger than a TOC entry.  */
 
 #define ASM_OUTPUT_SPECIAL_POOL_ENTRY_P(X, MODE)                       \
   (TARGET_TOC                                                          \
index 7f9dd132fe236fb2b7e9b619afcca5ee218b1288..b1cfad1adfec3d282164cfa3fea9a2e34dc62106 100644 (file)
@@ -3190,7 +3190,7 @@ s390_load_address (rtx dst, rtx src)
       differentiate them from global data objects.  The returned
       address is the PIC reg + an unspec constant.
 
-   GO_IF_LEGITIMATE_ADDRESS rejects symbolic references unless the PIC
+   TARGET_LEGITIMIZE_ADDRESS_P rejects symbolic references unless the PIC
    reg also appears in the address.  */
 
 rtx
index 0b737459765a36876ed5741a04910f232d2cf3ad..b75f3cfaebfac3875bb50f93e65b73ea6928d355 100644 (file)
@@ -533,7 +533,7 @@ score_regno_mode_ok_for_base_p (int regno, int strict)
   gcc_unreachable ();
 }
 
-/* Implement GO_IF_LEGITIMATE_ADDRESS macro.  */
+/* Implement TARGET_LEGITIMIZE_ADDRESS_P.  */
 bool
 score_legitimate_address_p (enum machine_mode mode, rtx x, bool strict)
 {
index 4ac7e60d88cb3120009405faa96d5206bb557c42..4258d29e525792fc4217108eb60a339372369432 100644 (file)
@@ -910,7 +910,7 @@ score3_regno_mode_ok_for_base_p (int regno, int strict)
   return GP_REG_P (regno);
 }
 
-/* Implement GO_IF_LEGITIMATE_ADDRESS macro.  */
+/* Implement TARGET_LEGITIMATE_ADDRESS_P macro.  */
 bool
 score3_legitimate_address_p (enum machine_mode mode, rtx x, bool strict)
 {
index c18d03b2675056e473c523d85a6eff310181d55c..9ab6ebd3004b3a6dbf3f83750dd551fc2b9972db 100644 (file)
@@ -901,7 +901,7 @@ score7_regno_mode_ok_for_base_p (int regno, int strict)
   return GP_REG_P (regno);
 }
 
-/* Implement GO_IF_LEGITIMATE_ADDRESS macro.  */
+/* Implement TARGET_LEGITIMATE_ADDRESS_P macro.  */
 bool
 score7_legitimate_address_p (enum machine_mode mode, rtx x, bool strict)
 {
index 1aef109b113ffb5e4626632c3032a0b69ed7a8c1..406ee68cf2f96cef97c02bdcac1aff2c2cf15ef9 100644 (file)
@@ -1845,15 +1845,9 @@ do {                                                                     \
 #define USE_AS_OFFSETABLE_LO10 0
 #endif
 \f
-/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression
-   that is a valid memory address for an instruction.
-   The MODE argument is the machine mode for the MEM expression
-   that wants to use this address.
-
-   On SPARC, the actual legitimate addresses must be REG+REG or REG+SMALLINT
-   ordinarily.  This changes a bit when generating PIC.
-
-   If you change this, execute "rm explow.o recog.o reload.o".  */
+/* On SPARC, the actual legitimate addresses must be REG+REG or REG+SMALLINT
+   ordinarily.  This changes a bit when generating PIC.  The details are
+   in sparc.c's implementation of TARGET_LEGITIMATE_ADDRESS_P.  */
 
 #define SYMBOLIC_CONST(X) symbolic_operand (X, VOIDmode)