From: rsandifo Date: Tue, 23 Sep 2008 18:29:58 +0000 (+0000) Subject: gcc/ X-Git-Tag: upstream/4.9.2~39532 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e984a7ac756fd086173ba207fef87d8b9ba4072;p=platform%2Fupstream%2Flinaro-gcc.git gcc/ * alias.c (find_base_value): Use FIND_BASE_TERM. * doc/tm.texi (FIND_BASE_TERM): Update documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140612 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 461044b..15fa082 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2008-09-23 Richard Sandiford + * alias.c (find_base_value): Use FIND_BASE_TERM. + * doc/tm.texi (FIND_BASE_TERM): Update documentation. + +2008-09-23 Richard Sandiford + * config/i386/i386.c: Include cselib.h. (ix86_pic_register_p): New function. (ix86_delegitimize_address): Use it to check for the PIC register. diff --git a/gcc/alias.c b/gcc/alias.c index 35a40bc..1135489 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -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: diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 634fb0d..2b85f90 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -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.