dbus 1.2.16

Thiago Macieira thiago at kde.org
Thu Jul 16 04:40:24 PDT 2009


Em Quarta-feira 15 Julho 2009, às 17:02:46, Thiago Macieira escreveu:
> I'll check my toolchain as to why the __sync stuff failed. I'll submit in
> 24 hours if no one objects until then.

Turns out that the problem is not in the toolchain. The function 
__sync_sub_and_fetch_4 isn't defined anywhere. 

You can verify it with the following code:
int inc(int *i) 
{ return __sync_sub_and_fetch(i, 1) + 1; } 

If you compile it with standard gcc options on 32-bit x86, it will output a 
call to __sync_sub_and_fetch_4. However, if you compile with -march=i486, then 
it emits the instruction "lock xaddl".

That means:
 - for the feature to be enabled, we need to pass -march to i486 or higher
 - distributions will not be able to compile D-Bus for non-486 processors.

I personally don't think 386 processors is a problem. However, we still need 
to change ./configure. Does anyone have a patch?

Otherwise, I'll have to revert the commit 
9293e823767daee79386cc797510808f4eed01a3 until such a patch is introduced.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Software
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090716/7b54ce50/attachment.pgp 


More information about the dbus mailing list