On 04/07/2018 05:43 PM, Gerald Pfeifer wrote:
On Mon, 2 Apr 2018, Martin Sebor wrote:
I committed r259020 to fix a couple of typos in the documentation
of the -Wrestrict option.  The diff is below for reference.

-The @option{-Wrestrict} is included in @option{-Wall}.
+The @option{-Wrestrict} option detects some instances of simple overlap
+even without optimization but works best at @option{-O2}.  It is included
+in @option{-Wall}.

Shoulds this read "-O2 or higher"?

I suppose it would be more accurate that way.  I've added it to
both -Wrestrict and -fprintf-return-value in r259224.

(That's an interesting definition of typo, by the way. ;-)  Not
disputing the change as such, only the ChangeLog entry.)

The typo was in the example.  (Of course, I managed to introduce
a new one while fixing it...)  The new sentence was incidental.

Martin

PS While looking around for other examples of "-O2 and above"
I came across a number of other similarly incomplete lists of
optimization options.  I posted a separate patch to update those.

Reply via email to