alias.c (find_base_value): Use FIND_BASE_TERM.
gcc/ * alias.c (find_base_value): Use FIND_BASE_TERM. * doc/tm.texi (FIND_BASE_TERM): Update documentation. From-SVN: r140612
This commit is contained in:
parent
411e138af2
commit
5345105058
3 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
|
||||
|
||||
* alias.c (find_base_value): Use FIND_BASE_TERM.
|
||||
* doc/tm.texi (FIND_BASE_TERM): Update documentation.
|
||||
|
||||
2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
|
||||
|
||||
* config/i386/i386.c: Include cselib.h.
|
||||
|
|
|
@ -836,6 +836,11 @@ find_base_value (rtx src)
|
|||
{
|
||||
unsigned int regno;
|
||||
|
||||
#if defined (FIND_BASE_TERM)
|
||||
/* Try machine-dependent ways to find the base term. */
|
||||
src = FIND_BASE_TERM (src);
|
||||
#endif
|
||||
|
||||
switch (GET_CODE (src))
|
||||
{
|
||||
case SYMBOL_REF:
|
||||
|
|
|
@ -5355,8 +5355,8 @@ preserve functionality of inline assembly constructs using the
|
|||
@defmac FIND_BASE_TERM (@var{x})
|
||||
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}.
|
||||
can easily find the base term. This macro is used in only two places:
|
||||
@code{find_base_value} and @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.
|
||||
|
|
Loading…
Add table
Reference in a new issue