desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #160925
[Bug 1544053] Re: x11-apps fails to build on ppc64el when built with -O3
I minimized re.c down to a small test case and it looks like a false
positive on the array bounds check. Talking with Jakub, he said that
-Warray-bounds has lots of false positives, so I think either removing
the use of -Werror=array-bounds or using -O2 as permanent fixes for this
is probably best. Since you've already changed to using -O2, we might
as well stick with that.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to x11-apps in Ubuntu.
https://bugs.launchpad.net/bugs/1544053
Title:
x11-apps fails to build on ppc64el when built with -O3
Status in x11-apps package in Ubuntu:
Confirmed
Bug description:
x11-apps fails to build on ppc64el when built with -O3. can be worked
around with -O2
see
https://launchpad.net/ubuntu/+source/x11-apps/7.7+5+nmu1/+build/8913431
../xedit/lisp/re/re.c: In function 'rec_build_pat':
../xedit/lisp/re/re.c:2328:17: error: array subscript is above array bounds [-Werror=array-bounds]
if (inf->sp[i]) {
^
../xedit/lisp/re/re.c:2329:21: error: array subscript is above array bounds [-Werror=array-bounds]
distance = inf->sj[i] - inf->sr[i];
^
../xedit/lisp/re/re.c:2329:34: error: array subscript is above array bounds [-Werror=array-bounds]
distance = inf->sj[i] - inf->sr[i];
^
../xedit/lisp/re/re.c:2331:19: error: array subscript is above array bounds [-Werror=array-bounds]
inf->cod[inf->sr[i] + 4] = (distance & 0xff00) >> 8;
^
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/x11-apps/+bug/1544053/+subscriptions
References