This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: Fwd: [PATCH, libgcc]: Avoid "left shift count >= width of type" warnings in soft-fp code


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


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