This patch fixes a bunch of small problems in the descriptions of
-fisolate-erroneous-paths-dereference and
-fisolate-erroneous-paths-attribute:
* "which"/"that" confusion
* use American spelling of "behavior" vs British "behaviour"
* most places in the manual use "null" or more rarely "@code{NULL}"
rather than "NULL"
* wrong markup on option
I also added a note that -fisolate-erroneous-paths-dereference is
enabled by default at -O2 since it seemed odd to mention only that the
other option is *not* enabled.
Committed under the obvious fix rule, since this is more boring
tech-writer stuff.
-Sandra
2015-01-03 Sandra Loosemore <san...@codesourcery.com>
gcc/
* doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
Copy-edit description.
([-fisolate-erroneous-paths-attribute]): Likewise.
* common.opt (fisolate-erroneous-paths-dereference):
Copy-edit description.
(fisolate-erroneous-paths-attribute): Likewise.
Index: gcc/common.opt
===================================================================
--- gcc/common.opt (revision 219165)
+++ gcc/common.opt (working copy)
@@ -2241,16 +2241,16 @@ Enable string length optimizations on tr
fisolate-erroneous-paths-dereference
Common Report Var(flag_isolate_erroneous_paths_dereference) Optimization
-Detect paths which trigger erroneous or undefined behaviour due to
-dereferencing a NULL pointer. Isolate those paths from the main control
-flow and turn the statement with erroneous or undefined behaviour into a trap.
+Detect paths that trigger erroneous or undefined behavior due to
+dereferencing a null pointer. Isolate those paths from the main control
+flow and turn the statement with erroneous or undefined behavior into a trap.
fisolate-erroneous-paths-attribute
Common Report Var(flag_isolate_erroneous_paths_attribute) Optimization
-Detect paths which trigger erroneous or undefined behaviour due a NULL value
-being used in a way which is forbidden by a returns_nonnull or nonnull
+Detect paths that trigger erroneous or undefined behavior due a null value
+being used in a way forbidden by a returns_nonnull or nonnull
attribute. Isolate those paths from the main control flow and turn the
-statement with erroneous or undefined behaviour into a trap.
+statement with erroneous or undefined behavior into a trap.
ftree-loop-distribution
Common Report Var(flag_tree_loop_distribution) Optimization
Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi (revision 219166)
+++ gcc/doc/invoke.texi (working copy)
@@ -8234,17 +8234,18 @@ This flag is enabled by default at @opti
@item -fisolate-erroneous-paths-dereference
@opindex fisolate-erroneous-paths-dereference
-Detect paths which trigger erroneous or undefined behaviour due to
-dereferencing a NULL pointer. Isolate those paths from the main control
-flow and turn the statement with erroneous or undefined behaviour into a trap.
+Detect paths that trigger erroneous or undefined behavior due to
+dereferencing a null pointer. Isolate those paths from the main control
+flow and turn the statement with erroneous or undefined behavior into a trap.
+This flag is enabled by default at @option{-O2} and higher.
@item -fisolate-erroneous-paths-attribute
@opindex fisolate-erroneous-paths-attribute
-Detect paths which trigger erroneous or undefined behaviour due a NULL value
-being used in a way which is forbidden by a @code{returns_nonnull} or @code{nonnull}
+Detect paths that trigger erroneous or undefined behavior due a null value
+being used in a way forbidden by a @code{returns_nonnull} or @code{nonnull}
attribute. Isolate those paths from the main control flow and turn the
-statement with erroneous or undefined behaviour into a trap. This is not
-currently enabled, but may be enabled by @code{-O2} in the future.
+statement with erroneous or undefined behavior into a trap. This is not
+currently enabled, but may be enabled by @option{-O2} in the future.
@item -ftree-sink
@opindex ftree-sink