tm.texi (FIND_BASE_TERM): Expand documentation.

gcc/
	* 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.

From-SVN: r140610
This commit is contained in:
Richard Sandiford 2008-09-23 18:28:24 +00:00 committed by Richard Sandiford
parent 5213f1a643
commit a9e6fc5a60
3 changed files with 12 additions and 16 deletions

View File

@ -1,3 +1,9 @@
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

View 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);
}
static void

View 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.