[Bug middle-end/34515] -Wstrict-overflow produces extra warnings
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 17 21:38:00 GMT 2007
------- 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 split between two different statements.
do { mp_size_t __i; for (__i = 0; __i < (idx); __i++) (retval)[__i] = 0;
} while (0);
For the second but I think that one should not be warned about.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34515
More information about the Gcc-bugs
mailing list