All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Schuster <thebohemian@gmx.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [RFC] add ubuntu patch which adds atomic builtin support to gcc 4.3.[3 but also other microversions]
Date: Thu, 17 Jun 2010 09:09:33 +0200	[thread overview]
Message-ID: <4C19CA2D.4@gmx.net> (raw)
In-Reply-To: <AANLkTimFM0nCDuT-eMOJRvolhw06Q6uoHwmbnebIIFjL@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2663 bytes --]

Hi,
first of all. As Stefan pointed out the change was needed while working
for Buglabs on OpenJDK support. So it was decided that the introduction
of the mentioned GCC change is handled by Stefan Schmidt now.

But I would like to elaborate on the side-effects of the patch.

Am 16.06.2010 19:12, schrieb Khem Raj:
>
> Those applications are working fine and they will keep working fine as
> long as you dont recompile them
> and you make sure that libgcc is updated then whenever you rebuild an
> application that uses the atomic
> builtins will start using them until then it should work without using them.
>   
Yes, already built and shipped applications are not affected at all.
It is only that when certain packages are built again with the new GCC,
the package's binary
will be different although PR (and PV) did not change. The reason is
that most configure scripts check
for the availability of the GCC intrinsics. If they are found they make
use of it, if not they either use a different implementation
(libatomic-ops for example)
or bring their own (software running on ARM Linux 2.6 can assume that
the neccessary kernel helpers exist and make use of them[0]) or silently
disable
multithread support (that is the case for llvm 2.7).

And already compiled software will also not magically pick up the
implementation found in libgcc because:
1) it was not there before
2) I am under the impression that at least some of the builtins are
actually macros and thus bits of machinecode are copied into each binary
using them.

However as said. Stefan is now dealing with the issue. He has gotten two
patches (one from Ubuntu, another one from the GCC 4.4 stable branch)
that we needed to get things going and is most likely checking the
effects they have.

Regards,
Robert

[0] - code like this can be found in many projects; search for
__kernel_dmb and __kernel_cmpxchg:
http://code.google.com/p/nativeclient/source/browse/trunk/src/native_client/src/include/linux/arm/atomic_ops.h?r=857
> Maybe I am missing something it would be helpful if Robert could
> explain potential scenarios
> where it would break precompiled binaries. I don't see it.
>
>   
>> Graeme
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
>>     
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>   



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 270 bytes --]

  reply	other threads:[~2010-06-17  7:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-16  7:27 [RFC] add ubuntu patch which adds atomic builtin support to gcc 4.3.[3 but also other microversions] Robert Schuster
2010-06-16  8:02 ` Graeme Gregory
2010-06-16 16:54   ` Khem Raj
2010-06-16 16:56     ` Graeme Gregory
2010-06-16 17:12       ` Khem Raj
2010-06-17  7:09         ` Robert Schuster [this message]
2010-06-17  7:17           ` Robert Schuster
2010-06-17 18:54           ` Stefan Schmidt
2010-06-16  8:42 ` Koen Kooi
2010-06-16  9:17   ` Stefan Schmidt
2010-06-16  9:49     ` Koen Kooi
2010-06-16 10:57       ` Robert Schuster
2010-07-07 10:23 ` Koen Kooi
2010-07-07 10:54   ` Henning Heinold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C19CA2D.4@gmx.net \
    --to=thebohemian@gmx.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.