Bug 44603 - out of range branch generated in thumb code.
Summary: out of range branch generated in thumb code.
Status: RESOLVED DUPLICATE of bug 43961
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.5.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-20 22:00 UTC by Khem Raj
Modified: 2010-07-03 00:21 UTC (History)
3 users (show)

See Also:
Host: x86_64-linux
Target: arm-oe-linux-uclibceabi
Build: x86_64-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments
testcase (63.19 KB, application/x-bzip)
2010-06-20 22:01 UTC, Khem Raj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khem Raj 2010-06-20 22:00:55 UTC
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.
Comment 1 Khem Raj 2010-06-20 22:01:48 UTC
Created attachment 20949 [details]
testcase
Comment 2 Mikael Pettersson 2010-06-21 09:47:21 UTC
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.
Comment 3 Mikael Pettersson 2010-06-21 10:09:03 UTC
Dupe of PR43961?
Comment 4 Khem Raj 2010-06-21 17:45:00 UTC
(In reply to comment #3)
> Dupe of PR43961?
> 

yes seems so.
Comment 5 Ramana Radhakrishnan 2010-07-03 00:21:11 UTC

*** This bug has been marked as a duplicate of 43961 ***