Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/5] libglib2: define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
Date: Fri, 20 Jul 2012 23:39:12 +0200	[thread overview]
Message-ID: <20120720233912.4a6bb4ea@skate> (raw)
In-Reply-To: <1342646260-11203-5-git-send-email-s.neumann@raumfeld.com>

Le Wed, 18 Jul 2012 23:17:39 +0200,
Sven Neumann <s.neumann@raumfeld.com> a ?crit :

> On ARMv5 atomic operations are not actually available as inlines
> but libgcc does still provide them as functions. Trick glib into
> using the functions instead of using the mutex-based fallbacks.
> 
> This should probably be platform-dependant. The inline functions
> are available for ARMv6 and above and probably for other platforms
> as well. Please advice on how to fix this properly.
> 
> Without this change performance of atomic operations is horrible
> on ARMv5 systems.
> 
> Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>

But isn't the compiler supposed to define
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 by itself?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2012-07-20 21:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 21:17 [Buildroot] RFC: update libglib2 to 2.32.4 Sven Neumann
2012-07-18 21:17 ` [Buildroot] [PATCH 1/5] libglib2: bump to version 2.32.4 Sven Neumann
2012-07-18 21:17 ` [Buildroot] [PATCH 2/5] libglib2: fix linker flags Sven Neumann
2012-07-20 21:32   ` Thomas Petazzoni
2012-08-07 15:40     ` Sven Neumann
2012-07-18 21:17 ` [Buildroot] [PATCH 3/5] libglib2: fix alignment checks Sven Neumann
2012-07-20 21:38   ` Thomas Petazzoni
2012-07-18 21:17 ` [Buildroot] [PATCH 4/5] libglib2: define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 Sven Neumann
2012-07-20 21:39   ` Thomas Petazzoni [this message]
2012-07-18 21:17 ` [Buildroot] [PATCH 5/5] libglib2: do not use xlocale Sven Neumann
2012-07-20 21:39   ` Thomas Petazzoni

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=20120720233912.4a6bb4ea@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox