aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-07 21:38:09 -0700
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-07 21:38:09 -0700
commit19d8b8a17383863d45823e37f20a94cc1d55c3a6 (patch)
tree5862658773da49c99ae77dfa0e578b3b519ed282 /tccgen.c
parent1b9935cf36e83b389cb26008df93a654af3f2074 (diff)
downloadtinycc-19d8b8a17383863d45823e37f20a94cc1d55c3a6.tar.gz
tinycc-19d8b8a17383863d45823e37f20a94cc1d55c3a6.tar.bz2
Spelling fixes in C comments only
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tccgen.c b/tccgen.c
index 3bcfa94..76291eb 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -257,7 +257,7 @@ ST_FUNC void tccgen_end(TCCState *s1)
}
/* ------------------------------------------------------------------------- */
-/* apply storage attibutes to Elf symbol */
+/* apply storage attributes to Elf symbol */
static void update_storage(Sym *sym)
{
@@ -1532,7 +1532,7 @@ static void gen_opl(int op)
c = (int)vtop->c.i;
/* constant: simpler */
/* NOTE: all comments are for SHL. the other cases are
- done by swaping words */
+ done by swapping words */
vpop();
if (op != TOK_SHL)
vswap();
@@ -1973,7 +1973,7 @@ redo:
goto redo;
} else if (bt1 == VT_PTR || bt2 == VT_PTR) {
/* at least one operand is a pointer */
- /* relationnal op: must be both pointers */
+ /* relational op: must be both pointers */
if (op >= TOK_ULT && op <= TOK_LOR) {
check_comparison_pointer_types(vtop - 1, vtop, op);
/* pointers are handled are unsigned */
@@ -2137,7 +2137,7 @@ redo:
else
gen_opic(op);
if (op >= TOK_ULT && op <= TOK_GT) {
- /* relationnal op: the result is an int */
+ /* relational op: the result is an int */
vtop->type.t = VT_INT;
} else {
vtop->type.t = t;
@@ -2794,7 +2794,7 @@ static void gen_assign_cast(CType *dt)
goto type_ok;
}
type1 = pointed_type(dt);
- /* a function is implicitely a function pointer */
+ /* a function is implicitly a function pointer */
if (sbt == VT_FUNC) {
if ((type1->t & VT_BTYPE) != VT_VOID &&
!is_compatible_types(pointed_type(dt), st))
@@ -6086,7 +6086,7 @@ static void init_putv(CType *type, Section *sec, unsigned long c)
}
if ((vtop->r & (VT_SYM|VT_CONST)) == (VT_SYM|VT_CONST) &&
vtop->sym->v >= SYM_FIRST_ANOM &&
- /* XXX This rejects compount literals like
+ /* XXX This rejects compound literals like
'(void *){ptr}'. The problem is that '&sym' is
represented the same way, which would be ruled out
by the SYM_FIRST_ANOM check above, but also '"string"'