PING^1 On 11/07/2017 11:08 AM, Martin Liška wrote: > On 11/06/2017 06:33 PM, Jakub Jelinek wrote: >> On Mon, Nov 06, 2017 at 06:23:11PM +0100, Eric Botcazou wrote: >>>> Thank you for review, done that. >>> >>> This has enabled -Wreturn-type for Ada, what we don't want since the >>> warning >>> is outsmarted by the language, so I have applied this. >>> >>> >>> 2017-11-06 Eric Botcazou <ebotca...@adacore.com> >>> >>> * gcc-interface/misc.c (gnat_post_options): Clear warn_return_type. >> >> Hasn't it enabled it also for any other FEs other than C family and Fortran? >> Say jit, brig, go, lto?, ... >> I think better would be to remove the initialization to -1 and revert the >> fortran/options.c change, and instead use in the C family: >> if (!global_options_set.x_warn_return_type) >> warn_return_type = c_dialect_cxx (); >> >> Unless it for some reason doesn't work for -Wall or -W or similar. >> >> Jakub >> > > Hello. > > Sorry for the inconvenience, however using Jakub's approach really does not > work properly > with -Wall. > > Thus I'm suggesting following patch that will disable it in all > *_post_options hooks. > > Ready after it survives regression tests? > Martin >
- Re: [PATCH][RFC] Instrument function exit with __builtin_u... Jakub Jelinek
- Re: [PATCH][RFC] Instrument function exit with __buil... Martin Liška
- Re: [PATCH][RFC] Instrument function exit with __... Marek Polacek
- Re: [PATCH][RFC] Instrument function exit wit... Martin Liška
- Re: [PATCH][RFC] Instrument function exit... Jason Merrill
- Re: [PATCH][RFC] Instrument function exit... Martin Liška
- Re: [PATCH][RFC] Instrument function exit... Eric Botcazou
- Re: [PATCH][RFC] Instrument function exit... Jakub Jelinek
- Re: [PATCH][RFC] Instrument function exit... Eric Botcazou
- Re: [PATCH][RFC] Instrument function exit... Martin Liška
- Re: [PATCH][RFC] Instrument function exit... Martin Liška
- Re: [PATCH][RFC] Instrument function exit... Jakub Jelinek
- Re: [PATCH][RFC] Instrument function exit... Eric Botcazou
- Re: [PATCH][RFC] Instrument function exit... Martin Liška
- Re: [PATCH][RFC] Instrument function exit... Eric Botcazou
- Re: [PATCH][RFC] Instrument function exit... Jakub Jelinek
- Re: [PATCH][RFC] Instrument function exit... Martin Liška
- Re: [PATCH][RFC] Instrument function exit... Martin Sebor
- [PATCH][RFC] Add quotes for constexpr key... Martin Liška
- Re: [PATCH][RFC] Add quotes for constexpr... Martin Sebor
- Re: [PATCH][RFC] Add quotes for constexpr... Jonathan Wakely