I committed r259020 to fix a couple of typos in the documentation of the -Wrestrict option. The diff is below for reference.
Martin Index: gcc/doc/invoke.texi =================================================================== --- gcc/doc/invoke.texi (revision 259019) +++ gcc/doc/invoke.texi (working copy) @@ -6825,13 +6825,16 @@ the call writes the terminating NUL into @code{a[4 the call is diagnosed. @smallexample -struct foo +void foo (void) @{ char a[] = "abcd1234"; strcpy (a, a + 4); -@}; + … +@} @end smallexample -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}. @item -Wnested-externs @r{(C and Objective-C only)} @opindex Wnested-externs Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 259019) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2018-04-02 Martin Sebor <mse...@redhat.com> + + * doc/invoke.texi (-Wrestrict): Fix typos. + 2018-04-02 Jim Wilson <j...@sifive.com> * config/riscv/riscv.h (SHIFT_COUNT_TRUNCATED): Set to zero.