__bswap_constant_16 not compiled when -Werror -Wsign-conversion is given (32bit LE ARM)
Edward Jee
edjee@google.com
Tue May 21 18:58:00 GMT 2013
Filed http://sourceware.org/bugzilla/show_bug.cgi?id=15512 . Thanks.
On Tue, May 21, 2013 at 6:48 AM, Andreas Jaeger <aj@suse.com> wrote:
> On 05/21/2013 09:22 AM, Edward Jee wrote:
>>
>> Hi Andreas, thanks a lot for your response.
>> That change (BZ #12194) uses 0xff for sysdeps/s390/bits/byteswap.h .
>> But uses 0xffu bits/byteswap.h .
>> In my platform I use bits/byteswap.h . And, it seems that ((x) >> 8)
>> promotes the data to signed value. So (((x) >> 8) && 0xffu) seems to
>> fail when -Werror -Wsign-conversion .
>> I can't understand very well why bits/byteswap.h uses 0xffu , while
>> most of the other platform-dependent byteswap.h use 0xff.
>
>
> Edward, please file a bug report and let us look closer at this,
>
> Andreas
>
> --
> Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
> GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
--
Edward Hyun-koo Jee (지현구)
Software Engineer, Google Inc.
More information about the Libc-help
mailing list