summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-04-22 08:31:07 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2019-05-17 21:48:36 +0200
commit5305c2d9f94124c8d4928fab44c53e6ccec5a2e9 (patch)
tree02ade88d8b745b1a0a0aa5d7f98c847239e009f3
parent280fdb64e3d8e3552e56ea4c7cdfb6e56bc86b3b (diff)
Fix typos in comments.
-rw-r--r--src/ast/ast.c2
-rw-r--r--src/firm/ast2firm.c2
-rw-r--r--src/parser/parser.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ast/ast.c b/src/ast/ast.c
index d4e1f65..70a2391 100644
--- a/src/ast/ast.c
+++ b/src/ast/ast.c
@@ -895,7 +895,7 @@ static void print_case_label(const case_label_statement_t *statement)
/**
* returns true if the entity is a compiler generated one and has no real
- * correspondenc in the source file
+ * correspondence in the source file
*/
static bool is_generated_entity(const entity_t *entity)
{
diff --git a/src/firm/ast2firm.c b/src/firm/ast2firm.c
index fdf0063..d678108 100644
--- a/src/firm/ast2firm.c
+++ b/src/firm/ast2firm.c
@@ -4619,7 +4619,7 @@ static ir_node *asm_statement_to_firm(const asm_statement_t *statement)
ARR_APP1(out_info, outs, ((out_info){ expr, addr, NULL }));
} else {
/* the only case where an argument doesn't "write" is when it is
- * a memor operand (so we really write to the pointed memory instead
+ * a memory operand (so we really write to the pointed memory instead
* of the operand itself). So for the firm ASM node the operand
* (or rather its address) becomes an input. */
assert(argument->indirect_write);
diff --git a/src/parser/parser.c b/src/parser/parser.c
index 37486d9..ae8752d 100644
--- a/src/parser/parser.c
+++ b/src/parser/parser.c
@@ -1129,7 +1129,7 @@ static string_t *concat_string_literals(void)
string_t *result;
if (peek_ahead(T_STRING_LITERAL)) {
/* construct new string on ast_obstack, as string_obstack may be used
- * simulatneously be the preprocessor */
+ * simultaneously by the preprocessor */
begin_string_construction_on(&ast_obstack);
append_string(token.literal.string);
eat(T_STRING_LITERAL);