[Bug middle-end/34515] -Wstrict-overflow produces extra warnings

2018-09-16 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34515 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug middle-end/34515] -Wstrict-overflow produces extra warnings

2007-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-12-17 21:38 --- retval[idx--] |= val >> (4 - pos - 1); val <<= 32 - (4 - pos - 1); if (idx < 0) For the first warning, even though the warning is correct, I don't think we should warn here as the expressions are

[Bug middle-end/34515] -Wstrict-overflow produces extra warnings

2007-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-12-17 21:34 --- Hmm: if (bits == 0) { register int cnt; if (quot == 0) cnt = 32; else do { USItype __cbtmp; __asm__ ("bsrl %1,%0" : "=r" (__cbtmp) : "rm" ((USItype) (quot))); (cnt) = __cbtmp ^ 31; } while (0); exponent -= cnt

[Bug middle-end/34515] -Wstrict-overflow produces extra warnings

2007-12-17 Thread ismail at pardus dot org dot tr
--- Comment #2 from ismail at pardus dot org dot tr 2007-12-17 20:42 --- s/for warning/first warning -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34515

[Bug middle-end/34515] -Wstrict-overflow produces extra warnings

2007-12-17 Thread ismail at pardus dot org dot tr
--- Comment #1 from ismail at pardus dot org dot tr 2007-12-17 20:42 --- Created an attachment (id=14787) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14787&action=view) Preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34515