]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Corrected capitalization for start of comments.
authorGaius Mulley <gaius.mulley@southwales.ac.uk>
Thu, 19 May 2022 12:39:03 +0000 (13:39 +0100)
committerGaius Mulley <gaius.mulley@southwales.ac.uk>
Thu, 19 May 2022 12:39:03 +0000 (13:39 +0100)
2022-05-19   Gaius Mulley   <gaius.mulley@southwales.ac.uk>

gcc/m2/ChangeLog:

* gm2-gcc/m2assert.cc: Corrected comment formatting.
* gm2-gcc/m2block.cc: Corrected comment formatting.
* gm2-gcc/m2builtins.cc: Corrected comment formatting.
* gm2-gcc/m2convert.cc: Corrected comment formatting.
* gm2-gcc/m2decl.cc: Corrected comment formatting.
* gm2-gcc/m2except.cc: Corrected comment formatting.
* gm2-gcc/m2expr.cc: Corrected comment formatting.
* gm2-gcc/m2linemap.cc: Corrected comment formatting.
* gm2-gcc/m2statement.cc: Corrected comment formatting.
* gm2-gcc/m2treelib.cc: Corrected comment formatting.
* gm2-gcc/m2type.cc: Corrected comment formatting.
* gm2-gcc/rtegraph.cc: Corrected comment formatting.

Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
13 files changed:
gcc/m2/ChangeLog
gcc/m2/gm2-gcc/m2assert.cc
gcc/m2/gm2-gcc/m2block.cc
gcc/m2/gm2-gcc/m2builtins.cc
gcc/m2/gm2-gcc/m2convert.cc
gcc/m2/gm2-gcc/m2decl.cc
gcc/m2/gm2-gcc/m2except.cc
gcc/m2/gm2-gcc/m2expr.cc
gcc/m2/gm2-gcc/m2linemap.cc
gcc/m2/gm2-gcc/m2statement.cc
gcc/m2/gm2-gcc/m2treelib.cc
gcc/m2/gm2-gcc/m2type.cc
gcc/m2/gm2-gcc/rtegraph.cc

index d758358d727d9da163168be7855376658c3f2508..1391dbe605982a81988f1d0c08c1fa1491857cfc 100644 (file)
        * plugin/m2rte.cc: Further reformatting of comments.
        * gm2-gcc/m2statement.cc: Corrected comment formatting and
        removed usused debugging code.
+       * gm2-gcc/m2assert.cc: Corrected comment formatting.
+       * gm2-gcc/m2block.cc: Corrected comment formatting.
+       * gm2-gcc/m2builtins.cc: Corrected comment formatting.
+       * gm2-gcc/m2convert.cc: Corrected comment formatting.
+       * gm2-gcc/m2decl.cc: Corrected comment formatting.
+       * gm2-gcc/m2except.cc: Corrected comment formatting.
+       * gm2-gcc/m2expr.cc: Corrected comment formatting.
+       * gm2-gcc/m2linemap.cc: Corrected comment formatting.
+       * gm2-gcc/m2statement.cc: Corrected comment formatting.
+       * gm2-gcc/m2treelib.cc: Corrected comment formatting.
+       * gm2-gcc/m2type.cc: Corrected comment formatting.
+       * gm2-gcc/rtegraph.cc: Corrected comment formatting.
 
 2022-05-16   Gaius Mulley   <gaius.mulley@southwales.ac.uk>
 
index 7115e7d64def9482f9233006e2184a32f3d7e996..f59fa92660aff2e39128558b87b57b5f0765bdd9 100644 (file)
@@ -31,7 +31,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
 void
 m2assert_AssertLocation (location_t location)
 {
-  /* internally the compiler will use unknown location and
+  /* Internally the compiler will use unknown location and
      builtins_location so we ignore these values.  */
   if (location == BUILTINS_LOCATION || location == UNKNOWN_LOCATION)
     return;
index 2c39596f39b91acdbb41e47188115a362cc68fc6..985e0fe7041d8451fcc92904ab9b3f434fc2090e 100644 (file)
@@ -193,7 +193,7 @@ newLevel (void)
 
   init_binding_level (newlevel);
 
-  /* now we a push_statement_list.  */
+  /* Now we a push_statement_list.  */
   vec_safe_push (newlevel->m2_statements, m2block_begin_statement_list ());
   return newlevel;
 }
@@ -267,8 +267,8 @@ m2block_begin_statement_list (void)
 tree
 m2block_end_statement_list (tree t)
 {
-  /* should we do anything with, t?  Specifically we may need to test
-     for the presence of a label --fixme-- check this */
+  /* Should we do anything with, t?  Specifically we may need to test
+     for the presence of a label --fixme-- check this */
   return t;
 }
 
@@ -312,7 +312,7 @@ m2block_pushFunctionScope (tree fndecl)
     printf ("pushFunctionScope\n");
 #endif
 
-  /* allow multiple consecutive pushes of the same scope.  */
+  /* Allow multiple consecutive pushes of the same scope.  */
 
   if (current_binding_level != NULL
       && (current_binding_level->fndecl == fndecl))
@@ -321,11 +321,11 @@ m2block_pushFunctionScope (tree fndecl)
       return;
     }
 
-  /* firstly check to see that fndecl is not already on the binding
+  /* Firstly check to see that fndecl is not already on the binding
      stack.  */
 
   for (b = current_binding_level; b != NULL; b = b->next)
-    /* only allowed one instance of the binding on the stack at a time.  */
+    /* Only allowed one instance of the binding on the stack at a time.  */
     ASSERT_CONDITION (b->fndecl != fndecl);
 
   n = findLevel (fndecl);
@@ -350,20 +350,20 @@ m2block_popFunctionScope (void)
 
   if (current_binding_level->count > 0)
     {
-      /* multiple pushes have occurred of the same function scope (and
+      /* Multiple pushes have occurred of the same function scope (and
          ignored), pop them likewise.  */
       current_binding_level->count--;
       return fndecl;
     }
   ASSERT_CONDITION (current_binding_level->fndecl
-                    != NULL_TREE); /* expecting local scope.  */
+                    != NULL_TREE); /* Expecting local scope.  */
 
   ASSERT_CONDITION (current_binding_level->constants
-                    == NULL_TREE); /* should not be used.  */
+                    == NULL_TREE); /* Should not be used.  */
   ASSERT_CONDITION (current_binding_level->names
-                    == NULL_TREE); /* should be cleared.  */
+                    == NULL_TREE); /* Should be cleared.  */
   ASSERT_CONDITION (current_binding_level->decl
-                    == NULL_TREE); /* should be cleared.  */
+                    == NULL_TREE); /* Should be cleared.  */
 
   current_binding_level = current_binding_level->next;
   return fndecl;
@@ -389,7 +389,7 @@ void
 m2block_popGlobalScope (void)
 {
   ASSERT_CONDITION (
-      current_binding_level->is_global); /* expecting global scope.  */
+      current_binding_level->is_global); /* Expecting global scope.  */
   ASSERT_CONDITION (current_binding_level == global_binding_level);
 
   if (current_binding_level->count > 0)
index 9c8ccbcb5e38a94e6a9e03b73bdabdc90b4fc87d..bbfc605a36dd221415e008d1e60907477abc6a7e 100644 (file)
@@ -118,7 +118,7 @@ struct builtin_function_entry
   tree return_node;
 };
 
-/* entries are added by examining gcc/builtins.def and copying those
+/* Entries are added by examining gcc/builtins.def and copying those
    functions which can be applied to Modula-2.  */
 
 static struct builtin_function_entry list_of_builtins[] = {
@@ -235,7 +235,7 @@ static struct builtin_function_entry list_of_builtins[] = {
   { "__builtin_scalbnl", BT_FN_LONG_DOUBLE_LONG_DOUBLE_INT, BUILT_IN_SCALBNL,
     BUILT_IN_NORMAL, "scalblnl", NULL, NULL },
 
-  /* complex intrinsic functions.  */
+  /* Complex intrinsic functions.  */
   { "__builtin_cabs", BT_FN_DOUBLE_DCOMPLEX, BUILT_IN_CABS, BUILT_IN_NORMAL,
     "cabs", NULL, NULL },
   { "__builtin_cabsf", BT_FN_FLOAT_FCOMPLEX, BUILT_IN_CABSF, BUILT_IN_NORMAL,
@@ -417,7 +417,7 @@ static GTY (()) tree doubleptr_type_node;
 static GTY (()) tree floatptr_type_node;
 static GTY (()) tree builtin_ftype_int_var;
 
-/* prototypes for locally defined functions.  */
+/* Prototypes for locally defined functions.  */
 static tree DoBuiltinAlloca (location_t location, tree n);
 static tree DoBuiltinMemCopy (location_t location, tree dest, tree src,
                               tree n);
@@ -439,7 +439,7 @@ static tree dogUnderflow (location_t location, tree type);
 static tree doexception (location_t location, tree type);
 static tree doextend (location_t location, tree type);
 static tree donModes (location_t location, tree type);
-/* prototypes finish here.  */
+/* Prototypes finish here.  */
 
 #define m2builtins_c
 #include "m2builtins.h"
@@ -802,7 +802,7 @@ m2builtins_BuiltInAlloca (location_t location, tree n)
 }
 
 /* BuiltInIsfinite - return integer 1 if the real expression is
-   finite.  return integer 0 if it is not finite.  */
+   finite otherwise return integer 0.  */
 
 tree
 m2builtins_BuiltInIsfinite (location_t location, tree expression)
index c1a0b0874ca6a4cc37f8be4bda283a5b1fa6840a..e6bf75bd953173a4103d666db48b911df4209d02 100644 (file)
@@ -83,7 +83,7 @@ m2convert_ConvertString (tree type, tree expr)
 enum conversion_safety
 unsafe_conversion_p (location_t loc, tree type, tree expr, bool produce_warns)
 {
-  enum conversion_safety give_warning = SAFE_CONVERSION; /* is 0 or false.  */
+  enum conversion_safety give_warning = SAFE_CONVERSION; /* Is 0 or false.  */
   tree expr_type = TREE_TYPE (expr);
 
   if (TREE_CODE (expr) == REAL_CST || TREE_CODE (expr) == INTEGER_CST)
@@ -156,8 +156,8 @@ unsafe_conversion_p (location_t loc, tree type, tree expr, bool produce_warns)
 
 /* (Taken from c-common.cc and trimmed for Modula-2)
 
-Warns if the conversion of EXPR to TYPE may alter a value.  This is a
-   helper function for warnings_for_convert_and_check.  */
+   Warns if the conversion of EXPR to TYPE may alter a value.  This is
+   helper function for warnings_for_convert_and_check.  */
 
 static void
 conversion_warning (location_t loc, tree type, tree expr)
@@ -184,8 +184,8 @@ conversion_warning (location_t loc, tree type, tree expr)
     case TRUTH_NOT_EXPR:
 
       /* Conversion from boolean to a signed:1 bit-field (which only can
-      hold the values 0 and -1) doesn't lose information - but it does
-      change the value.  */
+        hold the values 0 and -1) doesn't lose information - but it does
+        change the value.  */
       if (TYPE_PRECISION (type) == 1 && !TYPE_UNSIGNED (type))
         warning_at (loc, OPT_Wconversion,
                     "conversion to %qT from boolean expression", type);
@@ -208,7 +208,7 @@ conversion_warning (location_t loc, tree type, tree expr)
       {
 
         /* In case of COND_EXPR, we do not care about the type of COND_EXPR,
-        only about the conversion of each operand.  */
+          only about the conversion of each operand.  */
         tree op1 = TREE_OPERAND (expr, 1);
         tree op2 = TREE_OPERAND (expr, 2);
 
@@ -217,7 +217,7 @@ conversion_warning (location_t loc, tree type, tree expr)
         return;
       }
 
-    default: /* 'expr' is not a constant.  */
+    default:  /* 'expr' is not a constant.  */
       conversion_kind = unsafe_conversion_p (loc, type, expr, true);
       if (conversion_kind == UNSAFE_REAL)
         warning_at (loc, OPT_Wfloat_conversion,
@@ -246,15 +246,15 @@ warnings_for_convert_and_check (location_t loc, tree type, tree expr,
     {
 
       /* Do not diagnose overflow in a constant expression merely because a
-      conversion overflowed.  */
+        conversion overflowed.  */
       if (TREE_OVERFLOW (result))
         TREE_OVERFLOW (result) = TREE_OVERFLOW (expr);
 
       if (TYPE_UNSIGNED (type))
         {
 
-          /* This detects cases like converting -129 or 256 to unsigned char.
-           */
+          /* This detects cases like converting -129 or 256 to unsigned
+            char.  */
           if (!int_fits_type_p (expr, m2type_gm2_signed_type (type)))
             warning_at (loc, OPT_Woverflow,
                         "large integer implicitly truncated to unsigned type");
@@ -297,8 +297,8 @@ convert_and_check (location_t loc, tree type, tree expr)
   tree expr_for_warning;
 
   /* Convert from a value with possible excess precision rather than
-  via the semantic type, but do not warn about values not fitting
-  exactly in the semantic type.  */
+     via the semantic type, but do not warn about values not fitting
+     exactly in the semantic type.  */
   if (TREE_CODE (expr) == EXCESS_PRECISION_EXPR)
     {
       tree orig_type = TREE_TYPE (expr);
@@ -351,7 +351,7 @@ converting_ISO_generic (location_t location, tree type, tree value,
   tree value_type = m2tree_skip_type_decl (TREE_TYPE (value));
 
   if (value_type == type)
-    /* we let the caller deal with this.  */
+    /* We let the caller deal with this.  */
     return FALSE;
 
   if ((TREE_CODE (value) == INTEGER_CST) && (type == generic_type))
@@ -398,11 +398,11 @@ convert_char_to_array (location_t location, tree type, tree value)
 
   nul[0] = (char)0;
 
-  /* store the initial char.  */
+  /* Store the initial char.  */
   m2type_BuildArrayConstructorElement (c, value, i);
   i = m2expr_BuildAdd (location, i, m2decl_BuildIntegerConstant (1), FALSE);
 
-  /* now pad out the remaining elements with nul chars.  */
+  /* Now pad out the remaining elements with nul chars.  */
   while (m2expr_CompareTrees (i, n) < 0)
     {
       m2type_BuildArrayConstructorElement (
@@ -466,11 +466,11 @@ m2convert_BuildConvert (location_t location, tree type, tree value,
     {
       if (TREE_TYPE (value) == m2type_GetM2CharType ())
 
-        /* passing a const char to an array [..] of char.  So we convert
+        /* Passing a const char to an array [..] of char.  So we convert
           const char into the correct length string.  */
         return convert_char_to_array (location, type, value);
       if (TREE_CODE (value) == STRING_CST)
-        /* convert a string into an array constant, padding with zeros if
+        /* Convert a string into an array constant, padding with zeros if
            necessary.  */
         return convert_string_to_array (location, type, value);
     }
index 7b03038bb624f4ac21c83a714b71116501df507d..9b6470e38b931cb909b2413b1a2698c39915dd7f 100644 (file)
@@ -37,7 +37,7 @@ extern GTY (()) tree current_function_decl;
 
 /* Used in BuildStartFunctionType.  */
 static GTY (()) tree param_type_list;
-static GTY (()) tree param_list = NULL_TREE; /* ready for the next time we
+static GTY (()) tree param_list = NULL_TREE; /* Ready for the next time we
                                                 call/define a function.  */
 
 /* DeclareKnownVariable - declares a variable in scope, funcscope.
@@ -107,7 +107,7 @@ m2decl_DeclareKnownVariable (location_t location, char *name, tree type,
 tree
 m2decl_DeclareKnownConstant (location_t location, tree type, tree value)
 {
-  tree id = make_node (IDENTIFIER_NODE); /* ignore the name of the constant. */
+  tree id = make_node (IDENTIFIER_NODE); /* Ignore the name of the constant. */
   tree decl;
 
   m2assert_AssertLocation (location);
@@ -166,7 +166,7 @@ m2decl_BuildStartFunctionDeclaration (int uses_varargs)
     param_type_list = NULL_TREE;
   else
     param_type_list = tree_cons (NULL_TREE, void_type_node, NULL_TREE);
-  param_list = NULL_TREE; /* ready for when we define a function.  */
+  param_list = NULL_TREE; /* Ready for when we define a function.  */
 }
 
 /* BuildEndFunctionDeclaration - build a function which will return a
@@ -188,7 +188,7 @@ m2decl_BuildEndFunctionDeclaration (location_t location_begin,
   ASSERT_BOOL (isnested);
   ASSERT_BOOL (ispublic);
   returntype = m2tree_skip_type_decl (returntype);
-  /* the function type depends on the return type and type of args,
+  /* The function type depends on the return type and type of args,
      both of which we have created in BuildParameterDeclaration */
   if (returntype == NULL_TREE)
     returntype = void_type_node;
@@ -221,7 +221,7 @@ m2decl_BuildEndFunctionDeclaration (location_t location_begin,
 
   rest_of_decl_compilation (fndecl, 1, 0);
   param_list
-      = NULL_TREE; /* ready for the next time we call/define a function.  */
+      = NULL_TREE; /* Ready for the next time we call/define a function.  */
   return fndecl;
 }
 
index b7b295cdaaf389120f8782d0af1e2742937b5b2b..a91f42b333850c2660094f1bb3a5aed496fbab76 100644 (file)
@@ -28,7 +28,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
   "Please report this crash to the GNU Modula-2 mailing list "                \
   "<gm2@nongnu.org>\n"
 
-/* external functions.  */
+/* External functions.  */
 
 #define m2except_c
 #include "m2assert.h"
@@ -40,7 +40,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
 #include "m2treelib.h"
 #include "m2type.h"
 
-/* local prototypes.  */
+/* Local prototypes.  */
 
 #include "m2except.h"
 
@@ -65,7 +65,7 @@ static tree build_address (tree t);
 void _M2_gm2except_init (void);
 void _M2_gm2except_finally (void);
 
-/* exception handling library functions.  */
+/* Exception handling library functions.  */
 
 static GTY (()) tree fn_begin_catch_tree = NULL_TREE;
 static GTY (()) tree fn_end_catch_tree = NULL_TREE;
@@ -151,7 +151,7 @@ m2except_InitExceptions (location_t location)
       location, location, "__cxa_free_exception", ptr_type_node, TRUE, FALSE,
       TRUE);
 
-  /* define integer type exception type which will match C++ int type
+  /* Define integer type exception type which will match C++ int type
      in the C++ runtime library.  */
   gm2_eh_int_type = build_eh_type_type (location, integer_type_node);
   m2block_popGlobalScope ();
@@ -385,7 +385,7 @@ gm2_build_throw (location_t location, tree exp)
   m2assert_AssertLocation (location);
 
   if (exp == NULL_TREE)
-    /* rethrow the current exception.  */
+    /* Rethrow the current exception.  */
     exp = build1 (THROW_EXPR, void_type_node, do_rethrow (location));
   else
     {
@@ -479,7 +479,7 @@ m2except_BuildTryEnd (tree try_block)
 
   TRY_HANDLERS (try_block) = m2block_begin_statement_list ();
 
-  /* now ensure that all successive add_stmts adds to this statement
+  /* Now ensure that all successive add_stmts adds to this statement
      sequence.  */
   m2block_push_statement_list (TRY_HANDLERS (try_block));
 }
@@ -522,7 +522,7 @@ begin_handler (location_t location)
 
   HANDLER_BODY (r) = m2block_begin_statement_list ();
 
-  /* now ensure that all successive add_stmts adds to this
+  /* Now ensure that all successive add_stmts adds to this
      statement sequence.  */
   m2block_push_statement_list (HANDLER_BODY (r));
   return r;
@@ -534,7 +534,7 @@ begin_handler (location_t location)
 static void
 finish_handler (location_t location, tree handler)
 {
-  /* we might need to rethrow the exception if we reach the end.
+  /* We might need to rethrow the exception if we reach the end.
      use this code:  finish_expr_stmt (build_throw (NULL_TREE));  */
   tree body = m2block_pop_statement_list ();
 
@@ -552,7 +552,7 @@ static tree
 finish_handler_parms (location_t location, tree handler)
 {
   m2assert_AssertLocation (location);
-  /* equivalent to C++ catch (...).  */
+  /* Equivalent to C++ catch (...).  */
   finish_expr_stmt (location, do_begin_catch (location));
 
   HANDLER_TYPE (handler) = NULL_TREE;
@@ -580,7 +580,7 @@ begin_try_block (location_t location)
   m2assert_AssertLocation (location);
   TRY_STMTS (r) = m2block_begin_statement_list ();
 
-  /* now ensure that all successive add_stmts adds to this statement
+  /* Now ensure that all successive add_stmts adds to this statement
      sequence.  */
   m2block_push_statement_list (TRY_STMTS (r));
   return r;
@@ -621,7 +621,6 @@ finish_expr_stmt (location_t location, tree expr)
 static tree
 maybe_cleanup_point_expr_void (tree expr)
 {
-  /* if (stmts_are_full_exprs_p ()).  */
   return fold_build_cleanup_point_expr (void_type_node, expr);
 }
 
index 7de2a4a0004d9c14e7bcaca8857d604ee33684bb..115ff96fc52c9229280222b52c2a85419efde845 100644 (file)
@@ -25,7 +25,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
 #include "../m2-tree.h"
 #include "m2convert.h"
 
-/* prototypes.  */
+/* Prototypes.  */
 
 #define m2expr_c
 #include "m2assert.h"
@@ -673,13 +673,13 @@ m2expr_BuildLRLn (location_t location, tree op1, tree op2, tree nBits,
 
   m2assert_AssertLocation (location);
 
-  /* ensure we wrap the rotate.  */
+  /* Ensure we wrap the rotate.  */
 
   op2min = m2expr_BuildModTrunc (
       location, m2convert_ToCardinal (location, op2),
       m2convert_ToCardinal (location, nBits), needconvert);
 
-  /* optimize if we are we going to rotate a TSIZE(BITSET) set.  */
+  /* Optimize if we are we going to rotate a TSIZE(BITSET) set.  */
 
   if (m2expr_CompareTrees (
           m2decl_BuildIntegerConstant (m2decl_GetBitsPerBitset ()), nBits)
@@ -690,7 +690,7 @@ m2expr_BuildLRLn (location_t location, tree op1, tree op2, tree nBits,
       tree mask = m2expr_BuildMask (location, nBits, needconvert);
       tree left, right;
 
-      /* make absolutely sure there are no high order bits lying around.  */
+      /* Make absolutely sure there are no high order bits lying around.  */
 
       op1 = m2expr_BuildLogicalAnd (location, op1, mask, needconvert);
       left = m2expr_BuildLSL (location, op1, op2min, needconvert);
@@ -715,12 +715,12 @@ m2expr_BuildLRRn (location_t location, tree op1, tree op2, tree nBits,
 
   m2assert_AssertLocation (location);
 
-  /* ensure we wrap the rotate.  */
+  /* Ensure we wrap the rotate.  */
 
   op2min = m2expr_BuildModTrunc (
       location, m2convert_ToCardinal (location, op2),
       m2convert_ToCardinal (location, nBits), needconvert);
-  /* optimize if we are we going to rotate a TSIZE(BITSET) set.  */
+  /* Optimize if we are we going to rotate a TSIZE(BITSET) set.  */
 
   if (m2expr_CompareTrees (
           m2decl_BuildIntegerConstant (m2decl_GetBitsPerBitset ()), nBits)
@@ -731,7 +731,7 @@ m2expr_BuildLRRn (location_t location, tree op1, tree op2, tree nBits,
       tree mask = m2expr_BuildMask (location, nBits, needconvert);
       tree left, right;
 
-      /* make absolutely sure there are no high order bits lying around.  */
+      /* Make absolutely sure there are no high order bits lying around.  */
 
       op1 = m2expr_BuildLogicalAnd (location, op1, mask, needconvert);
       right = m2expr_BuildLSR (location, op1, op2min, needconvert);
@@ -835,7 +835,7 @@ m2expr_BuildBinarySetDo (location_t location, tree settype, tree op1, tree op2,
   if (m2expr_CompareTrees (
           size, m2decl_BuildIntegerConstant (SET_WORD_SIZE / BITS_PER_UNIT))
       <= 0)
-    /* small set size <= TSIZE(WORD).  */
+    /* Small set size <= TSIZE(WORD).  */
     (*binop) (location,
               m2treelib_get_rvalue (location, op1, settype, is_op1lvalue),
               m2treelib_get_rvalue (location, op2, settype, is_op2lvalue),
@@ -854,7 +854,7 @@ m2expr_BuildBinarySetDo (location_t location, tree settype, tree op1, tree op2,
                   FALSE)),
           m2expr_GetCardinalOne (location), FALSE);
 
-      /* if op3 is constant then make op3 positive and remember which
+      /* If op3 is constant then make op3 positive and remember which
       direction we are shifting.  */
 
       op3 = m2tree_skip_const_decl (op3);
@@ -869,13 +869,13 @@ m2expr_BuildBinarySetDo (location_t location, tree settype, tree op1, tree op2,
                                         op3, FALSE);
         }
 
-      /* these parameters must match the prototypes of the procedures:
+      /* These parameters must match the prototypes of the procedures:
         ShiftLeft, ShiftRight, ShiftVal, RotateLeft, RotateRight, RotateVal
         inside gm2-iso/SYSTEM.mod.  */
 
       /* Remember we must build the parameters in reverse.  */
 
-      /* parameter 4 amount.  */
+      /* Parameter 4 amount.  */
       m2statement_BuildParam (
           location,
           m2convert_BuildConvert (
@@ -885,27 +885,27 @@ m2expr_BuildBinarySetDo (location_t location, tree settype, tree op1, tree op2,
                                     is_op3lvalue),
               FALSE));
 
-      /* parameter 3 nBits.  */
+      /* Parameter 3 nBits.  */
       m2statement_BuildParam (
           location,
           m2convert_BuildConvert (location, m2type_GetM2CardinalType (),
                                   m2expr_FoldAndStrip (nBits), FALSE));
 
-      /* parameter 2 destination set.  */
+      /* Parameter 2 destination set.  */
       m2statement_BuildParam (
           location,
           buildUnboundedArrayOf (
               unbounded,
               m2treelib_get_set_address (location, op1, is_op1lvalue), high));
 
-      /* parameter 1 source set.  */
+      /* Parameter 1 source set.  */
       m2statement_BuildParam (
           location,
           buildUnboundedArrayOf (
               unbounded,
               m2treelib_get_set_address (location, op2, is_op2lvalue), high));
 
-      /* now call the appropriate procedure inside SYSTEM.mod.  */
+      /* Now call the appropriate procedure inside SYSTEM.mod.  */
       if (is_const)
         if (is_left)
           result = m2statement_BuildProcedureCallTree (location, leftproc,
@@ -1105,7 +1105,7 @@ m2expr_BuildLessThanZero (location_t location, tree value, tree type, tree min,
   else if (m2expr_CompareTrees (max, m2expr_GetIntegerZero (location)) == -1)
     /* max is less than zero therefore value will always be < 0.  */
     return m2expr_GetIntegerOne (location);
-  /* we now know 0 lies in the range min..max so we can safely cast
+  /* We now know 0 lies in the range min..max so we can safely cast
      zero to type.  */
   return m2expr_BuildLessThan (
       location, value,
@@ -1127,7 +1127,7 @@ m2expr_BuildGreaterThanZero (location_t location, tree value, tree type,
     /* max is less than or equal to zero therefore value will always be
        <= 0.  */
     return m2expr_GetIntegerZero (location);
-  /* we now know 0 lies in the range min..max so we can safely cast
+  /* We now know 0 lies in the range min..max so we can safely cast
      zero to type.  */
   return m2expr_BuildGreaterThan (
       location, value,
@@ -1149,7 +1149,7 @@ m2expr_BuildEqualToZero (location_t location, tree value, tree type, tree min,
     /* max is less than or equal to zero therefore value will always be <
        0.  */
     return m2expr_GetIntegerZero (location);
-  /* we now know 0 lies in the range min..max so we can safely cast
+  /* We now know 0 lies in the range min..max so we can safely cast
      zero to type.  */
   return m2expr_BuildEqualTo (
       location, value,
@@ -1171,7 +1171,7 @@ m2expr_BuildNotEqualToZero (location_t location, tree value, tree type,
     /* max is less than or equal to zero therefore value will always be
        true.  */
     return m2expr_GetIntegerOne (location);
-  /* we now know 0 lies in the range min..max so we can safely cast
+  /* We now know 0 lies in the range min..max so we can safely cast
      zero to type.  */
   return m2expr_BuildNotEqualTo (
       location, value,
@@ -1193,7 +1193,7 @@ m2expr_BuildGreaterThanOrEqualZero (location_t location, tree value, tree type,
   else if (m2expr_CompareTrees (max, m2expr_GetIntegerZero (location)) < 0)
     /* max is less than zero therefore value will always be < 0.  */
     return m2expr_GetIntegerZero (location);
-  /* we now know 0 lies in the range min..max so we can safely cast
+  /* We now know 0 lies in the range min..max so we can safely cast
      zero to type.  */
   return m2expr_BuildGreaterThan (
       location, value,
@@ -1215,7 +1215,7 @@ m2expr_BuildLessThanOrEqualZero (location_t location, tree value, tree type,
   else if (m2expr_CompareTrees (max, m2expr_GetIntegerZero (location)) <= 0)
     /* max is less than or equal to zero therefore value will always be <= 0.  */
     return m2expr_GetIntegerOne (location);
-  /* we now know 0 lies in the range min..max so we can safely cast
+  /* We now know 0 lies in the range min..max so we can safely cast
      zero to type.  */
   return m2expr_BuildLessThanOrEqual (
       location, value,
@@ -1518,16 +1518,16 @@ divMinUnderflow (location_t location, tree value, tree lowest, tree min, tree ma
 
 PROCEDURE divtruncexpr (a, b: INTEGER) : BOOLEAN ;
 BEGIN
-   (* firstly catch division by 0.  *)
+   (* Firstly catch division by 0.  *)
    RETURN ((b = 0) OR
-           (* case 2 range is always negative.  *)
-           (* in which case a division will be illegal as result will be positive.  *)
+           (* Case 2 range is always negative.  *)
+           (* In which case a division will be illegal as result will be positive.  *)
            (max < 0) OR
-           (* case 1 both min / max are positive, check for underflow.  *)
+           (* Case 1 both min / max are positive, check for underflow.  *)
            ((min >= 0) AND (max >= 0) AND (multMinOverflow (b) OR (a < b * min))) OR
-           (* case 1 both min / max are positive, check for overflow.  *)
+           (* Case 1 both min / max are positive, check for overflow.  *)
            ((min >= 0) AND (max >= 0) AND (divMinUnderflow (a) OR (b > a DIV min))) OR
-           (* case 3 mixed range, need to check underflow.  *)
+           (* Case 3 mixed range, need to check underflow.  *)
            ((min < 0) AND (max >= 0) AND (a < 0) AND (b < 0) AND (b >= a DIV min)) OR
            ((min < 0) AND (max >= 0) AND (a < 0) AND (b > 0) AND (b <= a DIV max)) OR
            ((min < 0) AND (max >= 0) AND (a >= 0) AND (b < 0) AND (a DIV b < min)))
@@ -2415,7 +2415,7 @@ checkWholeDivFloorOverflow (location_t location, tree i, tree j, tree lowest,
                                                            i, j, lowest, min, max));
 
   if (M2Options_GetISO ())
-    /*  ISO Modula-2 raises an exception if the right hand operand is < 0.  */
+    /* ISO Modula-2 raises an exception if the right hand operand is < 0.  */
     j_lt_zero = m2expr_FoldAndStrip (m2expr_BuildLessThanZero (location, j, lowest, min, max));
   else
     j_lt_zero = m2expr_GetIntegerZero (location);
@@ -2633,7 +2633,7 @@ m2expr_BuildAddAddress (location_t location, tree op1, tree op2)
                           m2expr_FoldAndStrip (op2));
 }
 
-/*  BuildNegateCheck builds a negate tree.  */
+/* BuildNegateCheck builds a negate tree.  */
 
 tree
 m2expr_BuildNegateCheck (location_t location, tree arg, tree lowest, tree min,
@@ -2693,7 +2693,7 @@ m2expr_BuildMult (location_t location, tree op1, tree op2, int needconvert)
   return m2expr_build_binary_op (location, MULT_EXPR, op1, op2, needconvert);
 }
 
-/*  BuildMultCheck builds a multiplication tree.  */
+/* BuildMultCheck builds a multiplication tree.  */
 
 tree
 m2expr_BuildMultCheck (location_t location, tree op1, tree op2, tree lowest,
@@ -3022,7 +3022,7 @@ base_type (tree type)
 }
 
 /* boolean_enum_to_unsigned convert a BOOLEAN_TYPE, t, or
-ENUMERAL_TYPE to an unsigned type.  */
+   ENUMERAL_TYPE to an unsigned type.  */
 
 static tree
 boolean_enum_to_unsigned (location_t location, tree t)
@@ -3047,7 +3047,7 @@ check_for_comparison (location_t location, tree op, tree badType,
 {
   m2assert_AssertLocation (location);
   if (m2tree_skip_type_decl (TREE_TYPE (op)) == badType)
-    /* cannot compare array contents in m2expr_build_binary_op.  */
+    /* Cannot compare array contents in m2expr_build_binary_op.  */
     return m2expr_BuildIndirect (
         location, m2expr_BuildAddr (location, op, FALSE), goodType);
   return op;
@@ -3194,7 +3194,7 @@ m2expr_BuildIfConstInVar (location_t location, tree type, tree varset,
   if (m2expr_CompareTrees (
           size, m2decl_BuildIntegerConstant (SET_WORD_SIZE / BITS_PER_UNIT))
       <= 0)
-    /* small set size <= TSIZE(WORD).  */
+    /* Small set size <= TSIZE(WORD).  */
     m2treelib_do_jump_if_bit (
         location, NE_EXPR,
         m2treelib_get_rvalue (location, varset, type, is_lvalue), constel,
@@ -3230,7 +3230,7 @@ m2expr_BuildIfNotConstInVar (location_t location, tree type, tree varset,
   if (m2expr_CompareTrees (
           size, m2decl_BuildIntegerConstant (SET_WORD_SIZE / BITS_PER_UNIT))
       <= 0)
-    /* small set size <= TSIZE(WORD).  */
+    /* Small set size <= TSIZE(WORD).  */
     m2treelib_do_jump_if_bit (
         location, EQ_EXPR,
         m2treelib_get_rvalue (location, varset, type, is_lvalue), constel,
@@ -3259,7 +3259,7 @@ m2expr_BuildIfVarInVar (location_t location, tree type, tree varset,
                         tree high ATTRIBUTE_UNUSED, char *label)
 {
   tree size = m2expr_GetSizeOf (location, type);
-  /* calculate the index from the first bit, ie bit 0 represents low value.  */
+  /* Calculate the index from the first bit, ie bit 0 represents low value.  */
   tree index = m2expr_BuildSub (
       location, m2convert_BuildConvert (location, m2type_GetIntegerType (),
                                         varel, FALSE),
@@ -3271,7 +3271,7 @@ m2expr_BuildIfVarInVar (location_t location, tree type, tree varset,
   if (m2expr_CompareTrees (
           size, m2decl_BuildIntegerConstant (SET_WORD_SIZE / BITS_PER_UNIT))
       <= 0)
-    /* small set size <= TSIZE(WORD).  */
+    /* Small set size <= TSIZE(WORD).  */
     m2treelib_do_jump_if_bit (
         location, NE_EXPR,
         m2treelib_get_rvalue (location, varset, type, is_lvalue), index,
@@ -3279,11 +3279,11 @@ m2expr_BuildIfVarInVar (location_t location, tree type, tree varset,
   else
     {
       tree p1 = m2treelib_get_set_address (location, varset, is_lvalue);
-      /* which word do we need to fetch?  */
+      /* Which word do we need to fetch?  */
       tree word_index = m2expr_FoldAndStrip (m2expr_BuildDivTrunc (
           location, index, m2decl_BuildIntegerConstant (SET_WORD_SIZE),
           FALSE));
-      /* calculate the bit in this word.  */
+      /* Calculate the bit in this word.  */
       tree offset_into_word = m2expr_FoldAndStrip (m2expr_BuildModTrunc (
           location, index, m2decl_BuildIntegerConstant (SET_WORD_SIZE),
           FALSE));
@@ -3291,11 +3291,11 @@ m2expr_BuildIfVarInVar (location_t location, tree type, tree varset,
           location, word_index,
           m2decl_BuildIntegerConstant (SET_WORD_SIZE / BITS_PER_UNIT), FALSE));
 
-      /* calculate the address of the word we are interested in.  */
+      /* Calculate the address of the word we are interested in.  */
       p1 = m2expr_BuildAddAddress (location,
                                    m2convert_convertToPtr (location, p1), p2);
 
-      /* fetch the word, extract the bit and test for != 0.  */
+      /* Fetch the word, extract the bit and test for != 0.  */
       m2treelib_do_jump_if_bit (
           location, NE_EXPR,
           m2expr_BuildIndirect (location, p1, m2type_GetBitsetType ()),
@@ -3311,7 +3311,7 @@ m2expr_BuildIfNotVarInVar (location_t location, tree type, tree varset,
                            tree high ATTRIBUTE_UNUSED, char *label)
 {
   tree size = m2expr_GetSizeOf (location, type);
-  /* calculate the index from the first bit, ie bit 0 represents low value.  */
+  /* Calculate the index from the first bit, ie bit 0 represents low value.  */
   tree index = m2expr_BuildSub (
       location, m2convert_BuildConvert (location, m2type_GetIntegerType (),
                                         m2expr_FoldAndStrip (varel), FALSE),
@@ -3325,7 +3325,7 @@ m2expr_BuildIfNotVarInVar (location_t location, tree type, tree varset,
   if (m2expr_CompareTrees (
           size, m2decl_BuildIntegerConstant (SET_WORD_SIZE / BITS_PER_UNIT))
       <= 0)
-    /* small set size <= TSIZE(WORD).  */
+    /* Small set size <= TSIZE(WORD).  */
     m2treelib_do_jump_if_bit (
         location, EQ_EXPR,
         m2treelib_get_rvalue (location, varset, type, is_lvalue), index,
@@ -3333,13 +3333,13 @@ m2expr_BuildIfNotVarInVar (location_t location, tree type, tree varset,
   else
     {
       tree p1 = m2treelib_get_set_address (location, varset, is_lvalue);
-      /* calculate the index from the first bit.  */
+      /* Calculate the index from the first bit.  */
 
-      /* which word do we need to fetch?  */
+      /* Which word do we need to fetch?  */
       tree word_index = m2expr_FoldAndStrip (m2expr_BuildDivTrunc (
           location, index, m2decl_BuildIntegerConstant (SET_WORD_SIZE),
           FALSE));
-      /* calculate the bit in this word.  */
+      /* Calculate the bit in this word.  */
       tree offset_into_word = m2expr_FoldAndStrip (m2expr_BuildModTrunc (
           location, index, m2decl_BuildIntegerConstant (SET_WORD_SIZE),
           FALSE));
@@ -3347,10 +3347,10 @@ m2expr_BuildIfNotVarInVar (location_t location, tree type, tree varset,
           location, word_index,
           m2decl_BuildIntegerConstant (SET_WORD_SIZE / BITS_PER_UNIT), FALSE));
 
-      /* calculate the address of the word we are interested in.  */
+      /* Calculate the address of the word we are interested in.  */
       p1 = m2expr_BuildAddAddress (location, p1, p2);
 
-      /* fetch the word, extract the bit and test for == 0.  */
+      /* Fetch the word, extract the bit and test for == 0.  */
       m2treelib_do_jump_if_bit (
           location, EQ_EXPR,
           m2expr_BuildIndirect (location, p1, m2type_GetBitsetType ()),
@@ -3675,7 +3675,7 @@ m2expr_BuildISOModM2Check (location_t location,
                                    m2convert_BuildConvert (location, TREE_TYPE (op2),
                                                            m2expr_GetIntegerZero (location), FALSE));
 
-  /* return the result of the modulus.  */
+  /* Return the result of the modulus.  */
   return fold_build3 (COND_EXPR, TREE_TYPE (op1), cond,
                      /* op2 < 0.  */
                      m2expr_BuildModCeilCheck (location, op1, op2, lowest, min, max),
@@ -3808,7 +3808,7 @@ m2expr_BuildBinaryForeachWordDo (location_t location, tree type, tree op1,
   if (m2expr_CompareTrees (
           size, m2decl_BuildIntegerConstant (SET_WORD_SIZE / BITS_PER_UNIT))
       <= 0)
-    /* small set size <= TSIZE(WORD).  */
+    /* Small set size <= TSIZE(WORD).  */
     m2statement_BuildAssignmentTree (
         location, m2treelib_get_rvalue (location, op1, type, is_op1lvalue),
         (*binop) (
@@ -3816,7 +3816,7 @@ m2expr_BuildBinaryForeachWordDo (location_t location, tree type, tree op1,
             m2treelib_get_rvalue (location, op3, type, is_op3lvalue), FALSE));
   else
     {
-      /* large set size > TSIZE(WORD).  */
+      /* Large set size > TSIZE(WORD).  */
 
       tree p2 = m2treelib_get_set_address_if_var (location, op2, is_op2lvalue,
                                                   is_op2const);
@@ -3966,7 +3966,7 @@ m2expr_interpret_integer (const char *str, unsigned int base,
           else
             {
               overflow = append_digit (low, high, c, base);
-              max = 0; /* from now on we always use append_digit.  */
+              max = 0; /* From now on we always use append_digit.  */
             }
         }
     }
@@ -4091,7 +4091,7 @@ m2expr_interpret_m2_integer (const char *str, unsigned int base,
           else
             {
               overflow = append_m2_digit (low, high, c, base);
-              max = 0; /* from now on we always use append_digit.  */
+              max = 0; /* From now on we always use append_digit.  */
             }
         }
     }
index 272a0a2e2c1fedc2a38603774c89c14f04528c5b..c1c6e2b58a6444281793ec35c86de547fcc00624 100644 (file)
@@ -21,7 +21,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
 
 #include "gcc-consolidation.h"
 
-/* utilize some of the C build routines */
+/* Utilize some of the C build routines */
 
 #include "../gm2-lang.h"
 #include "../m2-tree.h"
@@ -118,17 +118,14 @@ EXTERN
 location_t
 m2linemap_GetLocationBinary (location_t caret, location_t start, location_t finish)
 {
-#if 1
   if (isSrcLocation (start) && isSrcLocation (finish) && isSrcLocation (caret)
     && (m2linemap_GetFilenameFromLocation (start) != NULL))
     {
       linemap_add (line_table, LC_ENTER, false, xstrdup (m2linemap_GetFilenameFromLocation (start)), 1);
       gcc_assert (inFile);
       location_t location = make_location (caret, start, finish);
-      /* error_at (location, "testing here"); */
       return location;
     }
-#endif
   return caret;
 }
 
index 2fd833c7bee25f6ea3aa73b2a98b509f30221c83..6943fef55bd23267034b29c66f6f507d1157433c 100644 (file)
@@ -24,7 +24,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
 #include "../gm2-lang.h"
 #include "../m2-tree.h"
 
-/* prototypes.  */
+/* Prototypes.  */
 
 #define m2statement_c
 #include "m2assert.h"
@@ -37,7 +37,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
 #include "m2treelib.h"
 #include "m2type.h"
 
-static GTY (()) tree param_list = NULL_TREE; /* ready for the next time we
+static GTY (()) tree param_list = NULL_TREE; /* Ready for the next time we
                                                 call/define a function.  */
 static GTY (()) tree last_function = NULL_TREE;
 
@@ -69,7 +69,7 @@ m2statement_BuildStartFunctionCode (location_t location, tree fndecl,
   /* Begin the statement tree for this function.  */
   DECL_SAVED_TREE (fndecl) = NULL_TREE;
 
-  /* set the context of these parameters to this function.  */
+  /* Set the context of these parameters to this function.  */
   for (param_decl = DECL_ARGUMENTS (fndecl); param_decl;
        param_decl = TREE_CHAIN (param_decl))
     DECL_CONTEXT (param_decl) = fndecl;
@@ -86,8 +86,8 @@ static void
 gm2_gimplify_function_node (tree fndecl)
 {
   /* Convert all nested functions to GIMPLE now.  We do things in this
-  order so that items like VLA sizes are expanded properly in the
-  context of the correct function.  */
+     order so that items like VLA sizes are expanded properly in the
+     context of the correct function.  */
   struct cgraph_node *cgn;
 
   dump_function (TDI_original, fndecl);
@@ -272,7 +272,7 @@ m2statement_BuildProcedureCallTree (location_t location, tree procedure,
   m2assert_AssertLocation (location);
   ASSERT_CONDITION (
       last_function
-      == NULL_TREE); /* previous function value has not been collected.  */
+      == NULL_TREE); /* Previous function value has not been collected.  */
   TREE_USED (procedure) = TRUE;
 
   for (i = 0; i < n; i++)
@@ -295,7 +295,7 @@ m2statement_BuildProcedureCallTree (location_t location, tree procedure,
 #endif
 
       param_list
-          = NULL_TREE; /* ready for the next time we call a procedure.  */
+          = NULL_TREE; /* Ready for the next time we call a procedure.  */
       last_function = NULL_TREE;
       return call;
     }
@@ -306,7 +306,7 @@ m2statement_BuildProcedureCallTree (location_t location, tree procedure,
       TREE_USED (last_function) = TRUE;
       TREE_SIDE_EFFECTS (last_function) = TRUE;
       param_list
-          = NULL_TREE; /* ready for the next time we call a procedure.  */
+          = NULL_TREE; /* Ready for the next time we call a procedure.  */
       return last_function;
     }
 }
@@ -509,7 +509,7 @@ m2statement_BuildAsm (location_t location, tree instr, int isVolatile,
   m2assert_AssertLocation (location);
 
   /* ASM statements without outputs, including simple ones, are treated
-  as volatile.  */
+     as volatile.  */
   ASM_INPUT_P (args) = isSimple;
   ASM_VOLATILE_P (args) = isVolatile;
 
index 84eb1f9cf2bf18241f503065f2e153641e40bb26..8f463e2c3d19e616bb617f4beed400dfb99ead41 100644 (file)
@@ -128,7 +128,7 @@ build_modify_expr (location_t location, tree lhs, enum tree_code modifycode,
      always has the same type as the LHS argument.  */
 
   ASSERT_CONDITION (olhstype == TREE_TYPE (result));
-  /* in Modula-2 I'm assuming this will be true this maybe wrong, but
+  /* In Modula-2 I'm assuming this will be true this maybe wrong, but
      at least I'll know about it soon.  If true then we do not need to
      implement convert_for_assignment - which is a huge win.  */
 
index 7476d3a4740cfb401b3dd400da8f96d81efad37b..4b299e0614ce091ab25a6de06afcb6c68db9577f 100644 (file)
@@ -43,18 +43,18 @@ static int broken_set_debugging_info = TRUE;
 
 struct GTY (()) struct_constructor
 {
-  /* constructor_type, the type that we are constructing.  */
+  /* Constructor_type, the type that we are constructing.  */
   tree GTY ((skip (""))) constructor_type;
-  /* constructor_fields, the list of fields belonging to
+  /* Constructor_fields, the list of fields belonging to
      constructor_type.  Used by SET and RECORD constructors.  */
   tree GTY ((skip (""))) constructor_fields;
-  /* constructor_element_list, the list of constants used by SET and
+  /* Constructor_element_list, the list of constants used by SET and
      RECORD constructors.  */
   tree GTY ((skip (""))) constructor_element_list;
-  /* constructor_elements, used by an ARRAY initializer all elements
+  /* Constructor_elements, used by an ARRAY initializer all elements
      are held in reverse order.  */
   vec<constructor_elt, va_gc> *constructor_elements;
-  /* level, the next level down in the constructor stack.  */
+  /* Level, the next level down in the constructor stack.  */
   struct struct_constructor *level;
 };
 
@@ -158,7 +158,7 @@ m2type_BuildStartArrayType (tree index_type, tree elt_type, int type)
   ASSERT_CONDITION (index_type != NULL_TREE);
   if (elt_type == NULL_TREE)
     {
-      /* cannot use GCC canonicalization routines yet, so we use our front
+      /* Cannot use GCC canonicalization routines yet, so we use our front
          end version based on the front end type.  */
       return gm2_canonicalize_array (index_type, type);
     }
@@ -255,7 +255,7 @@ gm2_build_array_type (tree elementtype, tree indextype, int fetype)
 }
 
 /* ValueInTypeRange returns TRUE if the constant, value, lies within
-the range of, type.  */
+   the range of, type.  */
 
 int
 m2type_ValueInTypeRange (tree type, tree value)
@@ -270,7 +270,7 @@ m2type_ValueInTypeRange (tree type, tree value)
 }
 
 /* ValueOutOfTypeRange returns TRUE if the constant, value, exceeds
-the range of, type.  */
+   the range of, type.  */
 
 int
 m2type_ValueOutOfTypeRange (tree type, tree value)
@@ -715,8 +715,6 @@ m2type_GetISOLocType (void)
   return m2_iso_loc_type_node;
 }
 
-/* --fixme-- section  check these gaius - the function names are misleading
- * --fixme-- once the compiler is building correctly.  */
 /* GetWordType - return the C unsigned data type.  */
 
 tree
@@ -749,14 +747,13 @@ m2type_GetLongRealType (void)
   return long_double_type_node;
 }
 
-/* GetRealType - */
+/* GetRealType - returns the C double_type_node.  */
 
 tree
 m2type_GetRealType (void)
 {
   return double_type_node;
 }
-/* end of --fixme-- section.  */
 
 /* GetBitnumType - return the ISO bitnum type.  */
 
@@ -1275,8 +1272,8 @@ gm2_finish_decl (location_t location, tree decl)
     }
 
   /* Output the assembler code and/or RTL code for variables and
-  functions, unless the type is an undefined structure or union.  If
-  not, it will get done when the type is completed.  */
+     functions, unless the type is an undefined structure or union.  If
+     not, it will get done when the type is completed.  */
 
   if (TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == FUNCTION_DECL)
     {
@@ -1286,7 +1283,7 @@ gm2_finish_decl (location_t location, tree decl)
               || DECL_INITIAL (decl) == error_mark_node)
 
             /* Don't output anything when a tentative file-scope definition is
-            seen.  But at end of compilation, do output code for them.  */
+              seen.  But at end of compilation, do output code for them.  */
             DECL_DEFER_OUTPUT (decl) = 1;
           rest_of_decl_compilation (decl, true, 0);
         }
@@ -1295,7 +1292,7 @@ gm2_finish_decl (location_t location, tree decl)
         {
 
           /* Recompute the RTL of a local array now if it used to be an
-          incomplete type.  */
+            incomplete type.  */
           if (was_incomplete && !TREE_STATIC (decl) && !DECL_EXTERNAL (decl))
             {
               /* If we used it already as memory, it must stay in memory.  */
@@ -1356,7 +1353,7 @@ build_m2_iso_word_node (location_t location, int loc)
   m2assert_AssertLocation (location);
   /* Define `WORD' as specified in ISO m2
 
-WORD = ARRAY [0..SizeOfWord / SizeOfLoc] OF LOC ; */
+     WORD = ARRAY [0..SizeOfWord / SizeOfLoc] OF LOC ; */
 
   if (m2decl_GetBitsPerInt () == BITS_PER_UNIT)
     c = m2type_GetISOLocType ();
@@ -1380,7 +1377,7 @@ build_m2_iso_byte_node (location_t location, int loc)
 
   /* Define `BYTE' as specified in ISO m2
 
-BYTE = ARRAY [0..SizeOfByte / SizeOfLoc] OF LOC ; */
+     BYTE = ARRAY [0..SizeOfByte / SizeOfLoc] OF LOC ; */
 
   if (BITS_PER_UNIT == 8)
     c = m2type_GetISOLocType ();
@@ -1729,7 +1726,7 @@ build_m2_cardinal_address_type_node (location_t location)
   return build_m2_specific_size_type (location, INTEGER_TYPE, bits, FALSE);
 }
 
-/* InitBaseTypes - */
+/* InitBaseTypes create the Modula-2 base types.  */
 
 void
 m2type_InitBaseTypes (location_t location)
@@ -1792,8 +1789,8 @@ m2type_InitBaseTypes (location_t location)
 /* BuildStartType - given a, type, with a, name, return a GCC
    declaration of this type.  TYPE name = foo ;
 
-the type, foo, maybe a partially created type (which has yet to be
-   'gm2_finish_decl'ed.  */
+   the type, foo, maybe a partially created type (which has
+   yet to be 'gm2_finish_decl'ed).  */
 
 tree
 m2type_BuildStartType (location_t location, char *name, tree type)
@@ -1953,13 +1950,8 @@ m2type_BuildTypeDeclaration (location_t location, tree type)
       m2type_BuildTypeDeclaration (location, TREE_TYPE (type));
       m2block_pushDecl (
           build_stmt (location, DECL_EXPR,
-                      type)); /* is this safe?  --fixme-- gaius got here.  */
+                      type));  /* Is this safe?  --fixme--.  */
     }
-
-#if 0
-    add_stmt (build_stmt (location, DECL_EXPR, type));
-    add_stmt (build_stmt (location, DECL_EXPR, build_decl (location, TYPE_DECL, NULL, type)));
-#endif
 }
 
 /* Begin compiling the definition of an enumeration type.  NAME is
@@ -1980,7 +1972,7 @@ gm2_start_enum (location_t location, tree name, int ispacked)
                 IDENTIFIER_POINTER (name));
 
       /* Completely replace its old definition.  The old enumerators remain
-      defined, however.  */
+        defined, however.  */
       TYPE_VALUES (enumtype) = 0;
     }
 
@@ -2185,7 +2177,7 @@ m2type_BuildEnumerator (location_t location, char *name, tree value,
   tree gccenum = gm2_build_enumerator (location, id, copy_of_value);
 
   m2assert_AssertLocation (location);
-  /* choose copy_of_value for enum value.  */
+  /* Choose copy_of_value for enum value.  */
   *enumvalues = chainon (gccenum, *enumvalues);
   return copy_of_value;
 }
@@ -2502,7 +2494,7 @@ m2type_BuildSubrangeType (location_t location, char *name, tree type,
 
   if ((name != NULL) && (strcmp (name, "") != 0))
     {
-      /* declared as TYPE foo = [x..y];  */
+      /* Declared as TYPE foo = [x..y];  */
       range_type = m2type_DeclareKnownType (location, name, range_type);
       layout_type (m2tree_skip_type_decl (range_type));
     }
@@ -2552,7 +2544,7 @@ gm2_start_struct (location_t location, enum tree_code code, char *name)
   else
     id = get_identifier (name);
 
-  TYPE_PACKED (s) = FALSE; /* this is set TRUE later if necessary.  */
+  TYPE_PACKED (s) = FALSE; /* This maybe set TRUE later if necessary.  */
 
   m2block_pushDecl (build_decl (location, TYPE_DECL, id, s));
   return s;
@@ -2662,11 +2654,6 @@ m2type_BuildEndRecord (location_t location, tree record, tree fieldlist,
   /* Now we have the truly final field list.  Store it in this type and
      in the variants.  */
 
-  ASSERT_CONDITION (TYPE_FIELDS (record)
-                    == fieldlist); /* --fixme-- remove this.  */
-  TYPE_FIELDS (record)
-      = fieldlist; /* and this once the condition always passes.  */
-
   for (x = TYPE_MAIN_VARIANT (record); x; x = TYPE_NEXT_VARIANT (x))
     {
       TYPE_FIELDS (x) = TYPE_FIELDS (record);
@@ -2679,7 +2666,7 @@ m2type_BuildEndRecord (location_t location, tree record, tree fieldlist,
   TYPE_STUB_DECL (record) = d;
 
   /* Finish debugging output for this type.  This must be done after we have
-   * called build_decl.  */
+     called build_decl.  */
   rest_of_type_compilation (record, m2block_toplevel ());
 
   return record;
index 15271e4554f7b9f670c5c427f08ec78858891dc2..dcb75b6bd1cc1a9efac8d0cb6b4bab171b490b3e 100644 (file)
@@ -98,9 +98,9 @@ rtegraph_set_current_function (rtenode *func)
 
 void rtegraph_include_rtscall (rtenode *func)
 {
-  /* this is a runtime exception, mark it as such.  */
+  /* This is a runtime exception, mark it as such.  */
   func->exception_routine = true;
-  /* and remember it.  */
+  /* And remember it.  */
   vec_safe_push (rtegraph_current_function->rts_call, func);
 }