From owner-freebsd-arm@FreeBSD.ORG Tue Sep 10 20:24:50 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3E98995B for ; Tue, 10 Sep 2013 20:24:50 +0000 (UTC) (envelope-from edschouten@gmail.com) Received: from mail-ve0-x234.google.com (mail-ve0-x234.google.com [IPv6:2607:f8b0:400c:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F3D062926 for ; Tue, 10 Sep 2013 20:24:49 +0000 (UTC) Received: by mail-ve0-f180.google.com with SMTP id jz11so4843033veb.25 for ; Tue, 10 Sep 2013 13:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=cD/ghXaaN7NMikLDxvcWrPuozx+gmZUbOi3caFiZLuQ=; b=uNvR1rtf2gAMbayFWF+9gXTphY4IH+468X6wj6p2uHUWipRKxFIP5ux6XdcNGEhpz7 spsStykD15pZ4rM57+RgZcrmvT8BbGRGp+rHJRv1EBz+HCoRRi1XKTgDtK9u1z2CXD8l VaE5hi5r1eY2ySWnxdwbUrUXbFdtwO6WY1AqnFCXVkHPelOtghhKi9HxoM2mWZyeCGxE WKAFBPuYv7wrSz9mwHyUzmykrFiDyyqBm5ffOKg+zzmdy6Ka3S0KEN0h/gfNyqzSKobr Gys/Y535q28cK9pu6n9eKnsHTYWBR9bQoZ325lb5vd9c6OMJVKxKFyO3799sJ6ex6u/3 X9OA== MIME-Version: 1.0 X-Received: by 10.52.171.38 with SMTP id ar6mr8287625vdc.22.1378844687714; Tue, 10 Sep 2013 13:24:47 -0700 (PDT) Sender: edschouten@gmail.com Received: by 10.220.115.206 with HTTP; Tue, 10 Sep 2013 13:24:47 -0700 (PDT) In-Reply-To: <20130909231720.5b2c4823@bender.Home> References: <522C592C.5010800@m5p.com> <20130909231720.5b2c4823@bender.Home> Date: Tue, 10 Sep 2013 22:24:47 +0200 X-Google-Sender-Auth: XLh2ZcCbiAiypy_LjUnEKDhfDi0 Message-ID: Subject: Re: Failure compiling glib20 on ARM From: Ed Schouten To: Andrew Turner Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" , George Mitchell X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Sep 2013 20:24:50 -0000 Hi Andrew, 2013/9/10 Andrew Turner : > I don't see support for it in our stdatomic functions. It shouldn't be > too hard to support, a simple would be something like: > > int __sync_bool_compare_and_swap_4(uint32_t *mem, uint32_t expected, > uint32_t new) > { > return (__sync_val_compare_and_swap_4(mem, expected, new) == > expected); > } My initial goal was to just add the atomic intrinsics to make the C11 standards atomic interface work (). That's why I am personally not that interested in adding all sorts of extra `bloat'; code should just use instead. Still, if there is a strong interest in adding this function as well, be sure to send me a patch for sys/*/*/stdatomic.c and I would be more than willing to review it. Thanks, -- Ed Schouten