Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gujIA-0005It-Qx for pgsql-committers@arkaria.postgresql.org; Fri, 15 Feb 2019 19:36:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gujI9-0004nM-It for pgsql-committers@arkaria.postgresql.org; Fri, 15 Feb 2019 19:36:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gujI9-0004nF-Cq for pgsql-committers@lists.postgresql.org; Fri, 15 Feb 2019 19:36:57 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gujI6-0003i8-DA for pgsql-committers@lists.postgresql.org; Fri, 15 Feb 2019 19:36:57 +0000 Received: by mail-qk1-x742.google.com with SMTP id f196so6390137qke.10 for ; Fri, 15 Feb 2019 11:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=hLl8T7nJhbRcIll0mUNKl3+OHTJdKqgS8E1kXmF9BX0=; b=s48AFw9kk+m6jk4plPBD1VFafu6IYEHQfzkWI7tdTj7KF5g+1Sk8MNRQaaSdz/ddDQ 99JSdulwhRBaKG+aYMGCz/LhCubL16ssSr2DDFSIYxwVKv9lwgOQyqNbvnh+HL1DxQ0K VDoYLC+Mjz8Wi/SvAe3wVs6ua+B3cNyfZ3htkqZEdvhlVKeFO8i843Sd+BXliKOlHiAl ll9/aUQpe5uTfCdCDGsmJpu2mGwRsATYA9SQIbRBM/yiVc4LlQzcRPIjy91dcvlEYVru kAZYDZaym8F7IkZs5lvlweF6bC1SuXPHsTN1k3a2MIEGto85r5lLUZlu/D4wPr3GnWF2 it9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=hLl8T7nJhbRcIll0mUNKl3+OHTJdKqgS8E1kXmF9BX0=; b=jDqWMVMRu/0DxK8N7WBA/noOwzCDlx8STDcAy93QdmSZYAnH3Uz6ntCfzTzUj1Lweh nLNR/rU89lUY3WPuRrwdqD6T8CzL3DpbB6WgriBFWR+sqPqRTB9sXnkC4CMcMmQL52TA E/6Ogag7GR9pKKhCKHF+7MBljbcBW4Ci5cYNo3PBZ5yQG8u6tB0R4/9Q3G1DAq4DGnEZ HKLBm1iV6AYCqPUks2pcTdGLY3MDABsx7ya1ygecOU4GAZEWOJk/Uw1osOnvnoNKhKFA X34EJkyxZhDH/+cVQJjAdjT5NQ6mZfCh23v9wQSw0q8UCGa0j3VCJAuWhTMArJSpvHG0 6FyA== X-Gm-Message-State: AHQUAuZ2Ez+LdpnaRtZsXJG4Ni4/KDNHDje2/2m0pPOywvJUqSfz2AOB pXVrysP5/+I3j5RnFJIP6wOedU8gqp+dtV7qLYp/zr4dlU55DtkHKWeHzewnMzgCHputl8gvx9g AWcrl+D5LWFlzDcnm3nx3IaINcBc7ns7WWPu4D34rk3qZ8OGPdcj3DaryTvoJgOtkogHc5mAQ4o tPWfLqJYErA5SAgmv9Zh88 X-Google-Smtp-Source: AHgI3IalMG+AyFxknJDgtFogv6oA8ogzFKqUssl4qTzpFj4CG4Oa/B9a2VQZo714foHYq2mUq5aKCQ== X-Received: by 2002:a37:d497:: with SMTP id s23mr8301435qks.70.1550259412396; Fri, 15 Feb 2019 11:36:52 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id j11sm5533017qtk.26.2019.02.15.11.36.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Feb 2019 11:36:51 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 777711238EF; Fri, 15 Feb 2019 16:36:49 -0300 (-03) Date: Fri, 15 Feb 2019 16:36:49 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c Message-ID: <20190215193649.GA32096@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <15861.1550256615@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Feb-15, Tom Lane wrote: > Meh. I don't see why this entire function should exist if there > is nothing for it to do. I'm inclined to think that somewhere > there needs to be a symbol NEED_POPCOUNT_CHOOSING that is only > enabled if we have all three of HAVE__BUILTIN_POPCOUNT, nonempty > CFLAGS_POPCOUNT, and HAVE__GET_CPUID || HAVE__CPUID. Possibly > we should gate building of pg_bitutils_hwpopcnt.c that way too? > Not much point in building that file if we have no way to figure > out when to use it. I'm done with this stuff. Anybody feel free to run with it, but for a barely noticeable performance improvement it's not going to be me. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services