builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 23 May 2008 04:47:12 +0000 (04:47 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 23 May 2008 04:47:12 +0000 (04:47 +0000)
commit3bf5906b317941790438b4503a2234cdc710dca3
treea7912b37870308a35af6d7fef3d8dedaa111ecf9
parent2aa5c17ce58d1e54763875dfb10580fbdd871731
builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.

* 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.

From-SVN: r135789
gcc/ChangeLog
gcc/builtin-types.def
gcc/builtins.c
gcc/builtins.def
gcc/c-common.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-error.c
gcc/testsuite/gcc.dg/pr28796-2.c
gcc/testsuite/gcc.dg/tg-tests.h