Created attachment 169455 [details]
Replace abs() on unsigned arguments in lang/beignet
During the exp-run in bug 208158, it was found that lang/beignet gives errors with libc++ 3.8.0 :
/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.1.1-Source/backend/src/backend/gen_insn_selection.cpp:1156:27: error: call to 'abs' is ambiguous
insn->extra.longjmp = 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.
Obsoleted by ports r416855.