Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2B79109CA for ; Wed, 4 Dec 2013 09:40:50 +0000 (UTC) Received: (qmail 34261 invoked by uid 500); 4 Dec 2013 09:40:50 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 34106 invoked by uid 500); 4 Dec 2013 09:40:49 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 34098 invoked by uid 99); 4 Dec 2013 09:40:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 09:40:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ylavic.dev@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 09:40:42 +0000 Received: by mail-ie0-f173.google.com with SMTP id to1so25490660ieb.4 for ; Wed, 04 Dec 2013 01:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=M/G4h0Q9IZSPXeK1e6LkR7Z2HJqDBnYj32q6bnVDiRk=; b=gRyXFIaRuiQhq0qlTeq+jek3qCzYl0ICOlEmOgDv31Yx4+Bczskp9fmmk1lQAvSGoU AdHljdkHu/hpnBNlJwqHGz0LarO3yj0F9KCzgL/PjN1VcyRgd4R46DP5r4JlX3SFOCiS bqdgXGPUb1o0anjN4GlYKrU7TpfN0w3TygHRO4sNRxaceAdQhOEcz9LnPn74kzf6zJaM aFFs5PN2OSLNsexFkynj1Fgveskg+sNdWiAHwVUFFIFmkQxulzvwzLoS2diTOiiGdXy2 7WiqudAZ1NhOiQMF7suOt18uWQjO+VGzuuqEVvx8x3EVf2xjwawkR/OFs3y3C68oqiz/ SD0g== MIME-Version: 1.0 X-Received: by 10.50.82.41 with SMTP id f9mr121062igy.26.1386150021634; Wed, 04 Dec 2013 01:40:21 -0800 (PST) Received: by 10.43.133.70 with HTTP; Wed, 4 Dec 2013 01:40:21 -0800 (PST) In-Reply-To: References: Date: Wed, 4 Dec 2013 10:40:21 +0100 Message-ID: Subject: Fwd: nonportable-atomics configure.in setting From: Yann Ylavic To: dev@httpd.apache.org Content-Type: multipart/alternative; boundary=047d7bd8fe38a5211104ecb233fd X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd8fe38a5211104ecb233fd Content-Type: text/plain; charset=ISO-8859-1 Sorry, I had no intention to send this offlist. ---------- Forwarded message ---------- From: Yann Ylavic Date: Wed, Dec 4, 2013 at 10:37 AM Subject: Re: nonportable-atomics configure.in setting To: Daniel Lescohier On Wed, Dec 4, 2013 at 1:22 AM, Daniel Lescohier wrote: > I see this in configure.in: > > AC_ARG_ENABLE(nonportable-atomics, > [ --enable-nonportable-atomics Use optimized atomic code which may > produce nonportable binaries], > [if test $enableval = yes; then > force_generic_atomics=no > else > force_generic_atomics=yes > fi > ], > [case $host_cpu in > i[[456]]86) force_generic_atomics=yes ;; > *) force_generic_atomics=no ;; > esac > ]) > > I was wondering why the three host_cpus i486, i586, and i686 have special > treatment for the default setting as compared to all other cpu > architectures? > > I don't see any reason since the code in "srclib/apr/atomic/unix/ia32.c" seems compatible with >i386 (cmpxchg starts with i486), and atomic builtins work with gcc-v2+ (at worst USE_ATOMICS_IA32 could be defined for gcc-v1). The issue could have been in apr_atomic_casptr() and apr_atomic_xchgptr(), but APR_SIZEOF_VOIDP is checked to do the right thing with 32bits cpus... --047d7bd8fe38a5211104ecb233fd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
--047d7bd8fe38a5211104ecb233fd--