Created attachment 153163 [details] Fix undefined behavior in gas/contrib/tc-arm.c's rotate_left() macro Similar to bug 197806, there is a failure in armv6-freebsd10.0-xdev due to gas "invalid constant after fixup" errors: http://pb2.nyi.freebsd.org/data/headi386PR197395-default/2015-02-12_00h00m41s/logs/errors/armv6-freebsd10.0-xdev-10.0.log This is again due to undefined behavior in gas's rotate_left() macro, as fixed in head here: https://svnweb.freebsd.org/base?view=revision&revision=274856 Apply this revision onto the unpacked src.txz to avoid the build failure with clang 3.6.0.
Approved as well :)
A commit references this bug: Author: dim Date: Wed Feb 18 22:26:46 UTC 2015 New revision: 379321 URL: https://svnweb.freebsd.org/changeset/ports/379321 Log: Fix undefined behavior in gas/contrib/tc-arm.c's rotate_left() macro, as in https://svnweb.freebsd.org/base?view=revision&revision=274856 This fixes possible "invalid constant after fixup" errors from gas, when it has been compiled with high levels of optimization. PR: 197810 Approved by: maintainer (bapt) Changes: head/devel/armv6-freebsd10.0-xdev/files/patch-contrib_binutils_gas_config_tc-arm.c
Fixed in r379321.