diff options
author | sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-21 03:06:12 +0000 |
---|---|---|
committer | sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-21 03:06:12 +0000 |
commit | 2b3c93a3f3c56cb6a495f4b94d4ca09ac6f7c531 (patch) | |
tree | 09231bb5a5f48721cdd7033ca7c944b29771f3cf /gcc/target-def.h | |
parent | a96ae95b708ffd50cb89a386c5962c948dcc708b (diff) | |
download | gcc-2b3c93a3f3c56cb6a495f4b94d4ca09ac6f7c531.tar.gz |
2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
TARGET_CONVERT_TO_TYPE.
* hooks.c (hook_tree_const_tree_null): Define.
* hooks.h (hook_tree_const_tree_null): Declare.
* target.h (struct gcc_target): Add invalid_parameter_type,
invalid_return_type, promoted_type, and convert_to_type fields.
* target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
(TARGET_INVALID_RETURN_TYPE): Define.
(TARGET_PROMOTED_TYPE): Define.
(TARGET_CONVERT_TO_TYPE): Define.
(TARGET_INITIALIZER): Update for new fields.
* c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
(grokparms): Check targetm.invalid_parameter_type.
* c-typeck.c (default_conversion): Check targetm.promoted_type.
* c-convert.c (convert): Check targetm.convert_to_type.
gcc/cp/
* typeck.c (default_conversion): Check targetm.promoted_type.
* decl.c (grokdeclarator): Check targetm.invalid_return_type.
(grokparms): Check targetm.invalid_parameter_type.
* cvt.c (ocp_convert): Check targetm.convert_to_type.
(build_expr_type_conversion): Check targetm.promoted_type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147758 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target-def.h')
-rw-r--r-- | gcc/target-def.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h index 99c74e406f8..2de89a001d3 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -536,6 +536,10 @@ #define TARGET_INVALID_CONVERSION hook_constcharptr_const_tree_const_tree_null #define TARGET_INVALID_UNARY_OP hook_constcharptr_int_const_tree_null #define TARGET_INVALID_BINARY_OP hook_constcharptr_int_const_tree_const_tree_null +#define TARGET_INVALID_PARAMETER_TYPE hook_constcharptr_const_tree_null +#define TARGET_INVALID_RETURN_TYPE hook_constcharptr_const_tree_null +#define TARGET_PROMOTED_TYPE hook_tree_const_tree_null +#define TARGET_CONVERT_TO_TYPE hook_tree_tree_tree_null #define TARGET_FIXED_CONDITION_CODE_REGS hook_bool_uintp_uintp_false @@ -922,6 +926,10 @@ TARGET_INVALID_CONVERSION, \ TARGET_INVALID_UNARY_OP, \ TARGET_INVALID_BINARY_OP, \ + TARGET_INVALID_PARAMETER_TYPE, \ + TARGET_INVALID_RETURN_TYPE, \ + TARGET_PROMOTED_TYPE, \ + TARGET_CONVERT_TO_TYPE, \ TARGET_IRA_COVER_CLASSES, \ TARGET_SECONDARY_RELOAD, \ TARGET_EXPAND_TO_RTL_HOOK, \ |