This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix comment typos 3/3.
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Jan 2005 23:19:24 +0100 (CET)
- Subject: [patch] Fix comment typos 3/3.
The following patch fixes a couple of comment typos in gcc/gcc/fortran/.
Ok to apply to mainline?
Regards,
Volker
2005-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* decl.c: Fix comment typo.
* resolve.c: Likewise.
* trans-array.c: Likewise.
* trans.h: Likewise.
===================================================================
--- fortran/decl.c 3 Jan 2005 21:43:49 -0000 1.28
+++ fortran/decl.c 24 Jan 2005 10:18:30 -0000
@@ -27,7 +27,7 @@ Software Foundation, 59 Temple Place - S
#include "parse.h"
-/* This flag is set if a an old-style length selector is matched
+/* This flag is set if an old-style length selector is matched
during a type-declaration statement. */
static int old_char_selector;
===================================================================
--- fortran/resolve.c 3 Jan 2005 21:43:50 -0000 1.25
+++ fortran/resolve.c 24 Jan 2005 10:17:48 -0000
@@ -898,8 +898,8 @@ set_type:
}
-/* Figure out if if a function reference is pure or not. Also sets the name
- of the function for a potential error message. Returns nonzero if the
+/* Figure out if a function reference is pure or not. Also set the name
+ of the function for a potential error message. Return nonzero if the
function is PURE, zero if not. */
static int
===================================================================
--- fortran/trans-array.c 3 Jan 2005 21:43:54 -0000 1.32
+++ fortran/trans-array.c 24 Jan 2005 10:15:36 -0000
@@ -1271,7 +1271,7 @@ gfc_conv_ss_descriptor (stmtblock_t * bl
/* Also the data pointer. */
tmp = gfc_conv_array_data (se.expr);
/* If this is a variable or address of a variable we use it directly.
- Otherwise we must evaluate it now to to avoid break dependency
+ Otherwise we must evaluate it now to avoid breaking dependency
analysis by pulling the expressions for elemental array indices
inside the loop. */
if (!(DECL_P (tmp)
===================================================================
--- fortran/trans.h 16 Nov 2004 02:02:37 -0000 1.21
+++ fortran/trans.h 24 Jan 2005 12:37:32 -0000
@@ -118,7 +118,7 @@ typedef enum
scalarization loop. */
GFC_SS_SCALAR,
- /* Like GFC_SS_SCALAR except it evaluates a pointer the the expression.
+ /* Like GFC_SS_SCALAR except it evaluates a pointer to the expression.
Used for elemental function parameters. */
GFC_SS_REFERENCE,
===================================================================