FS#7972 - Fix ARM's swp (xchg) inline assembly for gcc 4.2
Fix ARM's swp (xchg) inline assembly for gcc 4.2
I built rockbox for IPod video(arm target) with gcc 4.2,
then gcc output like following log.
I thought that swp inline assembly in thread.h outout unneeded optimization code with gcc 4.2.
So I fix that.
/tmp/ccj4V6hz.s: Assembler messages:
/tmp/ccj4V6hz.s:1234: Error: Rn must not overlap other operands – `swp r3,r2,[r3]'
/tmp/ccj4V6hz.s:1289: Error: Rn must not overlap other operands – `swpb r3,r2,[r3]'
/tmp/ccj4V6hz.s:1449: Error: Rn must not overlap other operands – `swpb r3,r2,[r3]'
make[1]: * [/home/rockbox/svn/build-15142/22/firmware/kernel.o] Error 1
make[1]: * Waiting for unfinished jobs….
/tmp/cckzxxuH.s: Assembler messages:
/tmp/cckzxxuH.s:295: Error: Rn must not overlap other operands – `swpb r3,r2,[r3]'
/tmp/cckzxxuH.s:1154: Error: Rn must not overlap other operands – `swpb r3,r2,[r3]'
/tmp/cckzxxuH.s:1164: Error: Rn must not overlap other operands – `swpb r3,r2,[r3]'
/tmp/cckzxxuH.s:1442: Error: Rn must not overlap other operands – `swpb r3,r2,[r3]'
make[1]: * [/home/rockbox/svn/build-15142/22/firmware/thread.o] Error 1
make: * [build] Error 2
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
I'm running this patch because I compile with arm-elf-gcc 4.1.1 and so far no problems on my sansa e260!