tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Trivial spelling patch


From: KHMan
Subject: [Tinycc-devel] Trivial spelling patch
Date: Tue, 27 Nov 2007 15:31:37 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4

Hi all,

This trivial patch fixes some spelling mistakes. If anyone has a
documentation or comment patch, I can put such minor patches
together and commit them in one go. I won't commit this for now,
just posting to notify the list first.

-- 
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

diff -r 218d28dbcf0b arm-gen.c
--- a/arm-gen.c Fri Nov 16 12:16:14 2007 +0800
+++ b/arm-gen.c Tue Nov 27 15:25:09 2007 +0800
@@ -1380,7 +1380,7 @@ static int is_fconst()
 }
 
 /* generate a floating point operation 'v = t1 op t2' instruction. The
-   two operands are guaranted to have the same floating point type */
+   two operands are guaranteed to have the same floating point type */
 void gen_opf(int op)
 {
   unsigned long x;
diff -r 218d28dbcf0b c67-gen.c
--- a/c67-gen.c Fri Nov 16 12:16:14 2007 +0800
+++ b/c67-gen.c Tue Nov 27 15:25:09 2007 +0800
@@ -235,7 +235,7 @@ void gsym(int t)
 }
 
 // these are regs that tcc doesn't really know about, 
-// but asign them unique values so the mapping routines
+// but assign them unique values so the mapping routines
 // can distinquish them
 
 #define C67_A0 105
@@ -2250,7 +2250,7 @@ void gen_opi(int op)
        r = vtop[-1].r;
        fr = vtop[0].r;
        vtop--;
-       C67_MPYI(fr, r);        // 32 bit bultiply  fr,r,fr
+       C67_MPYI(fr, r);        // 32 bit multiply  fr,r,fr
        C67_NOP(8);             // NOP 8 for worst case
        break;
     case TOK_SHL:
@@ -2307,7 +2307,7 @@ void gen_opi(int op)
 }
 
 /* generate a floating point operation 'v = t1 op t2' instruction. The
-   two operands are guaranted to have the same floating point type */
+   two operands are guaranteed to have the same floating point type */
 /* XXX: need to use ST1 too */
 void gen_opf(int op)
 {
diff -r 218d28dbcf0b i386/i386-asm.c
--- a/i386/i386-asm.c   Fri Nov 16 12:16:14 2007 +0800
+++ b/i386/i386-asm.c   Tue Nov 27 15:25:09 2007 +0800
@@ -25,7 +25,7 @@ typedef struct ASMInstr {
     uint16_t opcode;
     uint16_t instr_type;
 #define OPC_JMP       0x01  /* jmp operand */
-#define OPC_B         0x02  /* only used zith OPC_WL */
+#define OPC_B         0x02  /* only used with OPC_WL */
 #define OPC_WL        0x04  /* accepts w, l or no suffix */
 #define OPC_BWL       (OPC_B | OPC_WL) /* accepts b, w, l or no suffix */
 #define OPC_REG       0x08 /* register is added to opcode */
@@ -385,7 +385,7 @@ static inline void asm_modrm(int reg, Op
         gen_expr32(&op->e);
     } else {
         sib_reg1 = op->reg;
-        /* fist compute displacement encoding */
+        /* first compute displacement encoding */
         if (sib_reg1 == -1) {
             sib_reg1 = 5;
             mod = 0x00;
diff -r 218d28dbcf0b i386/i386-gen.c
--- a/i386/i386-gen.c   Fri Nov 16 12:16:14 2007 +0800
+++ b/i386/i386-gen.c   Tue Nov 27 15:25:09 2007 +0800
@@ -164,7 +164,7 @@ static void gen_addr32(int r, Sym *sym, 
     gen_le32(c);
 }
 
-/* generate a modrm reference. 'op_reg' contains the addtionnal 3
+/* generate a modrm reference. 'op_reg' contains the additional 3
    opcode bits */
 static void gen_modrm(int op_reg, int r, Sym *sym, int c)
 {
@@ -750,7 +750,7 @@ void gen_opi(int op)
 }
 
 /* generate a floating point operation 'v = t1 op t2' instruction. The
-   two operands are guaranted to have the same floating point type */
+   two operands are guaranteed to have the same floating point type */
 /* XXX: need to use ST1 too */
 void gen_opf(int op)
 {
diff -r 218d28dbcf0b il-gen.c
--- a/il-gen.c  Fri Nov 16 12:16:14 2007 +0800
+++ b/il-gen.c  Tue Nov 27 15:25:09 2007 +0800
@@ -600,7 +600,7 @@ void gen_opi(int op)
 }
 
 /* generate a floating point operation 'v = t1 op t2' instruction. The
-   two operands are guaranted to have the same floating point type */
+   two operands are guaranteed to have the same floating point type */
 void gen_opf(int op)
 {
     /* same as integer */
diff -r 218d28dbcf0b libtcc.h
--- a/libtcc.h  Fri Nov 16 12:16:14 2007 +0800
+++ b/libtcc.h  Tue Nov 27 15:25:09 2007 +0800
@@ -55,7 +55,7 @@ int tcc_compile_string(TCCState *s, cons
 /* linking commands */
 
 /* set output type. MUST BE CALLED before any compilation */
-#define TCC_OUTPUT_MEMORY   0 /* output will be ran in memory (no
+#define TCC_OUTPUT_MEMORY   0 /* output will be run in memory (no
                                  output file) (default) */
 #define TCC_OUTPUT_EXE      1 /* executable file */
 #define TCC_OUTPUT_DLL      2 /* dynamic library */
diff -r 218d28dbcf0b tcc.h
--- a/tcc.h     Fri Nov 16 12:16:14 2007 +0800
+++ b/tcc.h     Tue Nov 27 15:25:09 2007 +0800
@@ -352,7 +352,7 @@ struct TCCState {
     Section *plt;
     unsigned long *got_offsets;
     int nb_got_offsets;
-    /* give the correspondance from symtab indexes to dynsym indexes */
+    /* give the correspondence from symtab indexes to dynsym indexes */
     int *symtab_to_dynsym;
 
     /* temporary dynamic symbol sections (for dll loading) */
@@ -528,7 +528,7 @@ struct TCCState {
 #define TOK_SHL   0x01 /* shift left */
 #define TOK_SAR   0x02 /* signed shift right */
   
-/* assignement operators : normal operator or 0x80 */
+/* assignment operators : normal operator or 0x80 */
 #define TOK_A_MOD 0xa5
 #define TOK_A_AND 0xa6
 #define TOK_A_MUL 0xaa
@@ -785,7 +785,7 @@ typedef struct ExprValue {
 #define MAX_ASM_OPERANDS 30
 
 typedef struct ASMOperand {
-    int id; /* GCC 3 optionnal identifier (0 if number only supported */
+    int id; /* GCC 3 optional identifier (0 if number only supported */
     char *constraint;
     char asm_str[16]; /* computed asm string for operand */
     SValue *vt; /* C value of the expression */
diff -r 218d28dbcf0b tccelf.c
--- a/tccelf.c  Fri Nov 16 12:16:14 2007 +0800
+++ b/tccelf.c  Tue Nov 27 15:25:09 2007 +0800
@@ -1501,7 +1501,7 @@ int tcc_output_file(TCCState *s1, const 
             }
         }
 
-        /* if interpreter, then add corresponing program header */
+        /* if interpreter, then add corresponding program header */
         if (interp) {
             ph = &phdr[0];
             
@@ -1515,7 +1515,7 @@ int tcc_output_file(TCCState *s1, const 
             ph->p_align = interp->sh_addralign;
         }
         
-        /* if dynamic section, then add corresponing program header */
+        /* if dynamic section, then add corresponding program header */
         if (dynamic) {
             Elf32_Sym *sym_end;
 
diff -r 218d28dbcf0b tcctok.h
--- a/tcctok.h  Fri Nov 16 12:16:14 2007 +0800
+++ b/tcctok.h  Tue Nov 27 15:25:09 2007 +0800
@@ -411,7 +411,7 @@
  DEF_FP(mul)
 
  DEF_ASM(fcom)
- DEF_ASM(fcom_1) /* non existant op, just to have a regular table */
+ DEF_ASM(fcom_1) /* non existent op, just to have a regular table */
  DEF_FP1(com)
 
  DEF_FP(comp)
diff -r 218d28dbcf0b win32/tccpe.c
--- a/win32/tccpe.c     Fri Nov 16 12:16:14 2007 +0800
+++ b/win32/tccpe.c     Tue Nov 27 15:25:09 2007 +0800
@@ -1213,7 +1213,7 @@ int tcc_output_pe(TCCState * s1, const c
     pe.s1 = s1;
     pe.start_addr = pe_add_runtime(s1);
 
-    relocate_common_syms();    /* assign bss adresses */
+    relocate_common_syms();    /* assign bss addresses */
     ret = pe_check_symbols(&pe);
     if (0 == ret) {
        pe_assign_addresses(&pe);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]