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
This commit is contained in:
Joseph Myers 2009-10-08 22:54:16 +01:00 committed by Joseph Myers
parent 23cd46a1df
commit 3c2e7d4535
3 changed files with 18 additions and 10 deletions

View 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

View 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)

View 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)
{