From: Gaius Mulley Date: Wed, 18 May 2022 23:57:41 +0000 (+0100) Subject: gm2spec.cc and lang-options.h corrected/replaced comments and fixed a typo. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7570ba4820a53c189b2265fa6be30546e99857d;p=thirdparty%2Fgcc.git gm2spec.cc and lang-options.h corrected/replaced comments and fixed a typo. 2022-05-19 Gaius Mulley 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 --- diff --git a/gcc/m2/gm2spec.cc b/gcc/m2/gm2spec.cc index eb0c2d84db46..2a61e4497bc5 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 16e82227d787..75206dc39627 100644 --- a/gcc/m2/lang-options.h +++ b/gcc/m2/lang-options.h @@ -21,8 +21,8 @@ see . */ #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",