[PATCH] Deprecate -frepo on gcc-9 branch (PR c++/91125).

Martin Liška mliska@suse.cz
Fri Jul 12 12:44:00 GMT 2019


On 7/11/19 7:25 PM, Jason Merrill wrote:
> On 7/11/19 3:02 AM, Jakub Jelinek wrote:
>> On Thu, Jul 11, 2019 at 08:48:52AM +0200, Martin Liška wrote:
>>> --- a/gcc/c-family/c-opts.c
>>> +++ b/gcc/c-family/c-opts.c
>>> @@ -501,6 +501,8 @@ c_common_handle_option (size_t scode, const char *arg, HOST_WIDE_INT value,
>>>         flag_use_repository = value;
>>>         if (value)
>>>       flag_implicit_templates = 0;
>>> +      warning (0, "%<-frepo%> is deprecated and will be removed "
>>> +           "in a future release");
>>>         break;
> 
> Is there a reason not to condition this on OPT_Wdeprecated (which defaults to on)?
> 
> Jason
> 

Works for me.
I'm sending updated version of the patch.

Ready for gcc9 branch?
Thanks,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Deprecate-frepo-on-gcc-9-branch-PR-c-91125.patch
Type: text/x-patch
Size: 12966 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20190712/0f524b40/attachment.bin>


More information about the Gcc mailing list