On Mon, Nov 06, 2023 at 03:06:39PM +0100, Florian Weimer wrote:
> Future changes will treat some C front end warnings similar to
> -Wnarrowing.
> 
> gcc/
> 
>       * doc/invoke.texi (Warning Options): Mention C diagnostics
>       for -fpermissive.
> 
> gcc/c-family/
> 
>       * c.opt (fpermissive): Enable for C and ObjC.
>       * c-opts.cc (set_std_c89): Enable -fpermissive.

Won't this set flag_permissive even for -std=c89 -std=c99 ?
Haven't tried, but if set_std_c* is called multiple times if more than
one -std= option appears, then perhaps this should be done later after
processing all options, not during that processing.

        Jakub

Reply via email to