This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: types of new builtins


Jan Beulich wrote:
Why do the (new) bit-op builtins have prototypes with signed parameters
instead of unsigned ones?

Because no one else noticed the mistake before.


Interestingly, all these bit operation functions are documented to take
unsigned arguments (on Other-Builtins.html).

Also, the libgcc2.c versions of these functions have unsigned arguments.


Clearly, they were intended to be functions that take unsigned arguments. The builtins.def file should be fixed. Submit a patch, or file a bug report into bugzilla.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]