aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-10-08 22:54:16 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2009-10-08 22:54:16 +0100
commit3c2e7d4535fe109fa0cfbd01ed563de66a7ee0e7 (patch)
tree490d7142e46f95eaef6c652fef5c03e5e2acaeb4 /gcc/lto
parent23cd46a1dfc8f4ddf072ca8a2dd1435118c5013b (diff)
downloadgcc-3c2e7d4535fe109fa0cfbd01ed563de66a7ee0e7.zip
gcc-3c2e7d4535fe109fa0cfbd01ed563de66a7ee0e7.tar.gz
gcc-3c2e7d4535fe109fa0cfbd01ed563de66a7ee0e7.tar.bz2
lto-elf.c (init_shdr##BITS, [...]): Remove trailing "." from diagnostics.
* 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
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog8
-rw-r--r--gcc/lto/lto-elf.c18
-rw-r--r--gcc/lto/lto-lang.c2
3 files changed, 18 insertions, 10 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 36241e8..f2eb1a2 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -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
diff --git a/gcc/lto/lto-elf.c b/gcc/lto/lto-elf.c
index f678348..28c26c7 100644
--- a/gcc/lto/lto-elf.c
+++ b/gcc/lto/lto-elf.c
@@ -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)
diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c
index f5e83de..04d4230 100644
--- a/gcc/lto/lto-lang.c
+++ b/gcc/lto/lto-lang.c
@@ -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)
{