This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Update comment of removed options.
- From: Martin Liška <mliska at suse dot cz>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Marek Polacek <polacek at redhat dot com>, Richard Biener <richard dot guenther at gmail dot com>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, Nathan Sidwell <nathan at acm dot org>, Iain Sandoe <idsandoe at googlemail dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, David Edelsohn <dje dot gcc at gmail dot com>, Jan Hubicka <hubicka at ucw dot cz>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Mon, 9 Sep 2019 13:24:53 +0200
- Subject: [PATCH] Update comment of removed options.
- References: <f93d3d6f-505e-9b01-a15c-077c1236e911@acm.org> <CAFiYyc0jH_-G46Lpe=Uu+vLAm5J9A-eK3uqB0X2kDAsfq6oMng@mail.gmail.com> <6df2c495-c922-e6b6-abf7-ef3879ed9fda@suse.cz> <CAH6eHdTTZw0_vw-gjNcJjpu81yr-TvGEXXwJCaxbdi9zQe=54g@mail.gmail.com> <CAFiYyc1NUtVggkd_Ht2yqaOpvmZUzbN89DW3w7wHYQ8ZEUC5-g@mail.gmail.com> <bf9cbc03-3ea3-0c40-f50e-4b3e65654878@suse.cz> <3d69fc9b-6a25-5a7c-1574-599b253a4c64@suse.cz> <20190906144853.GD14737@redhat.com> <20190906145640.GI2120@tucnak> <ad236774-32bb-bb06-b0b5-99e5b1c5ee0d@suse.cz> <20190909110819.GQ2120@tucnak>
On 9/9/19 1:08 PM, Jakub Jelinek wrote:
> On Mon, Sep 09, 2019 at 01:02:32PM +0200, Martin Liška wrote:
>> On 9/6/19 4:56 PM, Jakub Jelinek wrote:
>>> On Fri, Sep 06, 2019 at 10:48:53AM -0400, Marek Polacek wrote:
>>>> On Fri, Sep 06, 2019 at 08:58:48AM +0200, Martin Liška wrote:
>>>>> Ok, hopefully nobody is strongly against. I've just retested the
>>>>> patch and installed it as r275450.
>>>>
>>>> --- a/gcc/c-family/c.opt
>>>> +++ b/gcc/c-family/c.opt
>>>> @@ -1763,8 +1763,8 @@ ObjC ObjC++ LTO Var(flag_replace_objc_classes)
>>>> Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime.
>>>>
>>>> frepo
>>>> -C++ ObjC++
>>>> -Enable automatic template instantiation.
>>>> +C++ ObjC++ Deprecated
>>>> +Deprecated in GCC 10. This switch has no effect.
>>>
>>> The Deprecated keyword is just misnamed, I believe it does the same thing as
>>> Ignore, except that it also prints a warning that the switch is no longer
>>> supported, so kind like Ignore Warn(switch %<-frepo%> is no longer supported).
>>> The description should be just This switch has no effect. or
>>> Does nothing. Preserved for backward compatibility.
>>
>> I verified the description and it's fine to me:
>>
>> frepo
>> C++ ObjC++ Deprecated
>> Deprecated in GCC 10. This switch has no effect.
>
> This first part looks wrong to me.
> "deprecated
> (computing) Obsolescent; said of a construct in a computing language considered old,
> and planned to be phased out, but still available for use."
You are right. What about the suggested patch?
Martin
> That is not the case here in GCC 10, the feature has been removed, it has
> been deprecated in GCC 9.N for N >= 2 only.
>
> Jakub
>
>From ece8a83bdf6c2504bfe57dd033f6876cf2ffb9a2 Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Mon, 9 Sep 2019 13:22:51 +0200
Subject: [PATCH] Update comment of removed options.
gcc/ChangeLog:
2019-09-09 Martin Liska <mliska@suse.cz>
* config/i386/i386.opt: Update comment of removed
options that are preserved only for backward
compatibility.
gcc/c-family/ChangeLog:
2019-09-09 Martin Liska <mliska@suse.cz>
* c.opt: Update comment of removed
options that are preserved only for backward
compatibility.
---
gcc/c-family/c.opt | 46 ++++++++++++++++++++--------------------
gcc/config/i386/i386.opt | 4 ++--
2 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index ec546663029..c5804470d47 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -429,7 +429,7 @@ Warn about subscripts whose type is \"char\".
Wchkp
C ObjC C++ ObjC++ Warning Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
Wclobbered
C ObjC C++ ObjC++ Var(warn_clobbered) Warning EnabledBy(Wextra)
@@ -1338,90 +1338,90 @@ and character literals.
fcheck-pointer-bounds
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-check-incomplete-type
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-zero-input-bounds-for-main
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-first-field-has-own-bounds
C ObjC C++ ObjC++ LTO Deprecated RejectNegative
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-narrow-bounds
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-narrow-to-innermost-array
C ObjC C++ ObjC++ LTO Deprecated RejectNegative
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-flexible-struct-trailing-arrays
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-optimize
C ObjC C++ ObjC++ LTO Deprecated
fchkp-use-fast-string-functions
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-use-nochk-string-functions
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-use-static-bounds
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-use-static-const-bounds
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-treat-zero-dynamic-size-as-infinite
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-check-read
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-check-write
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-store-bounds
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-instrument-calls
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-instrument-marked-only
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fchkp-use-wrappers
C ObjC C++ ObjC++ LTO Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
static-libmpx
Driver Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
static-libmpxwrappers
Driver Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
fcilkplus
C ObjC C++ ObjC++ LTO Undocumented Ignore
-Deprecated in GCC 8. This switch has no effect.
+Removed in GCC 8. This switch has no effect.
fconcepts
C++ ObjC++ Var(flag_concepts)
@@ -1764,7 +1764,7 @@ Used in Fix-and-Continue mode to indicate that object files may be swapped in at
frepo
C++ ObjC++ Deprecated
-Deprecated in GCC 10. This switch has no effect.
+Removed in GCC 10. This switch has no effect.
frtti
C++ ObjC++ Optimization Var(flag_rtti) Init(1)
diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt
index 599e799ea5e..5d47212ae72 100644
--- a/gcc/config/i386/i386.opt
+++ b/gcc/config/i386/i386.opt
@@ -968,7 +968,7 @@ Support RTM built-in functions and code generation.
mmpx
Target Deprecated
-Deprecated in GCC 9. This switch has no effect.
+Removed in GCC 9. This switch has no effect.
mmwaitx
Target Report Mask(ISA_MWAITX) Var(ix86_isa_flags2) Save
@@ -1113,4 +1113,4 @@ AVX512BF16 built-in functions and code generation.
menqcmd
Target Report Mask(ISA_ENQCMD) Var(ix86_isa_flags2) Save
-Support ENQCMD built-in functions and code generation.
\ No newline at end of file
+Support ENQCMD built-in functions and code generation.
--
2.23.0