This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

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



------- 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


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