re PR middle-end/36757 (__builtin_signbit should be type-generic)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Tue, 18 Aug 2015 20:07:57 +0000 (20:07 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Tue, 18 Aug 2015 20:07:57 +0000 (20:07 +0000)
commit61717a4593d0c710b6fed946e8ce9728c83ed369
treee35d243d6dcbdc7bf2a9787803bcacdfa3715f55
parenta1c045caab2c1b31ce7b8e9c28ccd9f8106c4e58
re PR middle-end/36757 (__builtin_signbit should be type-generic)

PR middle-end/36757

* builtins.c (expand_builtin_signbit): Add asserts to make sure
we can expand BUILT_IN_SIGNBIT inline.
* builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
* doc/extend.texi: Document the type-generic __builtin_signbit.

* c-common.c (check_builtin_function_arguments): Add check
for BUILT_IN_SIGNBIT argument.

* gcc.dg/builtins-error.c: Add checks for __builtin_signbit.
* gcc.dg/tg-tests.h: Add checks for __builtin_signbit.

From-SVN: r226990
gcc/ChangeLog
gcc/builtins.c
gcc/builtins.def
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-error.c
gcc/testsuite/gcc.dg/tg-tests.h