Commit 8b3b26f7 by Martin Sebor Committed by Martin Sebor

invoke.texi (-Wrestrict): Fix typos.

gcc/ChangeLog:

	* doc/invoke.texi (-Wrestrict): Fix typos.

From-SVN: r259020
parent b7ef9225
2018-04-02 Martin Sebor <msebor@redhat.com>
* doc/invoke.texi (-Wrestrict): Fix typos.
2018-04-02 Jim Wilson <jimw@sifive.com> 2018-04-02 Jim Wilson <jimw@sifive.com>
* config/riscv/riscv.h (SHIFT_COUNT_TRUNCATED): Set to zero. * config/riscv/riscv.h (SHIFT_COUNT_TRUNCATED): Set to zero.
......
...@@ -6825,13 +6825,16 @@ the call writes the terminating NUL into @code{a[4]}, the copies overlap and ...@@ -6825,13 +6825,16 @@ the call writes the terminating NUL into @code{a[4]}, the copies overlap and
the call is diagnosed. the call is diagnosed.
@smallexample @smallexample
struct foo void foo (void)
@{ @{
char a[] = "abcd1234"; char a[] = "abcd1234";
strcpy (a, a + 4); strcpy (a, a + 4);
@}; &hellip;
@}
@end smallexample @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)} @item -Wnested-externs @r{(C and Objective-C only)}
@opindex Wnested-externs @opindex Wnested-externs
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment