diff options
author | Gaius Mulley <gaius.mulley@southwales.ac.uk> | 2022-05-19 00:57:41 +0100 |
---|---|---|
committer | Gaius Mulley <gaius.mulley@southwales.ac.uk> | 2022-05-19 00:57:41 +0100 |
commit | c7570ba4820a53c189b2265fa6be30546e99857d (patch) | |
tree | 144668e99c7567986395dd526f83997d8a533125 /gcc | |
parent | a762d9f0a65eff74e63d7063b809ebf5dd49f63b (diff) | |
download | gcc-c7570ba4820a53c189b2265fa6be30546e99857d.zip gcc-c7570ba4820a53c189b2265fa6be30546e99857d.tar.gz gcc-c7570ba4820a53c189b2265fa6be30546e99857d.tar.bz2 |
gm2spec.cc and lang-options.h corrected/replaced comments and fixed a typo.
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/m2/gm2spec.cc | 23 | ||||
-rw-r--r-- | gcc/m2/lang-options.h | 6 |
2 files changed, 15 insertions, 14 deletions
diff --git a/gcc/m2/gm2spec.cc b/gcc/m2/gm2spec.cc index eb0c2d8..2a61e44 100644 --- a/gcc/m2/gm2spec.cc +++ b/gcc/m2/gm2spec.cc @@ -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) diff --git a/gcc/m2/lang-options.h b/gcc/m2/lang-options.h index 16e8222..75206dc 100644 --- a/gcc/m2/lang-options.h +++ b/gcc/m2/lang-options.h @@ -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", |