]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto-elf.c (init_shdr##BITS, [...]): Remove trailing "." from diagnostics.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 8 Oct 2009 21:54:16 +0000 (22:54 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 8 Oct 2009 21:54:16 +0000 (22:54 +0100)
* lto-elf.c (init_shdr##BITS, lto_elf_begin_section_with_type,
init_ehdr##BITS, lto_elf_file_close): Remove trailing "." from
diagnostics.
* lto-lang.c (lto_post_options): Remove trailing "." from
diagnostics.

From-SVN: r152579

gcc/lto/ChangeLog
gcc/lto/lto-elf.c
gcc/lto/lto-lang.c

index 36241e86006ff682dd711165cd14ac1ab4f98576..f2eb1a2c8b8e1056bcd71e7f2599dc82078d7d87 100644 (file)
@@ -1,3 +1,11 @@
+2009-10-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * lto-elf.c (init_shdr##BITS, lto_elf_begin_section_with_type,
+       init_ehdr##BITS, lto_elf_file_close): Remove trailing "." from
+       diagnostics.
+       * lto-lang.c (lto_post_options): Remove trailing "." from
+       diagnostics.
+
 2009-10-08  Richard Guenther  <rguenther@suse.de>
 
        * lto.c (read_cgraph_and_symbols): Free the gimple type merging
index f678348a86ff4d43e6253a706bb1f564d5c486e3..28c26c768b615e80ebdb358a1c79df41790edd49 100644 (file)
@@ -235,7 +235,7 @@ init_shdr##BITS (Elf_Scn *scn, size_t sh_name, size_t sh_type)            \
                                                                      \
   shdr = elf##BITS##_getshdr (scn);                                  \
   if (!shdr)                                                         \
-    fatal_error ("elf"#BITS"_getshdr() failed: %s.", elf_errmsg (-1));\
+    fatal_error ("elf"#BITS"_getshdr() failed: %s", elf_errmsg (-1));\
                                                                      \
   shdr->sh_name = sh_name;                                           \
   shdr->sh_type = sh_type;                                           \
@@ -268,7 +268,7 @@ lto_elf_begin_section_with_type (const char *name, size_t type)
   /* Create a new section.  */
   scn = elf_newscn (file->elf);
   if (!scn)
-    fatal_error ("could not create a new ELF section: %s.", elf_errmsg (-1));
+    fatal_error ("could not create a new ELF section: %s", elf_errmsg (-1));
   file->scn = scn;
 
   /* Add a string table entry and record the offset.  */
@@ -486,7 +486,7 @@ init_ehdr##BITS (lto_elf_file *elf_file)                          \
                                                                      \
   ehdr = elf##BITS##_newehdr (elf_file->elf);                        \
   if (!ehdr)                                                         \
-    fatal_error ("elf"#BITS"_newehdr() failed: %s.", elf_errmsg (-1));\
+    fatal_error ("elf"#BITS"_newehdr() failed: %s", elf_errmsg (-1));\
                                                                      \
   memcpy (ehdr->e_ident, cached_file_attrs.elf_ident,                \
          sizeof cached_file_attrs.elf_ident);                        \
@@ -601,7 +601,7 @@ lto_elf_file_close (lto_file *file)
       lto_elf_begin_section_with_type (".shstrtab", SHT_STRTAB);
       ehdr_p = gelf_getehdr (elf_file->elf, &ehdr_buf);
       if (ehdr_p == NULL)
-       fatal_error ("gelf_getehdr() failed: %s.", elf_errmsg (-1));
+       fatal_error ("gelf_getehdr() failed: %s", elf_errmsg (-1));
       strtab = elf_ndxscn (elf_file->scn);
       if (strtab < SHN_LORESERVE)
        ehdr_p->e_shstrndx = strtab;
@@ -610,17 +610,17 @@ lto_elf_file_close (lto_file *file)
          GElf_Shdr *shdr_p, shdr_buf;
          Elf_Scn *scn_p = elf_getscn (elf_file->elf, 0);
          if (scn_p == NULL)
-           fatal_error ("elf_getscn() failed: %s.", elf_errmsg (-1));
+           fatal_error ("elf_getscn() failed: %s", elf_errmsg (-1));
          shdr_p = gelf_getshdr (scn_p, &shdr_buf);
          if (shdr_p == NULL)
-           fatal_error ("gelf_getshdr() failed: %s.", elf_errmsg (-1));
+           fatal_error ("gelf_getshdr() failed: %s", elf_errmsg (-1));
          shdr_p->sh_link = strtab;
          if (gelf_update_shdr (scn_p, shdr_p) == 0)
-           fatal_error ("gelf_update_shdr() failed: %s.", elf_errmsg (-1));
+           fatal_error ("gelf_update_shdr() failed: %s", elf_errmsg (-1));
          ehdr_p->e_shstrndx = SHN_XINDEX;
        }
       if (gelf_update_ehdr (elf_file->elf, ehdr_p) == 0)
-       fatal_error ("gelf_update_ehdr() failed: %s.", elf_errmsg (-1));
+       fatal_error ("gelf_update_ehdr() failed: %s", elf_errmsg (-1));
       lto_write_stream (elf_file->shstrtab_stream);
       lto_elf_end_section ();
 
@@ -628,7 +628,7 @@ lto_elf_file_close (lto_file *file)
       free (elf_file->shstrtab_stream);
 
       if (elf_update (elf_file->elf, ELF_C_WRITE) < 0)
-       fatal_error ("elf_update() failed: %s.", elf_errmsg (-1));
+       fatal_error ("elf_update() failed: %s", elf_errmsg (-1));
     }
 
   if (elf_file->elf)
index f5e83de75f5679b6d29a286dcb5dac60675a8558..04d423076566334ae87ffab83771f5e6c650fe13 100644 (file)
@@ -657,7 +657,7 @@ lto_post_options (const char **pfilename ATTRIBUTE_UNUSED)
 
   /* -fltrans and -fwpa are mutually exclusive.  Check for that here.  */
   if (flag_wpa && flag_ltrans)
-    error ("-fwpa and -fltrans are mutually exclusive.");
+    error ("-fwpa and -fltrans are mutually exclusive");
 
   if (flag_ltrans)
     {