diff options
author | Marek Polacek <polacek@redhat.com> | 2014-03-27 15:59:07 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-03-27 15:59:07 +0000 |
commit | 324dc401fe695443909a8dcdf7e25fa9b5661fb4 (patch) | |
tree | 6e498ff5cdd27f5882fa7ef8849e8effe2fad708 | |
parent | 59976ef8787b47961b28f925f66e1adc3a04de6a (diff) | |
download | gcc-324dc401fe695443909a8dcdf7e25fa9b5661fb4.zip gcc-324dc401fe695443909a8dcdf7e25fa9b5661fb4.tar.gz gcc-324dc401fe695443909a8dcdf7e25fa9b5661fb4.tar.bz2 |
re PR c/50347 (unexpected -Wconversion error from gcc builtin)
PR c/50347
* doc/extend.texi (ffs Builtins): Change unsigned types to signed
types.
From-SVN: r208870
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 674f3a44..2c11c94 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-03-27 Marek Polacek <polacek@redhat.com> + + PR c/50347 + * doc/extend.texi (ffs Builtins): Change unsigned types to signed + types. + 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * config/s390/s390.c (s390_can_use_return_insn): Check for diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 1928622..7ca5322 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -8978,7 +8978,7 @@ Similar to @code{__builtin_nans}, except the return type is @code{float}. Similar to @code{__builtin_nans}, except the return type is @code{long double}. @end deftypefn -@deftypefn {Built-in Function} int __builtin_ffs (unsigned int x) +@deftypefn {Built-in Function} int __builtin_ffs (int x) Returns one plus the index of the least significant 1-bit of @var{x}, or if @var{x} is zero, returns zero. @end deftypefn @@ -9008,9 +9008,9 @@ Returns the parity of @var{x}, i.e.@: the number of 1-bits in @var{x} modulo 2. @end deftypefn -@deftypefn {Built-in Function} int __builtin_ffsl (unsigned long) +@deftypefn {Built-in Function} int __builtin_ffsl (long) Similar to @code{__builtin_ffs}, except the argument type is -@code{unsigned long}. +@code{long}. @end deftypefn @deftypefn {Built-in Function} int __builtin_clzl (unsigned long) @@ -9038,9 +9038,9 @@ Similar to @code{__builtin_parity}, except the argument type is @code{unsigned long}. @end deftypefn -@deftypefn {Built-in Function} int __builtin_ffsll (unsigned long long) +@deftypefn {Built-in Function} int __builtin_ffsll (long long) Similar to @code{__builtin_ffs}, except the argument type is -@code{unsigned long long}. +@code{long long}. @end deftypefn @deftypefn {Built-in Function} int __builtin_clzll (unsigned long long) |