[Bug target/56441] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-26 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 --- Comment #11 from gnugcc at emblocks dot org 2013-02-26 17:51:16 UTC --- Richard, you can close this one. I'm leaving the ARM-branch and are moving to the head of branch 4.7. Sorry for the inconveniences, I thought that th

[Bug target/56441] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-26 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 --- Comment #10 from gnugcc at emblocks dot org 2013-02-26 17:24:52 UTC --- The ARM branch, sorry I see now that the trunk is different. Arm branch: ;; The r/r/k alternative is required when reloading the address ;; (plus (reg rN

[Bug target/56441] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-26 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 --- Comment #7 from gnugcc at emblocks dot org 2013-02-26 09:05:36 UTC --- I was looking completely wrong, the arm_addsi3 is acting wrong. The "add%?\\t%0, %1, %2" for "=l,%0,Py" is set at a length of 2. (fir

[Bug target/56441] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-25 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 --- Comment #6 from gnugcc at emblocks dot org 2013-02-25 16:47:51 UTC --- The work-around is working but it is not the correct way. I'm cheating that a branch is always 4 bytes in Thumb2 (which is actually the case with the b

[Bug target/56441] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-25 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 --- Comment #5 from gnugcc at emblocks dot org 2013-02-25 13:14:46 UTC --- Could it be that in the file arm.md concerning the following snippet: (define_insn "*arm_jump" [(set (pc) (label_ref (match

[Bug target/56441] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-25 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 --- Comment #4 from gnugcc at emblocks dot org 2013-02-25 11:40:45 UTC --- Created attachment 29534 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29534 This file shows/reproduce the error

[Bug target/56441] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-25 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 --- Comment #3 from gnugcc at emblocks dot org 2013-02-25 11:35:53 UTC --- The "Reporting Bugs" manual isn't taht clear. It says "What we need: the preprocessed file (*.i*) that triggers the bug, generated by ad

[Bug target/56441] [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-25 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 --- Comment #1 from gnugcc at emblocks dot org 2013-02-25 08:31:31 UTC --- @ ..\..\src\samba\smblib.c:2362 .loc 1 2362 0 @(insn 688 1291 1292 45 (set (reg:SI 1 r1 [orig:698 MEM[(const unsigned char *)name_10(D) + 15B] ] [698

[Bug target/56441] New: [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3

2013-02-25 Thread gnugcc at emblocks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56441 Bug #: 56441 Summary: [ARM Thumb] generated asm code produces "branch out of range" error in gas with -O1 -mcpu=cortex-m3 Classification: Unclassified Product: gcc Versi