Re: gcc 13 warnings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: gcc 13 warnings
Date
Msg-id f97122fc-32b8-db85-d9cd-0a5e708edef4@enterprisedb.com
Whole thread Raw
In response to Re: gcc 13 warnings  (Andres Freund <andres@anarazel.de>)
Responses Re: gcc 13 warnings  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List pgsql-hackers
On 18.03.23 00:54, Andres Freund wrote:
>> I think a good compromise would be buildtype=debugoptimized, which is -O2
>> with debug symbols, which also sort of matches the default in the autoconf
>> world.
> 
> Looks like that'd result in a slightly worse build with msvc, as afaict we
> wouldn't end up with /OPT:REF doesn't get specified, which automatically gets
> disabled if /DEBUG is specified. I guess we can live with that.

I looked up what /OPT:REF does 
(https://learn.microsoft.com/en-us/cpp/build/reference/opt-optimizations?view=msvc-170), 
and it seems pretty obscure to me, at least for development builds.



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Bytea PL/Perl transform
Next
From: Amit Kapila
Date:
Subject: Re: Allow logical replication to copy tables in binary format