Re: [HACKERS] "may be unused" warnings for gcc - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] "may be unused" warnings for gcc
Date
Msg-id 15fb2350-b8b8-e188-278f-0b34fdee5210@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] "may be unused" warnings for gcc  (Andres Freund <andres@anarazel.de>)
Responses Re: [HACKERS] "may be unused" warnings for gcc  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 2/21/17 22:17, Andres Freund wrote:
> I've not run comparisons this year, but late last year I was seeing > 5%
> < 10% benefits - that seems plenty enough to care.

You mean the 5-minute benchmarks on my laptop are not representative? ;-)

Here is a patch that I had lying around that clears the compiler
warnings under -O3 for me.  It seems that they are a subset of what you
are seeing.  Plausibly, as compilers are doing more analysis in larger
scopes, we can expect to see more of these.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, 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

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: [HACKERS] remove deprecated COMMENT ON RULE syntax
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Replication vs. float timestamps is a disaster