Return-Path: From: Lucas De Marchi To: linux-bluetooth@vger.kernel.org Cc: Lucas De Marchi Subject: [RFC 0/6] Use __sync_* instead of g_atomic_* Date: Tue, 2 Apr 2013 19:54:38 -0300 Message-Id: <1364943285-12463-1-git-send-email-lucas.demarchi@profusion.mobi> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: These patches fix build with gcc >= 4.8. I'd prefer to use plain ++/-- for these refcounts since we are not running multiple threads, but I'm preserving the previous behavior. Note in some of the commits that the use of atomic operations was wrong, and it was not noticed only because there aren't multiple threads. It's an RFC because it's only compile-tested (and 'make check' was executed as well). Please take a look in the patches and tell me if we want to continue with atomic operations. Then I can run some tests tomorrow. Lucas De Marchi (6): gitignore: Ignore file generated by Automake 1.13 gdbus: Use gcc builtin instead of g_atomic attrib: Use gcc builtin instead of g_atomic gobex: Use gcc builtin instead of g_atomic obexd: Use gcc builtin instead of g_atomic shared: Use gcc builtin instead of g_atomic .gitignore | 4 ++++ attrib/gatt.c | 12 ++++++------ attrib/gattrib.c | 14 ++++++++------ gdbus/client.c | 12 ++++++------ gobex/gobex.c | 14 ++++++++------ obexd/client/session.c | 12 ++++++------ src/shared/hciemu.c | 4 ++-- 7 files changed, 40 insertions(+), 32 deletions(-) -- 1.8.2