From 1c5abb53b9e4b94b788e79d25cf678f60808013f Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Tue, 27 Aug 2013 14:39:21 +0200 Subject: [PATCH] re PR middle-end/57219 (__builtin_isinf_sign source comments more restrictive than documentation) 2013-08-27 Marc Glisse PR middle-end/57219 * doc/extend.texi (__builtin_isinf_sign): Restrict the return values to -1, 0 and 1. From-SVN: r202021 --- gcc/ChangeLog | 6 ++++++ gcc/doc/extend.texi | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a9d78ba997..af6a6d8e88a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-08-27 Marc Glisse + + PR middle-end/57219 + * doc/extend.texi (__builtin_isinf_sign): Restrict the return + values to -1, 0 and 1. + 2013-08-27 Vidya Praveen * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL, diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 68d9426533f..151b7e9d56a 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -8618,8 +8618,9 @@ type is @code{long double}. @end deftypefn @deftypefn {Built-in Function} int __builtin_isinf_sign (...) -Similar to @code{isinf}, except the return value is negative for -an argument of @code{-Inf}. Note while the parameter list is an +Similar to @code{isinf}, except the return value is -1 for +an argument of @code{-Inf} and 1 for an argument of @code{+Inf}. +Note while the parameter list is an ellipsis, this function only accepts exactly one floating-point argument. GCC treats this parameter as type-generic, which means it does not do default promotion from float to double. -- 2.30.2