Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 20:15:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 208908] lang/beignet: Fix build with libc++ 3.8.0
Message-ID:  <bug-208908-7141-2E8l2PwTbv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-208908-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-208908-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Dimitry Andric <dim@FreeBSD.org> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to x11@FreeBSD.org:
Bug 208908: lang/beignet: Fix build with libc++ 3.8.0
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208908



--- Description ---
Created attachment 169455
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169455&action=
=3Dedit
Replace abs() on unsigned arguments in lang/beignet

During the exp-run in bug 208158, it was found that lang/beignet gives erro=
rs
with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.1.1-Source/backend/src/backe=
nd/g
en_insn_selection.cpp:1156:27:
error: call to 'abs' is ambiguous
    insn->extra.longjmp =3D abs(index - origin) > 800;
			  ^~~

This is because abs() is being called with unsigned arguments.	Fix this by
calculating the unsigned difference in a safe manner.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_=
18h3
0m05s/logs/errors/beignet-1.1.1.log



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208908-7141-2E8l2PwTbv>