This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34515] -Wstrict-overflow produces extra warnings
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2007 21:38:29 -0000
- Subject: [Bug middle-end/34515] -Wstrict-overflow produces extra warnings
- References: <bug-34515-10490@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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 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