]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid undefined behaviour in gas's rotate_left() macro for n == 0.
authordim <dim@FreeBSD.org>
Sat, 22 Nov 2014 16:30:31 +0000 (16:30 +0000)
committerdim <dim@FreeBSD.org>
Sat, 22 Nov 2014 16:30:31 +0000 (16:30 +0000)
commitb0c82ef0c167580db8d4e8de54454268c41a719a
tree6be99c4d4ffb7f9d56c0a0a8b773228ac73431b6
parentb6dc63376d90cee3e96495640ed03a966e64f287
Avoid undefined behaviour in gas's rotate_left() macro for n == 0.
Otherwise, clang can effectively remove the first iteration of the for
loops where this macro is invoked, and as a result, "cmp r0, #99" fails
to assemble.

Obtained from: joerg at netbsd
MFC after: 3 days
contrib/binutils/gas/config/tc-arm.c