diff options
author | msebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-04-02 23:36:21 +0000 |
---|---|---|
committer | msebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-04-02 23:36:21 +0000 |
commit | c0c85fbb240dd59b2180516d45aae9967d3eec94 (patch) | |
tree | 7267cfce8b0f51df06ae72f689869b9d92f92b4f /gcc/doc/invoke.texi | |
parent | b8408bbc21d0d82d7b54d27ec618fb250c8ae826 (diff) |
gcc/ChangeLog:
* doc/invoke.texi (-Wrestrict): Fix typos.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259020 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 4dc935d98c0f..bb52f5562378 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6825,13 +6825,16 @@ the call writes the terminating NUL into @code{a[4]}, the copies overlap and 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 |