diff options
author | Joseph Myers <joseph@codesourcery.com> | 2004-11-09 10:13:30 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-11-09 10:13:30 +0000 |
commit | 9e637a26797c8ffa178974764874683f12b12d4d (patch) | |
tree | 7a8b42664cab7c57c0140be05c05db9dedb5add4 /gcc/c-pch.c | |
parent | 55a9c4b2fce38ae2459976fa912cd77071f77f4b (diff) | |
download | gcc-9e637a26797c8ffa178974764874683f12b12d4d.zip gcc-9e637a26797c8ffa178974764874683f12b12d4d.tar.gz gcc-9e637a26797c8ffa178974764874683f12b12d4d.tar.bz2 |
builtins.c, [...]: Avoid "`" as left quote, using "'" or %q, %< and %> as appropriate.
* builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
config/iq2000/iq2000.c, config/m32r/m32r.c,
config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
config/sh/symbian.c, config/stormy16/stormy16.c,
config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
and %> as appropriate. Use %' as apostrophe in diagnostics where
applicable. Use %< and %> in place of '' quotes where applicable.
Use %qs in place of %<%s%>. Consistently quote __builtin function
names.
ada:
* misc.c (gnat_handle_option): Use %< and %> for quoting in
warning message.
cp:
* call.c, class.c, decl.c, decl2.c, error.c, mangle.c, parser.c,
pt.c, search.c, semantics.c, typeck.c: Use %q, %< and %> for
quoting in diagnostics.
* parser.c (cp_parser_sizeof_operand): Use '' instead of `' for
quoting in printf format.
* decl.c (duplicate_decls, start_decl): Use %qD instead of
unquoted %D.
objc:
* objc-act.c: Use %q, %< and %> for quoting in diagnostics.
testsuite:
* gcc.dg/builtin-prefetch-1.c: Adjust expected messages.
From-SVN: r90337
Diffstat (limited to 'gcc/c-pch.c')
-rw-r--r-- | gcc/c-pch.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/c-pch.c b/gcc/c-pch.c index 8b21235..5c71ad1 100644 --- a/gcc/c-pch.c +++ b/gcc/c-pch.c @@ -127,7 +127,7 @@ pch_init (void) f = fopen (pch_file, "w+b"); if (f == NULL) - fatal_error ("can't create precompiled header %s: %m", pch_file); + fatal_error ("can%'t create precompiled header %s: %m", pch_file); pch_outfile = f; gcc_assert (strlen (host_machine) < 256 @@ -155,7 +155,7 @@ pch_init (void) || fwrite (target_machine, v.target_machine_length, 1, f) != 1 || fwrite (version_string, v.version_length, 1, f) != 1 || fwrite (target_validity, v.target_data_length, 1, f) != 1) - fatal_error ("can't write to %s: %m", pch_file); + fatal_error ("can%'t write to %s: %m", pch_file); /* We need to be able to re-read the output. */ /* The driver always provides a valid -o option. */ @@ -190,12 +190,12 @@ c_common_write_pch (void) h.asm_size = asm_file_end - asm_file_startpos; if (fwrite (&h, sizeof (h), 1, pch_outfile) != 1) - fatal_error ("can't write %s: %m", pch_file); + fatal_error ("can%'t write %s: %m", pch_file); buf = xmalloc (16384); if (fseek (asm_out_file, asm_file_startpos, SEEK_SET) != 0) - fatal_error ("can't seek in %s: %m", asm_file_name); + fatal_error ("can%'t seek in %s: %m", asm_file_name); for (written = asm_file_startpos; written < asm_file_end; ) { @@ -203,23 +203,23 @@ c_common_write_pch (void) if (size > 16384) size = 16384; if (fread (buf, size, 1, asm_out_file) != 1) - fatal_error ("can't read %s: %m", asm_file_name); + fatal_error ("can%'t read %s: %m", asm_file_name); if (fwrite (buf, size, 1, pch_outfile) != 1) - fatal_error ("can't write %s: %m", pch_file); + fatal_error ("can%'t write %s: %m", pch_file); written += size; } free (buf); /* asm_out_file can be written afterwards, so fseek to clear _IOREAD flag. */ if (fseek (asm_out_file, 0, SEEK_END) != 0) - fatal_error ("can't seek in %s: %m", asm_file_name); + fatal_error ("can%'t seek in %s: %m", asm_file_name); gt_pch_save (pch_outfile); cpp_write_pch_state (parse_in, pch_outfile); if (fseek (pch_outfile, 0, SEEK_SET) != 0 || fwrite (get_ident (), IDENT_LENGTH, 1, pch_outfile) != 1) - fatal_error ("can't write %s: %m", pch_file); + fatal_error ("can%'t write %s: %m", pch_file); fclose (pch_outfile); } @@ -245,7 +245,7 @@ c_common_valid_pch (cpp_reader *pfile, const char *name, int fd) sizeread = read (fd, ident, IDENT_LENGTH); if (sizeread == -1) - fatal_error ("can't read %s: %m", name); + fatal_error ("can%'t read %s: %m", name); else if (sizeread != IDENT_LENGTH) return 2; @@ -273,12 +273,12 @@ c_common_valid_pch (cpp_reader *pfile, const char *name, int fd) /* At this point, we know it's a PCH file, so it ought to be long enough that we can read a c_pch_validity structure. */ if (read (fd, &v, sizeof (v)) != sizeof (v)) - fatal_error ("can't read %s: %m", name); + fatal_error ("can%'t read %s: %m", name); strings_length = (v.host_machine_length + v.target_machine_length + v.version_length); if (read (fd, short_strings, strings_length) != strings_length) - fatal_error ("can't read %s: %m", name); + fatal_error ("can%'t read %s: %m", name); if (v.host_machine_length != strlen (host_machine) || memcmp (host_machine, short_strings, strlen (host_machine)) != 0) { @@ -362,7 +362,7 @@ c_common_valid_pch (cpp_reader *pfile, const char *name, int fd) if ((size_t) read (fd, this_file_data, v.target_data_length) != v.target_data_length) - fatal_error ("can't read %s: %m", name); + fatal_error ("can%'t read %s: %m", name); msg = targetm.pch_valid_p (this_file_data, v.target_data_length); free (this_file_data); if (msg != NULL) @@ -495,7 +495,7 @@ c_common_pch_pragma (cpp_reader *pfile) fd = open (name, O_RDONLY | O_BINARY, 0666); if (fd == -1) - fatal_error ("%s: couldn't open PCH file: %m\n", name); + fatal_error ("%s: couldn%'t open PCH file: %m\n", name); if (c_common_valid_pch (pfile, name, fd) != 1) { |