Re: gcc 13 warnings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: gcc 13 warnings
Date
Msg-id ea8b5e6d-442e-cb7e-75a5-12acc789801c@enterprisedb.com
Whole thread Raw
In response to Re: gcc 13 warnings  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List pgsql-hackers
On 22.03.23 10:45, Peter Eisentraut wrote:
> 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
tome, at least for development builds.
 

I have committed the change of buildtype to debugoptimized.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: TAP output format in pg_regress
Next
From: Amit Langote
Date:
Subject: Re: "variable not found in subplan target list"