Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id B33F21542B97 for ; Mon, 19 Dec 2011 11:41:27 -0400 (AST) Received: from [213.9.93.70] (helo=mail.piware.de) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RcfL8-0002Ss-GV for pgsql-bugs@postgresql.org; Mon, 19 Dec 2011 15:41:27 +0000 Received: from localhost.localdomain (p549B261F.dip.t-dialin.net [84.155.38.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Martin Pitt (ThinkPad)", Issuer "piware CA" (verified OK)) by mail.piware.de (Postfix) with ESMTPS id 104481517A61 for ; Mon, 19 Dec 2011 16:40:32 +0100 (CET) Received: by localhost.localdomain (Postfix, from userid 1000) id 02E9820158; Mon, 19 Dec 2011 16:41:09 +0100 (CET) Date: Mon, 19 Dec 2011 16:41:08 +0100 From: Martin Pitt To: pgsql-bugs@postgresql.org Subject: Re: [PATCH] Use CC atomic builtins if available [was: Re: TAS patch for building on armel/armhf thumb] Message-ID: <20111219154108.GL2972@piware.de> Mail-Followup-To: pgsql-bugs@postgresql.org References: <4EEB1C77.1000309@enterprisedb.com> <20111218224203.GA2950@piware.de> <4EEF5397.8090200@enterprisedb.com> <20126.1324308312@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20126.1324308312@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Host-Lookup-Failed: Reverse DNS lookup failed for 213.9.93.70 (failed) X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201112/156 X-Sequence-Number: 31967 Tom Lane [2011-12-19 10:25 -0500]: > Heikki Linnakangas writes: > > On 19.12.2011 16:31, Robert Haas wrote: > >> On Sun, Dec 18, 2011 at 5:42 PM, Martin Pitt wrote: > >>> I agree. How about a patch like this? It uses builtin atomics if > >>> available, and falls back to the custom implementations if not. > > >> -1. Absent some evidence that gcc's implementations are superior to > >> ours, I think we should not change stuff that works now. That's > >> likely to lead to subtle bugs that are hard to find and perhaps > >> dependent on the exact compiler version used. > > > Ok, we're in disagreement on that then. I don't feel very strongly about > > it, let's see what others think. > > I agree with Robert. There is no evidence whatsoever that this would > be an improvement, and unless somebody cares to provide such evidence, > we shouldn't risk changing code that's so full of portability hazards. OK, with you and Robert preferring this as a fallback instead of a preferred way, and with Heikki's "I don't care much", I'll rework the patch. Thanks, Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)