This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/81638] [7 Regression] AIX bootstrap failure due to Recover GOTO predictor
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Aug 2017 00:28:20 +0000
- Subject: [Bug bootstrap/81638] [7 Regression] AIX bootstrap failure due to Recover GOTO predictor
- Auto-submitted: auto-generated
- References: <bug-81638-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81638
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Just for reference we have:
for (i = 0; i < vec->count; ++i)
{
incl = (struct xcoff_incl *) vec->vec.base + i;
if (incl->begin <= lnnoptr && lnnoptr <= incl->end)
break;
}
if (begincl == -1)
begincl = (i < vec->count);
if (i < vec->count)
{
filename = incl->filename;
if (begincl == 1)
lnno += fcn_lnno - 1;
}
else
lnno += fcn_lnno - 1;
Hmm, if i == 0 and vec->count is 0, then incl can be uninitialized.
I can't find a way for GCC to know vec->count is non zero here ... Unless I
miss something.