Skip to content

Commit 19d8b8a

Browse files
committed
Spelling fixes in C comments only
1 parent 1b9935c commit 19d8b8a

19 files changed

+48
-48
lines changed

arm-gen.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ struct avail_regs {
813813
and the parameter is a single float.
814814
815815
avregs: opaque structure to keep track of available VFP co-processor regs
816-
align: alignment contraints for the param, as returned by type_size()
816+
align: alignment constraints for the param, as returned by type_size()
817817
size: size of the parameter, as returned by type_size() */
818818
int assign_vfpreg(struct avail_regs *avregs, int align, int size)
819819
{
@@ -823,7 +823,7 @@ int assign_vfpreg(struct avail_regs *avregs, int align, int size)
823823
return -1;
824824
if (align >> 3) { /* double alignment */
825825
first_reg = avregs->first_free_reg;
826-
/* alignment contraint not respected so use next reg and record hole */
826+
/* alignment constraint not respected so use next reg and record hole */
827827
if (first_reg & 1)
828828
avregs->avail[avregs->last_hole++] = first_reg++;
829829
} else { /* no special alignment (float or array of float) */
@@ -1653,7 +1653,7 @@ static int is_zero(int i)
16531653
}
16541654

16551655
/* generate a floating point operation 'v = t1 op t2' instruction. The
1656-
* two operands are guaranted to have the same floating point type */
1656+
* two operands are guaranteed to have the same floating point type */
16571657
void gen_opf(int op)
16581658
{
16591659
uint32_t x;

arm-link.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int code_reloc (int reloc_type)
6262
return -1;
6363
}
6464

65-
/* Returns an enumerator to describe wether and when the relocation needs a
65+
/* Returns an enumerator to describe whether and when the relocation needs a
6666
GOT and/or PLT entry to be created. See tcc.h for a description of the
6767
different values. */
6868
int gotplt_entry_type (int reloc_type)
@@ -109,7 +109,7 @@ ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_
109109
unsigned plt_offset;
110110

111111
/* when building a DLL, GOT entry accesses must be done relative to
112-
start of GOT (see x86_64 examble above) */
112+
start of GOT (see x86_64 example above) */
113113
if (s1->output_type == TCC_OUTPUT_DLL)
114114
tcc_error("DLLs unimplemented!");
115115

arm64-link.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ int code_reloc (int reloc_type)
5151
return -1;
5252
}
5353

54-
/* Returns an enumerator to describe wether and when the relocation needs a
54+
/* Returns an enumerator to describe whether and when the relocation needs a
5555
GOT and/or PLT entry to be created. See tcc.h for a description of the
5656
different values. */
5757
int gotplt_entry_type (int reloc_type)

c67-gen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,7 @@ void gen_opi(int op)
22252225
r = vtop[-1].r;
22262226
fr = vtop[0].r;
22272227
vtop--;
2228-
C67_MPYI(fr, r); // 32 bit bultiply fr,r,fr
2228+
C67_MPYI(fr, r); // 32 bit multiply fr,r,fr
22292229
C67_NOP(8); // NOP 8 for worst case
22302230
break;
22312231
case TOK_SHL:
@@ -2282,7 +2282,7 @@ void gen_opi(int op)
22822282
}
22832283

22842284
/* generate a floating point operation 'v = t1 op t2' instruction. The
2285-
two operands are guaranted to have the same floating point type */
2285+
two operands are guaranteed to have the same floating point type */
22862286
/* XXX: need to use ST1 too */
22872287
void gen_opf(int op)
22882288
{

c67-link.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ int code_reloc (int reloc_type)
4444
return -1;
4545
}
4646

47-
/* Returns an enumerator to describe wether and when the relocation needs a
47+
/* Returns an enumerator to describe whether and when the relocation needs a
4848
GOT and/or PLT entry to be created. See tcc.h for a description of the
4949
different values. */
5050
int gotplt_entry_type (int reloc_type)

coff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct filehdr {
2222
/*------------------------------------------------------------------------*/
2323
#define F_RELFLG 0x01 /* relocation info stripped from file */
2424
#define F_EXEC 0x02 /* file is executable (no unresolved refs) */
25-
#define F_LNNO 0x04 /* line nunbers stripped from file */
25+
#define F_LNNO 0x04 /* line numbers stripped from file */
2626
#define F_LSYMS 0x08 /* local symbols stripped from file */
2727
#define F_GSP10 0x10 /* 34010 version */
2828
#define F_GSP20 0x20 /* 34020 version */

elf.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ typedef struct
221221
#define EM_68HC12 53 /* Motorola M68HC12 */
222222
#define EM_MMA 54 /* Fujitsu MMA Multimedia Accelerator*/
223223
#define EM_PCP 55 /* Siemens PCP */
224-
#define EM_NCPU 56 /* Sony nCPU embeeded RISC */
224+
#define EM_NCPU 56 /* Sony nCPU embedded RISC */
225225
#define EM_NDR1 57 /* Denso NDR1 microprocessor */
226226
#define EM_STARCORE 58 /* Motorola Start*Core processor */
227227
#define EM_ME16 59 /* Toyota ME16 processor */
@@ -342,7 +342,7 @@ typedef struct
342342
#define SHT_FINI_ARRAY 15 /* Array of destructors */
343343
#define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */
344344
#define SHT_GROUP 17 /* Section group */
345-
#define SHT_SYMTAB_SHNDX 18 /* Extended section indeces */
345+
#define SHT_SYMTAB_SHNDX 18 /* Extended section indices */
346346
#define SHT_NUM 19 /* Number of defined types. */
347347
#define SHT_LOOS 0x60000000 /* Start OS-specific. */
348348
#define SHT_GNU_ATTRIBUTES 0x6ffffff5 /* Object attributes. */
@@ -871,7 +871,7 @@ typedef struct
871871
#define VER_NDX_LORESERVE 0xff00 /* Beginning of reserved entries. */
872872
#define VER_NDX_ELIMINATE 0xff01 /* Symbol is to be eliminated. */
873873

874-
/* Auxialiary version information. */
874+
/* Auxiliary version information. */
875875

876876
typedef struct
877877
{
@@ -1776,9 +1776,9 @@ typedef Elf32_Addr Elf32_Conflict;
17761776
#define EFA_PARISC_1_1 0x0210 /* PA-RISC 1.1 big-endian. */
17771777
#define EFA_PARISC_2_0 0x0214 /* PA-RISC 2.0 big-endian. */
17781778

1779-
/* Additional section indeces. */
1779+
/* Additional section indices. */
17801780

1781-
#define SHN_PARISC_ANSI_COMMON 0xff00 /* Section for tenatively declared
1781+
#define SHN_PARISC_ANSI_COMMON 0xff00 /* Section for tentatively declared
17821782
symbols in ANSI C. */
17831783
#define SHN_PARISC_HUGE_COMMON 0xff01 /* Common blocks in huge model. */
17841784

@@ -1957,7 +1957,7 @@ typedef Elf32_Addr Elf32_Conflict;
19571957

19581958
/* Legal values for sh_type field of Elf64_Shdr. */
19591959

1960-
/* These two are primerily concerned with ECOFF debugging info. */
1960+
/* These two are primarily concerned with ECOFF debugging info. */
19611961
#define SHT_ALPHA_DEBUG 0x70000001
19621962
#define SHT_ALPHA_REGINFO 0x70000002
19631963

i386-asm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ ST_FUNC void subst_asm_operand(CString *add_str,
14731473
if (r & VT_SYM) {
14741474
const char *name = get_tok_str(sv->sym->v, NULL);
14751475
if (sv->sym->v >= SYM_FIRST_ANOM) {
1476-
/* In case of anonymuous symbols ("L.42", used
1476+
/* In case of anonymous symbols ("L.42", used
14771477
for static data labels) we can't find them
14781478
in the C symbol table when later looking up
14791479
this name. So enter them now into the asm label

i386-gen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ ST_FUNC void gen_addrpc32(int r, Sym *sym, long c)
174174
gen_le32(c - 4);
175175
}
176176

177-
/* generate a modrm reference. 'op_reg' contains the addtionnal 3
177+
/* generate a modrm reference. 'op_reg' contains the addtional 3
178178
opcode bits */
179179
static void gen_modrm(int op_reg, int r, Sym *sym, int c)
180180
{
@@ -890,7 +890,7 @@ ST_FUNC void gen_opi(int op)
890890
}
891891

892892
/* generate a floating point operation 'v = t1 op t2' instruction. The
893-
two operands are guaranted to have the same floating point type */
893+
two operands are guaranteed to have the same floating point type */
894894
/* XXX: need to use ST1 too */
895895
ST_FUNC void gen_opf(int op)
896896
{

i386-link.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int code_reloc (int reloc_type)
4949
return -1;
5050
}
5151

52-
/* Returns an enumerator to describe wether and when the relocation needs a
52+
/* Returns an enumerator to describe whether and when the relocation needs a
5353
GOT and/or PLT entry to be created. See tcc.h for a description of the
5454
different values. */
5555
int gotplt_entry_type (int reloc_type)
@@ -99,7 +99,7 @@ ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_
9999
else
100100
modrm = 0x25;
101101

102-
/* empty PLT: create PLT0 entry that pushes the library indentifier
102+
/* empty PLT: create PLT0 entry that pushes the library identifier
103103
(GOT + PTR_SIZE) and jumps to ld.so resolution routine
104104
(GOT + 2 * PTR_SIZE) */
105105
if (plt->data_offset == 0) {
@@ -229,9 +229,9 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t
229229
/* do nothing */
230230
return;
231231
case R_386_COPY:
232-
/* This reloction must copy initialized data from the library
232+
/* This relocation must copy initialized data from the library
233233
to the program .bss segment. Currently made like for ARM
234-
(to remove noise of defaukt case). Is this true?
234+
(to remove noise of default case). Is this true?
235235
*/
236236
return;
237237
default:

0 commit comments

Comments
 (0)