On Wed, Jul 10, 2019 at 02:53:35PM +0200, Martin Liška wrote: > On 7/10/19 2:48 PM, Nathan Sidwell wrote: > > On 7/10/19 7:28 AM, Martin Liška wrote: > > > >> Great, thank you. > >> > >> There's a patch for deprecating of the option in GCC 9 changes. > >> > >> May I install the patch right now or should I wait? > >> > > > > I think there needs to be a code patch so that use of the option gives a > > warning. > > > > nathan > > > That's done by 'Deprecated' keyword put on frepo in *.opt file: > > $ ./gcc/xgcc -Bgcc -frepo /tmp/main.c > xgcc: warning: switch ‘-frepo’ is no longer supported > > I've already used the same mechanism for other deprecated options e.g.: > > $ ./gcc/xgcc -Bgcc -mmpx /tmp/main.c > xgcc: warning: switch ‘-mmpx’ is no longer supported
That doesn't seem to be correct for GCC 9 and -frepo though, the option will be still supported, but deprecated and to be removed in the next release. I think the Deprecated *.opt keyword is misnamed. Jakub