Rockbox

Tasklist

FS#7972 - Fix ARM's swp (xchg) inline assembly for gcc 4.2

Attached to Project: Rockbox
Opened by Akio Idehara (idak) - Tuesday, 16 October 2007, 14:33 GMT
Last edited by Barry Wardell (barrywardell) - Wednesday, 17 October 2007, 06:33 GMT
Task Type Patches
Category Applications
Status Closed
Assigned To No-one
Operating System iPod 5G
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

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
-------------

This task depends upon

Closed by  Barry Wardell (barrywardell)
Wednesday, 17 October 2007, 06:33 GMT
Reason for closing:  Accepted
Comment by Bertrik Sikken (bertrik) - Tuesday, 16 October 2007, 20:29 GMT
I'm running this patch because I compile with arm-elf-gcc 4.1.1 and so far no problems on my sansa e260!

Loading...