* 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
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.
|| 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
@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.