[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-devel
Subject:    [Devel] [ openser-Bugs-1579967 ] Assembler error on arm at -O0
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2006-10-23 14:42:48
Message-ID: E1Gc10q-0004rQ-FO () sc8-sf-web5 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1579967, was opened at 2006-10-18 22:50
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1579967&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Julien BLACHE (jblache)
Assigned to: Nobody/Anonymous (nobody)
Summary: Assembler error on arm at -O0 (fastlock.h)

Initial Comment:
OpenSER (1.1.0, but probably applies to all versions)
fails to build on arm at -O0, spitting out an assembler
error:

$ gcc -c -fPIC -g -O0 -g tree234.i
/tmp/cco6vA7j.s: Assembler messages:
/tmp/cco6vA7j.s:172: Error: Rn must not overlap other
operands -- `swpb r3,r2,[r3]'

The code at fault is the inline assembly in fastlock.h:

 asm volatile(
   "# here \n\t"
   "swpb %0, %1, [%2] \n\t"
   : "=r" (val)
   : "r"(1), "r" (lock) : "memory"
 );


See the Debian bug report:
<http://bugs.debian.org/393858>

And the GCC PR:
<http://gcc.gnu.org/PR29329>

The problem in the GCC PR is not caused by this
problem, it's a bug in the optimizer on arm, but this
issue came up while investigating this PR.

Thanks,

JB.

----------------------------------------------------------------------

>Comment By: Bogdan (bogdan_iancu)
Date: 2006-10-23 17:42

Message:
Logged In: YES 
user_id=1275325

Hi Julien,

thanks for the patch - I applied on cvs for both head and
1.1.0 (last stable) versions.

regards,
bogdan

----------------------------------------------------------------------

Comment By: Julien BLACHE (jblache)
Date: 2006-10-22 20:48

Message:
Logged In: YES 
user_id=27488

Hi,

The attached one-liner fixes the problem.

JB.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1579967&group_id=139143

_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic