Commit 324dc401 by Marek Polacek Committed by Marek Polacek

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
parent 59976ef8
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> 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_can_use_return_insn): Check for * config/s390/s390.c (s390_can_use_return_insn): Check for
......
...@@ -8978,7 +8978,7 @@ Similar to @code{__builtin_nans}, except the return type is @code{float}. ...@@ -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}. Similar to @code{__builtin_nans}, except the return type is @code{long double}.
@end deftypefn @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 Returns one plus the index of the least significant 1-bit of @var{x}, or
if @var{x} is zero, returns zero. if @var{x} is zero, returns zero.
@end deftypefn @end deftypefn
...@@ -9008,9 +9008,9 @@ Returns the parity of @var{x}, i.e.@: the number of 1-bits in @var{x} ...@@ -9008,9 +9008,9 @@ Returns the parity of @var{x}, i.e.@: the number of 1-bits in @var{x}
modulo 2. modulo 2.
@end deftypefn @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 Similar to @code{__builtin_ffs}, except the argument type is
@code{unsigned long}. @code{long}.
@end deftypefn @end deftypefn
@deftypefn {Built-in Function} int __builtin_clzl (unsigned long) @deftypefn {Built-in Function} int __builtin_clzl (unsigned long)
...@@ -9038,9 +9038,9 @@ Similar to @code{__builtin_parity}, except the argument type is ...@@ -9038,9 +9038,9 @@ Similar to @code{__builtin_parity}, except the argument type is
@code{unsigned long}. @code{unsigned long}.
@end deftypefn @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 Similar to @code{__builtin_ffs}, except the argument type is
@code{unsigned long long}. @code{long long}.
@end deftypefn @end deftypefn
@deftypefn {Built-in Function} int __builtin_clzll (unsigned long long) @deftypefn {Built-in Function} int __builtin_clzll (unsigned long long)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment