diff options
author | Kaveh Ghazi <ghazi@caip.rutgers.edu> | 2008-05-23 04:47:12 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@caip.rutgers.edu> | 2008-05-23 04:47:12 +0000 |
commit | 1e4e16a0ca04015d5c6c6bbd1854f98129ab10f7 (patch) | |
tree | a7912b37870308a35af6d7fef3d8dedaa111ecf9 /gcc/builtin-types.def | |
parent | e378f5b3cc752c010c623f6eee7e1c535a349779 (diff) |
* builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
* builtins.c (fold_builtin_fpclassify): New.
(fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
* builtins.def (BUILT_IN_FPCLASSIFY): New.
* c-common.c (handle_type_generic_attribute): Adjust to accept
fixed arguments before an elipsis.
(check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
* doc/extend.texi: Document __builtin_fpclassify.
testsuite:
* gcc.dg/builtins-error.c: Test __builtin_fpclassify. Also
add tests for all previous type-generic builtins.
* gcc.dg/pr28796-2.c: Add -DUNSAFE flag.
* gcc.dg/tg-tests.h: Test __builtin_fpclassify.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@135789 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtin-types.def')
-rw-r--r-- | gcc/builtin-types.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/builtin-types.def b/gcc/builtin-types.def index 081a33f0467..25b5a0964f5 100644 --- a/gcc/builtin-types.def +++ b/gcc/builtin-types.def @@ -449,6 +449,9 @@ DEF_FUNCTION_TYPE_VAR_5 (BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR, BT_INT, BT_STRING, BT_SIZE, BT_INT, BT_SIZE, BT_CONST_STRING) +DEF_FUNCTION_TYPE_VAR_5 (BT_FN_INT_INT_INT_INT_INT_INT_VAR, + BT_INT, BT_INT, BT_INT, BT_INT, BT_INT, BT_INT) + DEF_POINTER_TYPE (BT_PTR_FN_VOID_VAR, BT_FN_VOID_VAR) DEF_FUNCTION_TYPE_3 (BT_FN_PTR_PTR_FN_VOID_VAR_PTR_SIZE, BT_PTR, BT_PTR_FN_VOID_VAR, BT_PTR, BT_SIZE) |