aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-def.h
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2010-05-12 23:08:31 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2010-05-12 23:08:31 +0400
commitcbda7dc6923547363e10787e6a58dfdd5cae5954 (patch)
treeab0664b99a156d91a202d107ee413a933ccb1249 /gcc/target-def.h
parentdfe5f5b2b36092f0e07f3e7e58293c5e0565ced4 (diff)
downloadgcc-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-def.h')
-rw-r--r--gcc/target-def.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h
index 72cf930..3ead370 100644
--- a/gcc/target-def.h
+++ b/gcc/target-def.h
@@ -599,6 +599,10 @@
#define TARGET_IN_SMALL_DATA_P hook_bool_const_tree_false
#endif
+#ifndef TARGET_MODE_DEPENDENT_ADDRESS_P
+#define TARGET_MODE_DEPENDENT_ADDRESS_P default_mode_dependent_address_p
+#endif
+
#ifndef TARGET_MANGLE_DECL_ASSEMBLER_NAME
#define TARGET_MANGLE_DECL_ASSEMBLER_NAME default_mangle_decl_assembler_name
#endif
@@ -970,6 +974,7 @@
TARGET_CANNOT_FORCE_CONST_MEM, \
TARGET_CANNOT_COPY_INSN_P, \
TARGET_COMMUTATIVE_P, \
+ TARGET_MODE_DEPENDENT_ADDRESS_P, \
TARGET_LEGITIMIZE_ADDRESS, \
TARGET_DELEGITIMIZE_ADDRESS, \
TARGET_LEGITIMATE_ADDRESS_P, \