attached example fails to compile when no -O<n> is used. $ arm-oe-linux-uclibceabi-gcc -mthumb -fPIC a.i -c /tmp/cc1iMNtS.s: Assembler messages: /tmp/cc1iMNtS.s:4814: Error: branch out of range If -O1 or any other -O optlevel is used then it works fine.
Created attachment 20949 [details] testcase
Seen also with 4.6 and 4.5 arm-unknown-linux-gnueabi toolchains at -O0, 4.4 and 4.3 don't trigger it. I'm pretty sure I've seen another thumb out of range branch PR not too long ago.
Dupe of PR43961?
(In reply to comment #3) > Dupe of PR43961? > yes seems so.
*** This bug has been marked as a duplicate of 43961 ***