Fix spelling in comments in C source files (gold)
authorAmbrogino Modigliani <ambrogino.modigliani@gmail.com>
Fri, 25 Nov 2016 20:01:42 +0000 (21:01 +0100)
committerAlan Modra <amodra@gmail.com>
Sun, 27 Nov 2016 04:33:06 +0000 (15:03 +1030)
* aarch64.cc: Fix spelling in comments.
* arm.cc: Fix spelling in comments.
* icf.cc: Fix spelling in comments.
* layout.cc: Fix spelling in comments.
* layout.h: Fix spelling in comments.
* mips.cc: Fix spelling in comments.
* output.h: Fix spelling in comments.
* plugin.h: Fix spelling in comments.
* script-sections.h: Fix spelling in comments.
* script.h: Fix spelling in comments.
* stringpool.h: Fix spelling in comments.
* tilegx.cc: Fix spelling in comments.

13 files changed:
gold/ChangeLog
gold/aarch64.cc
gold/arm.cc
gold/icf.cc
gold/layout.cc
gold/layout.h
gold/mips.cc
gold/output.h
gold/plugin.h
gold/script-sections.h
gold/script.h
gold/stringpool.h
gold/tilegx.cc

index b0ea313e88b85cd6861fa82dc6dd748585eb85cd..e2c7cc97759c3906d38813b8a4050680589820a0 100644 (file)
@@ -1,3 +1,18 @@
+2016-11-27  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
+
+       * aarch64.cc: Fix spelling in comments.
+       * arm.cc: Fix spelling in comments.
+       * icf.cc: Fix spelling in comments.
+       * layout.cc: Fix spelling in comments.
+       * layout.h: Fix spelling in comments.
+       * mips.cc: Fix spelling in comments.
+       * output.h: Fix spelling in comments.
+       * plugin.h: Fix spelling in comments.
+       * script-sections.h: Fix spelling in comments.
+       * script.h: Fix spelling in comments.
+       * stringpool.h: Fix spelling in comments.
+       * tilegx.cc: Fix spelling in comments.
+
 2016-11-22  Cary Coutant  <ccoutant@gmail.com>
 
        PR gold/20346
index 28e4d48514c476df0b19dc54c0d7bb98653e665d..f38cd9a91ba507b28baba8104ad9002987e52bc9 100644 (file)
@@ -156,7 +156,7 @@ public:
     uint64_t imm = ((adrp >> 29) & mask2) | (((adrp >> 5) & mask19) << 2);
     // Retrieve msb of 21-bit-signed imm for sign extension.
     uint64_t msbt = (imm >> 20) & 1;
-    // Real value is imm multipled by 4k. Value now has 33-bit information.
+    // Real value is imm multiplied by 4k. Value now has 33-bit information.
     int64_t value = imm << 12;
     // Sign extend to 64-bit by repeating msbt 31 (64-33) times and merge it
     // with value.
@@ -1022,7 +1022,7 @@ public:
   { this->erratum_address_ = addr; }
 
   // Comparator used to group Erratum_stubs in a set by (obj, shndx,
-  // sh_offset). We do not include 'type' in the calculation, becuase there is
+  // sh_offset). We do not include 'type' in the calculation, because there is
   // at most one stub type at (obj, shndx, sh_offset).
   bool
   operator<(const Erratum_stub<size, big_endian>& k) const
index b51612cada53aa430bfecf08d77083f3c03c0714..e351ad9e78d73c976404582edec83b1f0233db24 100644 (file)
@@ -11215,7 +11215,7 @@ Target_arm<big_endian>::attributes_accept_div(int arch, int profile,
     {
     case 0:
       // Integer divide allowed if instruction contained in
-      // archetecture.
+      // architecture.
       if (arch == elfcpp::TAG_CPU_ARCH_V7 && (profile == 'R' || profile == 'M'))
         return true;
       else if (arch >= elfcpp::TAG_CPU_ARCH_V7E_M)
index c09c746ae1c3a60a35377829da9c11deaa8ed607..e86436aa7736ced3a36e8fa18037b66e6ed46f74 100644 (file)
@@ -545,7 +545,7 @@ get_section_contents(bool first_iteration,
     {
       buffer.append("Contents = ");
       buffer.append(reinterpret_cast<const char*>(contents), plen);
-      // Store the section contents that dont change to avoid recomputing
+      // Store the section contents that don't change to avoid recomputing
       // during the next call to this function.
       (*section_contents)[section_num] = buffer;
     }
@@ -670,7 +670,7 @@ match_sections(unsigned int iteration_num,
              // Check section alignment here.
              // The section with the larger alignment requirement
              // should be kept.  We assume alignment can only be 
-             // zero or postive integral powers of two.
+             // zero or positive integral powers of two.
              uint64_t align_i = section_addraligns[i];
              uint64_t align_kept = section_addraligns[kept_section];
              if (align_i <= align_kept)
index c9ea9ebed477d6315de6f6013f75f28d15dabdfa..7223761e845285c118f79ea0d3c6620d59946735 100644 (file)
@@ -2585,7 +2585,7 @@ Layout::relaxation_loop_body(
   return off;
 }
 
-// Search the list of patterns and find the postion of the given section
+// Search the list of patterns and find the position of the given section
 // name in the output section.  If the section name matches a glob
 // pattern and a non-glob name, then the non-glob position takes
 // precedence.  Return 0 if no match is found.
index b2d699fccfc9b7242f0e9a8cc7eb0567a6059200..2263f0e2215398e9df32b22d6f57020b33d2dda1 100644 (file)
@@ -539,7 +539,7 @@ class Layout
   // and ALIGN are the extra flags and alignment of the segment.
   struct Unique_segment_info
   {
-    // Identifier for the segment.  ELF segments dont have names.  This
+    // Identifier for the segment.  ELF segments don't have names.  This
     // is used as the name of the output section mapped to the segment.
     const char* name;
     // Additional segment flags.
index 61b351381b74dfa204027f444b6e0980d4b54f71..2ed73b22ab683a0909d5bfa74c2a76a648d5a638 100644 (file)
@@ -9742,7 +9742,7 @@ Target_mips<size, big_endian>::do_finalize_sections(Layout* layout,
     d_val = elfcpp::RHF_NOTPOT;
     odyn->add_constant(elfcpp::DT_MIPS_FLAGS, d_val);
 
-    // Save layout for using when emiting custom dynamic tags.
+    // Save layout for using when emitting custom dynamic tags.
     this->layout_ = layout;
 
     // This member holds the base address of the segment.
index 6b9186b95ead7188ef37c895f4f006f17095881c..62386a6abdcc19790a0e66a1c1f6abc0b3d6698f 100644 (file)
@@ -2874,7 +2874,7 @@ class Output_data_dynamic : public Output_section_data
       DYNAMIC_NUMBER = -1U,
       // Section size.
       DYNAMIC_SECTION_SIZE = -2U,
-      // Symbol adress.
+      // Symbol address.
       DYNAMIC_SYMBOL = -3U,
       // String.
       DYNAMIC_STRING = -4U,
index 652ec580143ffaf9eb7ab0b316137faecfd80d77..0348eb75598a5c8ccb264d274e646b5bda849c5c 100644 (file)
@@ -378,7 +378,7 @@ class Plugin_manager
   Mapfile* mapfile_;
   Task_token* this_blocker_;
 
-  // An extra directory to seach for the libraries passed by
+  // An extra directory to search for the libraries passed by
   // add_input_library.
   std::string extra_search_path_;
   Lock* lock_;
index 30fd96d7af2f0a224cbc05050dc4c2af9d8df675..6e108faf81c8d676e20ab136f0ac0fbf08be83cd 100644 (file)
@@ -279,7 +279,7 @@ class Script_sections
   size_t
   total_header_size(Layout* layout) const;
 
-  // Return the amount we have to subtract from the LMA to accomodate
+  // Return the amount we have to subtract from the LMA to accommodate
   // headers of the given size.
   uint64_t
   header_size_adjustment(uint64_t lma, size_t sizeof_headers) const;
index d81391bb95459fa73047dfdfe8ed9fec903f7522..d0cae11fcaa5274689ea51e5675f8a42733ef34a 100644 (file)
@@ -538,7 +538,7 @@ class Script_options
   // SECTIONS clause.
   typedef std::vector<Symbol_assignment*> Symbol_assignments;
 
-  // We keep a list of all assertions whcih occur outside of a
+  // We keep a list of all assertions which occur outside of a
   // SECTIONS clause.
   typedef std::vector<Script_assertion*> Assertions;
 
index b7ac54f5b4e4bcbc3add1d285daa966e4ea1e1a6..a2b3ebd10a96427c8ec801b64770e832de23e84d 100644 (file)
@@ -118,7 +118,7 @@ class Chunked_vector
       {
        this->chunks_.resize((n + chunk_size - 1) / chunk_size);
        // We need to call reserve() of all chunks since changing
-       // this->chunks_ casues Element_vectors to be copied.  The
+       // this->chunks_ causes Element_vectors to be copied.  The
        // reserved capacity of an Element_vector may be lost in copying.
        for (size_t i = 0; i < this->chunks_.size(); ++i)
          this->chunks_[i].reserve(chunk_size);
index 03b1a509c5a8b48f2da78163a2e8ff97c82984f6..7ab99abc2f9b0d6e873c4810546aa06b97470bee 100644 (file)
@@ -2527,7 +2527,7 @@ Target_tilegx<size, big_endian>::make_plt_section(Symbol_table* symtab,
       this->got_section(symtab, layout);
 
       // Ensure that .rela.dyn always appears before .rela.plt,
-      // becuase on TILE-Gx, .rela.dyn needs to include .rela.plt
+      // because on TILE-Gx, .rela.dyn needs to include .rela.plt
       // in it's range.
       this->rela_dyn_section(layout);
 
@@ -3375,7 +3375,7 @@ Target_tilegx<size, big_endian>::Scan::local(Symbol_table* symtab,
             // tilegx dynamic linker will not update local got entry,
             // so, if we are generating a shared object, we need to add a
             // dynamic relocation for this symbol's GOT entry to inform
-            // dynamic linker plus the load base explictly.
+            // dynamic linker plus the load base explicitly.
             if (parameters->options().output_is_position_independent())
               {
                unsigned int got_offset
@@ -3431,7 +3431,7 @@ Target_tilegx<size, big_endian>::Scan::local(Symbol_table* symtab,
                //
                // R_TILEGX_TLS_GD_CALL implicitly reference __tls_get_addr,
                // while all other target, x86/arm/mips/powerpc/sparc
-               // generate tls relocation against __tls_get_addr explictly,
+               // generate tls relocation against __tls_get_addr explicitly,
                // so for TILEGX, we need the following hack.
                if (opt_t == tls::TLSOPT_NONE) {
                  if (!target->tls_get_addr_sym_defined_) {
This page took 0.042149 seconds and 4 git commands to generate.