gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Sep 2008 18:28:24 +0000 (18:28 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Sep 2008 18:28:24 +0000 (18:28 +0000)
* doc/tm.texi (FIND_BASE_TERM): Expand documentation.
* config/i386/i386.c (ix86_find_base_term): Don't check for
SYMBOL_REF and LABEL_REF.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140610 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/doc/tm.texi

index ce00f84..ad8ac8d 100644 (file)
@@ -1,5 +1,11 @@
 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
 
+       * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
+       * config/i386/i386.c (ix86_find_base_term): Don't check for
+       SYMBOL_REF and LABEL_REF.
+
+2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
+
        * config/i386/i386.c (ix86_delegitimize_address): Wrap the
        constant PLUS in a CONST.
 
index 5872124..024e433 100644 (file)
@@ -10077,22 +10077,10 @@ ix86_find_base_term (rtx x)
          || XINT (term, 1) != UNSPEC_GOTPCREL)
        return x;
 
-      term = XVECEXP (term, 0, 0);
-
-      if (GET_CODE (term) != SYMBOL_REF
-         && GET_CODE (term) != LABEL_REF)
-       return x;
-
-      return term;
+      return XVECEXP (term, 0, 0);
     }
 
-  term = ix86_delegitimize_address (x);
-
-  if (GET_CODE (term) != SYMBOL_REF
-      && GET_CODE (term) != LABEL_REF)
-    return x;
-
-  return term;
+  return ix86_delegitimize_address (x);
 }
 \f
 static void
index dbff576..634fb0d 100644 (file)
@@ -5353,8 +5353,10 @@ preserve functionality of inline assembly constructs using the
 @end defmac
 
 @defmac FIND_BASE_TERM (@var{x})
-A C expression to determine the base term of address @var{x}.
-This macro is used in only one place: `find_base_term' in alias.c.
+A C expression to determine the base term of address @var{x},
+or to provide a simplified version of @var{x} from which @file{alias.c}
+can easily find the base term.  This macro is used in only one place:
+@code{find_base_term} in @file{alias.c}.
 
 It is always safe for this macro to not be defined.  It exists so
 that alias analysis can understand machine-dependent addresses.