This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/66247] make check-gmp fails for gcc-5.1.0
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 May 2015 16:21:19 +0000
- Subject: [Bug c/66247] make check-gmp fails for gcc-5.1.0
- Auto-submitted: auto-generated
- References: <bug-66247-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66247
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
static const int offset[] = {
-2, -1, 0, 1, 2, 3
};
...
for (oindex = 0; oindex <= (int) (sizeof (offset) / sizeof
((offset)[0])); oindex++)
{
o = offset[oindex];
if ((int) isize*(64 - 0) < -o)
continue;
(unless the test is exiting the loop through exit (1);) seems to be undefined
behavior, for offset[6] you can only validly takes its address, but not
dereference it.