This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fwd: [PATCH, libgcc]: Avoid "left shift count >= width of type" warnings in soft-fp code
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 25 Nov 2013 23:31:55 +0000
- Subject: Re: Fwd: [PATCH, libgcc]: Avoid "left shift count >= width of type" warnings in soft-fp code
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4YiQazDguEkrpV4JvX9KKJ_MZpvX-TLv0wxEQg-hTNqSg at mail dot gmail dot com> <CAFULd4Y3dw8J76sd=duyDOwW3_VyS2BBUDRthF0=oFtXUmn5zg at mail dot gmail dot com>
I don't see why the op-2.h change should be needed - the code with the
problem shift is already inside the "else" part of a ((rsize <=
_FP_W_TYPE_SIZE) ? : ...) conditional, and the reason ?: is used here
instead of if/else is exactly to avoid such warnings; putting in a second
nested such conditional with the same condition shouldn't make any
difference.
--
Joseph S. Myers
joseph@codesourcery.com