diff options
author | Anatoly Sokolov <aesok@post.ru> | 2010-05-12 23:08:31 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2010-05-12 23:08:31 +0400 |
commit | cbda7dc6923547363e10787e6a58dfdd5cae5954 (patch) | |
tree | ab0664b99a156d91a202d107ee413a933ccb1249 /gcc/target.h | |
parent | dfe5f5b2b36092f0e07f3e7e58293c5e0565ced4 (diff) | |
download | gcc-cbda7dc6923547363e10787e6a58dfdd5cae5954.zip gcc-cbda7dc6923547363e10787e6a58dfdd5cae5954.tar.gz gcc-cbda7dc6923547363e10787e6a58dfdd5cae5954.tar.bz2 |
target.h (struct gcc_target): Add mode_dependent_address_p field.
* target.h (struct gcc_target): Add mode_dependent_address_p field.
* target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
(TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
* targhooks.c (default_mode_dependent_address_p): New function.
* targhooks.h (default_mode_dependent_address_p): Declare function.
* doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
(GO_IF_MODE_DEPENDENT_ADDRESS): Update.
* recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
target hook. Change return type to bool.
* recog.h: (mode_dependent_address_p): Change return type to bool.
From-SVN: r159339
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index 2c9ab85..29ec84f 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -663,6 +663,10 @@ struct gcc_target /* True if X is considered to be commutative. */ bool (* commutative_p) (const_rtx, int); + + /* True if ADDR is an address-expression whose effect depends + on the mode of the memory reference it is used in. */ + bool (* mode_dependent_address_p) (const_rtx addr); /* Given an invalid address X for a given machine mode, try machine-specific ways to make it legitimate. Return X or an invalid address on failure. */ |