]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gm2spec.cc and lang-options.h corrected/replaced comments and fixed a typo.
authorGaius Mulley <gaius.mulley@southwales.ac.uk>
Wed, 18 May 2022 23:57:41 +0000 (00:57 +0100)
committerGaius Mulley <gaius.mulley@southwales.ac.uk>
Wed, 18 May 2022 23:57:41 +0000 (00:57 +0100)
2022-05-19   Gaius Mulley   <gaius.mulley@southwales.ac.uk>

gcc/m2/ChangeLog:

* gm2spec.cc: Reformatted multiline comments.
* lang-options.h: Removed an erroneous ancient comment and
replaced it with a new one.  Corrected typo in the description
of -fcase.

Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
gcc/m2/gm2spec.cc
gcc/m2/lang-options.h

index eb0c2d84db46f4efba48c780a648b281054da505..2a61e4497bc5ac54d7be759a5b72defb118932eb 100644 (file)
@@ -1035,9 +1035,10 @@ add_env_option (const char *path, size_t option)
     }
 }
 
-/* add_word returns a new string which has the contents of lib appended to list.
-   If list is NULL then lib is duplicated and returned otherwise the list is
-   appended by "," and the contents of lib.  */
+/* add_word returns a new string which has the contents of lib
+   appended to list.  If list is NULL then lib is duplicated and
+   returned otherwise the list is appended by "," and the contents of
+   lib.  */
 
 static const char *
 add_word (const char *list, const char *lib)
@@ -1052,10 +1053,10 @@ add_word (const char *list, const char *lib)
   return copy;
 }
 
-/* convert_abbreviation checks abbreviation against known library abbreviations.
-   If an abbreviations is found it converts the element to the full
-   library name, otherwise the user supplied name is added to the full_libraries list.
-   A new string is returned.  */
+/* convert_abbreviation checks abbreviation against known library
+   abbreviations.  If an abbreviation is found it converts the element
+   to the full library name, otherwise the user supplied name is added
+   to the full_libraries list.  A new string is returned.  */
 
 static const char *
 convert_abbreviation (const char *full_libraries, const char *abbreviation)
@@ -1067,10 +1068,10 @@ convert_abbreviation (const char *full_libraries, const char *abbreviation)
   return add_word (full_libraries, abbreviation);
 }
 
-/* convert_abbreviations checks each element in the library list to see if an
-   a known library abbreviation was used.  If found it converts the element to the full
-   library name, otherwise the element is copied into the list.
-   A new string is returned.  */
+/* convert_abbreviations checks each element in the library list to
+   see if an a known library abbreviation was used.  If found it
+   converts the element to the full library name, otherwise the
+   element is copied into the list.  A new string is returned.  */
 
 static const char *
 convert_abbreviations (const char *libraries)
index 16e82227d7878e91824bfc77eb792a95a56f49d4..75206dc39627430cffc24597e1e7d085f28927a7 100644 (file)
@@ -21,8 +21,8 @@ see <https://www.gnu.org/licenses/>.  */
 
 #define LINK_COMMAND_SPEC ""
 
-/* This is the contribution to the `documented_lang_options' array in
-   toplev.c for gm2.  */
+/* These options are used in toplev.cc via the auto-generated options.cc for
+   the driver program gm2.  */
 
 DEFINE_LANG_NAME ("Modula-2")
 
@@ -69,7 +69,7 @@ DEFINE_LANG_NAME ("Modula-2")
   { "-fno-return",
       N_("turns off runtime checking for functions which finish without executing a RETURN statement") },
   { "-fcase",
-      N_("turns on runtime checking to check whether a CASE statement requires an ELSE clause when on was not specified") },
+      N_("turns on runtime checking to check whether a CASE statement requires an ELSE clause when one was not specified") },
   { "-fno-case",
       N_("turns off runtime checking to check whether a CASE statement requires an ELSE clause when on was not specified") },
   { "-fsoft-check-all",