This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, doc] Fix typos in documentation
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Kai Tietz <kai dot tietz at onevision dot com>
- Date: Sun, 28 Feb 2010 10:31:17 +0100
- Subject: [PATCH, doc] Fix typos in documentation
This patch is not completely trivial. I need confirmation that the
-mno-llsc change is correct.
Further, I found one other issue, unfixed: extend.texi(Function
Attributes) contains an unfinished sentence:
| + Note, This feature is currently sorried out for Windows targets trying to
added by <http://gcc.gnu.org/viewcvs?view=revision&revision=136311>.
Kai, what are these targets trying to?
Tested 'make info html pdf'. OK for trunk?
The warning flag nit has been found by contrib/check_warning_flags.sh.
Thanks,
Ralf
Fix typos in documentation.
gcc/ChangeLog:
2010-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/install.texi (Configuration): Fix typos.
* doc/invoke.texi (Warning Options, RX Options): Likewise.
(Warning Options): -Wno-conversion-null is valid for
Objective-C++ as well.
* doc/tm.texi (Named Address Spaces): Likewise.
* doc/plugins.texi (Plugins): Replace TABs with spaces.
* doc/tree-ssa.texi (Tree SSA): Likewise.
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index 579bec7..334bf81 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -1189,7 +1189,7 @@ Division by zero checks use the break instruction.
@item --with-llsc
On MIPS targets, make @option{-mllsc} the default when no
-@option{-mno-lsc} option is passed. This is the default for
+@option{-mno-llsc} option is passed. This is the default for
Linux-based targets, as the kernel will emulate them if the ISA does
not provide them.
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 3d110a9..3f01759 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -3481,7 +3481,7 @@ incomplete types. Runs in the frontend only.
Level 3 (default for @option{-Wstrict-aliasing}):
Should have very few false positives and few false
negatives. Slightly slower than levels 1 or 2 when optimization is enabled.
-Takes care of the common punn+dereference pattern in the frontend:
+Takes care of the common pun+dereference pattern in the frontend:
@code{*(int*)&some_float}.
If optimization is enabled, it also runs in the backend, where it deals
with multiple statement cases using flow-sensitive points-to information.
@@ -3877,7 +3877,7 @@ reference to them. Warnings about conversions between signed and
unsigned integers are disabled by default in C++ unless
@option{-Wsign-conversion} is explicitly enabled.
-@item -Wno-conversion-null @r{(C++)}
+@item -Wno-conversion-null @r{(C++ and Objective-C++ only)}
@opindex Wconversion-null
@opindex Wno-conversion-null
Do not warn for conversions between @code{NULL} and non-pointer
@@ -15549,7 +15549,7 @@ default option.
@item -mmax-constant-size=@var{N}
@opindex mmax-constant-size
-Specifies the maxium size, in bytes, of a constant that can be used as
+Specifies the maximum size, in bytes, of a constant that can be used as
an operand in a RX instruction. Although the RX instruction set does
allow constants of up to 4 bytes in length to be used in instructions,
a longer value equates to a longer instruction. Thus in some
@@ -15570,7 +15570,7 @@ versions of various instructions. Disabled by default.
@opindex mint-register
Specify the number of registers to reserve for fast interrupt handler
functions. The value @var{N} can be between 0 and 4. A value of 1
-means that register @code{r13} will be reserved for ther exclusive use
+means that register @code{r13} will be reserved for the exclusive use
of fast interrupt handlers. A value of 2 reserves @code{r13} and
@code{r12}. A value of 3 reserves @code{r13}, @code{r12} and
@code{r11}, and a value of 4 reserves @code{r13} through @code{r10}.
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 7d65954..2ad07f7 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -9856,7 +9856,7 @@ address spaces other than the default address space. These address
spaces are new keywords that are similar to the @code{volatile} and
@code{const} type attributes.
-Pointers to named address spaces can a a different size than
+Pointers to named address spaces can have a different size than
pointers to the generic address space.
For example, the SPU port uses the @code{__ea} address space to refer
diff --git a/gcc/doc/plugins.texi b/gcc/doc/plugins.texi
index 35f1b70..a1ca1de 100644
--- a/gcc/doc/plugins.texi
+++ b/gcc/doc/plugins.texi
@@ -148,14 +148,14 @@ enum plugin_event
PLUGIN_PRE_GENERICIZE, /* Allows to see low level AST in C and C++ frontends. */
PLUGIN_FINISH, /* Called before GCC exits. */
PLUGIN_INFO, /* Information about the plugin. */
- PLUGIN_GGC_START, /* Called at start of GCC Garbage Collection. */
- PLUGIN_GGC_MARKING, /* Extend the GGC marking. */
- PLUGIN_GGC_END, /* Called at end of GGC. */
- PLUGIN_REGISTER_GGC_ROOTS, /* Register an extra GGC root table. */
- PLUGIN_REGISTER_GGC_CACHES, /* Register an extra GGC cache table. */
+ PLUGIN_GGC_START, /* Called at start of GCC Garbage Collection. */
+ PLUGIN_GGC_MARKING, /* Extend the GGC marking. */
+ PLUGIN_GGC_END, /* Called at end of GGC. */
+ PLUGIN_REGISTER_GGC_ROOTS, /* Register an extra GGC root table. */
+ PLUGIN_REGISTER_GGC_CACHES, /* Register an extra GGC cache table. */
PLUGIN_ATTRIBUTES, /* Called during attribute registration */
PLUGIN_START_UNIT, /* Called before processing a translation unit. */
- PLUGIN_PRAGMAS, /* Called during pragma registration. */
+ PLUGIN_PRAGMAS, /* Called during pragma registration. */
/* Called before first pass from all_passes. */
PLUGIN_ALL_PASSES_START,
/* Called after last pass from all_passes. */
diff --git a/gcc/doc/tree-ssa.texi b/gcc/doc/tree-ssa.texi
index ebb85a0..cae3cec 100644
--- a/gcc/doc/tree-ssa.texi
+++ b/gcc/doc/tree-ssa.texi
@@ -38,7 +38,7 @@ passes for GIMPLE@.
@menu
* Annotations:: Attributes for variables.
-* SSA Operands:: SSA names referenced by GIMPLE statements.
+* SSA Operands:: SSA names referenced by GIMPLE statements.
* SSA:: Static Single Assignment representation.
* Alias analysis:: Representing aliased loads and stores.
* Memory model:: Memory model used by the middle-end.