diff mbox

[doc] hyphenate "command-line" when used as an adjective

Message ID 550F6953.7050407@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore March 23, 2015, 1:16 a.m. UTC
I've checked in this patch to take care of another documentation glitch 
from my backlog I spotted while working on something else.  "Command 
line", unhyphenated, is a noun, but when used as an adjective phrase 
immediately before the noun it modifies, e.g. "command-line option", it 
should be hyphenated.

-Sandra
diff mbox

Patch

Index: gcc/doc/cpp.texi
===================================================================
--- gcc/doc/cpp.texi	(revision 221563)
+++ gcc/doc/cpp.texi	(working copy)
@@ -858,7 +858,7 @@  GCC was configured to compile code for; 
 the canonical name of the system it runs on.  @var{version} is the
 version of GCC in use.
 
-You can add to this list with the @option{-I@var{dir}} command line
+You can add to this list with the @option{-I@var{dir}} command-line
 option.  All the directories named by @option{-I} are searched, in
 left-to-right order, @emph{before} the default directories.  The only
 exception is when @file{dir} is already searched by default.  In
@@ -1147,7 +1147,7 @@  Normally, only the headers found in spec
 system headers.  These directories are determined when GCC is compiled.
 There are, however, two ways to make normal headers into system headers.
 
-The @option{-isystem} command line option adds its argument to the list of
+The @option{-isystem} command-line option adds its argument to the list of
 directories to search for headers, just like @option{-I}.  Any headers
 found in that directory will be considered system headers.
 
@@ -3217,11 +3217,11 @@  using a system feature on a machine wher
 
 @item
 Macros can be defined or undefined with the @option{-D} and @option{-U}
-command line options when you compile the program.  You can arrange to
+command-line options when you compile the program.  You can arrange to
 compile the same source file into two different programs by choosing a
 macro name to specify which program you want, writing conditionals to
 test whether or how this macro is defined, and then controlling the
-state of the macro with command line options, perhaps set in the
+state of the macro with command-line options, perhaps set in the
 Makefile.  @xref{Invocation}.
 
 @item
@@ -3904,7 +3904,7 @@  produce a single token.
 
 Normally comments are removed from the replacement text after the
 macro is expanded, but if the @option{-CC} option is passed on the
-command line comments are preserved.  (In fact, the current
+command-line comments are preserved.  (In fact, the current
 implementation removes comments even before saving the macro
 replacement text, but it careful to do it in such a way that the
 observed effect is identical even in the function-like macro case.)
@@ -4325,7 +4325,7 @@  leaving out the answer:
 In either form, if no such assertion has been made, @samp{#unassert} has
 no effect.
 
-You can also make or cancel assertions using command line options.
+You can also make or cancel assertions using command-line options.
 @xref{Invocation}.
 
 @node Differences from previous versions
@@ -4433,7 +4433,7 @@  file.
 @emph{Note:} Whether you use the preprocessor by way of @command{gcc}
 or @command{cpp}, the @dfn{compiler driver} is run first.  This
 program's purpose is to translate your command into invocations of the
-programs that do the actual work.  Their command line interfaces are
+programs that do the actual work.  Their command-line interfaces are
 similar but not identical to the documented interface, and may change
 without notice.
 
@@ -4513,7 +4513,7 @@  configuration of GCC@.
 @node Option Index
 @unnumbered Option Index
 @noindent
-CPP's command line options and environment variables are indexed here
+CPP's command-line options and environment variables are indexed here
 without any initial @samp{-} or @samp{--}.
 @printindex op
 
Index: gcc/doc/cppopts.texi
===================================================================
--- gcc/doc/cppopts.texi	(revision 221563)
+++ gcc/doc/cppopts.texi	(working copy)
@@ -194,7 +194,7 @@  suitable for @command{make} describing t
 source file.  The preprocessor outputs one @command{make} rule containing
 the object file name for that source file, a colon, and the names of all
 the included files, including those coming from @option{-include} or
-@option{-imacros} command line options.
+@option{-imacros} command-line options.
 
 Unless specified explicitly (with @option{-MT} or @option{-MQ}), the
 object file name consists of the name of the source file with any
@@ -645,7 +645,7 @@  Set the input character set, used for tr
 set of the input file to the source character set used by GCC@.  If the
 locale does not specify, or GCC cannot get this information from the
 locale, the default is UTF-8.  This can be overridden by either the locale
-or this command line option.  Currently the command line option takes
+or this command-line option.  Currently the command-line option takes
 precedence if there's a conflict.  @var{charset} can be any encoding
 supported by the system's @code{iconv} library routine.
 
@@ -811,7 +811,7 @@  short file names, such as MS-DOS@.
 @itemx --target-help
 @opindex help
 @opindex target-help
-Print text describing all the command line options instead of
+Print text describing all the command-line options instead of
 preprocessing anything.
 
 @item -v
Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	(revision 221564)
+++ gcc/doc/invoke.texi	(working copy)
@@ -13901,7 +13901,7 @@  The device has the @code{RAMPD}, @code{R
 @code{RAMPZ} special function register, respectively.
 
 @item __NO_INTERRUPTS__
-This macro reflects the @option{-mno-interrupts} command line option.
+This macro reflects the @option{-mno-interrupts} command-line option.
 
 @item __AVR_ERRATA_SKIP__
 @itemx __AVR_ERRATA_SKIP_JMP_CALL__
@@ -21629,7 +21629,7 @@  then the C preprocessor symbol @code{__V
 @itemx -mno-relax
 @opindex mrelax
 @opindex mno-relax
-Pass on (or do not pass on) the @option{-mrelax} command line option
+Pass on (or do not pass on) the @option{-mrelax} command-line option
 to the assembler.
 
 @item -mlong-jumps
@@ -21675,11 +21675,11 @@  value.
 Functions are aligned to 16-bit boundaries.
 
 @item
-The @option{-m8byte-align} command line option is supported.
+The @option{-m8byte-align} command-line option is supported.
 
 @item
-The @option{-mdisable-callt} command line option is enabled by
-default.  The @option{-mno-disable-callt} command line option is not
+The @option{-mdisable-callt} command-line option is enabled by
+default.  The @option{-mno-disable-callt} command-line option is not
 supported.
 @end itemize
 
@@ -21704,10 +21704,10 @@  Functions are aligned to 32-bit boundari
 size.
 
 @item
-The @option{-m8byte-align} command line option is not supported.
+The @option{-m8byte-align} command-line option is not supported.
 
 @item
-The @option{-mdisable-callt} command line option is supported but not
+The @option{-mdisable-callt} command-line option is supported but not
 enabled by default.
 @end itemize