Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VvSml-00029J-J5 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Dec 2013 14:16:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VvSmk-0002iD-Rl for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Dec 2013 14:16:38 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VvSmj-0002hq-3P for pgsql-hackers@postgresql.org; Tue, 24 Dec 2013 14:16:37 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VvSmg-0006Z4-D1 for pgsql-hackers@postgresql.org; Tue, 24 Dec 2013 14:16:36 +0000 Received: from intern.anarazel.de (p549F1FCD.dip0.t-ipconnect.de [84.159.31.205]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id D33C14F0001; Tue, 24 Dec 2013 15:16:31 +0100 (CET) Date: Tue, 24 Dec 2013 15:16:31 +0100 From: Andres Freund To: Robert Haas Cc: Tom Lane , Peter Eisentraut , Peter Geoghegan , Pg Hackers , Ants Aasma Subject: Re: better atomics - v0.2 Message-ID: <20131224141631.GF26564@alap2.anarazel.de> References: <20131115200416.GH5489@awork2.anarazel.de> <8392.1384873040@sss.pgh.pa.us> <20131119151646.GD10498@alap2.anarazel.de> <9336.1384875455@sss.pgh.pa.us> <20131205113938.GC12398@alap2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2013-12-23 15:04:08 -0500, Robert Haas wrote: > On Thu, Dec 5, 2013 at 6:39 AM, Andres Freund wrote: > > On 2013-11-19 10:37:35 -0500, Tom Lane wrote: > >> Or does the warning > >> mean code bloat (lots of useless copies of the inline function)? > > > > After thinking on that for a bit, yes that's a possible consequence, but > > it's quite possible that it happens in cases where we don't get the > > warning too, so I don't think that argument has too much bearing as I > > don't recall a complaint about it. > > But I bet the warning we're getting there is complaining about exactly > that thing. It's possible that it means "warning: i've optimized away > your unused function into nothing" but I think it's more likely that > it means "warning: i just emitted dead code". Indeed, I suspect that > this is why that test is written that way in the first place. I don't think that's particularly likely - remember, we're talking about static inline functions here. So the compiler would have to detect that there's an inline function which won't be used and then explicitly emit a function body. That seems like an odd thing to do. So, if there's compilers like that around, imo they have to deal with their own problems. It's not like it will prohibit using postgres. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers