OSDN Git Service

* de.po: Update.
[pf3gnuchains/gcc-fork.git] / gcc / c-pch.c
index 6352d37..5c71ad1 100644 (file)
@@ -99,7 +99,7 @@ static const char *get_ident (void);
    format.  */
 
 static const char *
-get_ident(void)
+get_ident (void)
 {
   static char result[IDENT_LENGTH];
   static const char template[IDENT_LENGTH] = "gpch.012";
@@ -122,12 +122,12 @@ pch_init (void)
   void *target_validity;
   static const char partial_pch[IDENT_LENGTH] = "gpcWrite";
   
-  if (! pch_file)
+  if (!pch_file)
     return;
   
   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,13 +155,13 @@ 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.  */
   if (asm_file_name == NULL
       || strcmp (asm_file_name, "-") == 0)
-    fatal_error ("`%s' is not a valid output file", asm_file_name);
+    fatal_error ("%qs is not a valid output file", asm_file_name);
   
   asm_file_startpos = ftell (asm_out_file);
   
@@ -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,18 +273,18 @@ 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)
     {
       if (cpp_get_options (pfile)->warn_invalid_pch)
        cpp_error (pfile, CPP_DL_WARNING, 
-                  "%s: created on host `%.*s', but used on host `%s'", name,
+                  "%s: created on host '%.*s', but used on host '%s'", name,
                   v.host_machine_length, short_strings, host_machine);
       return 2;
     }
@@ -294,7 +294,7 @@ c_common_valid_pch (cpp_reader *pfile, const char *name, int fd)
     {
       if (cpp_get_options (pfile)->warn_invalid_pch)
        cpp_error (pfile, CPP_DL_WARNING, 
-                  "%s: created for target `%.*s', but used for target `%s'", 
+                  "%s: created for target '%.*s', but used for target '%s'", 
                   name, v.target_machine_length, 
                   short_strings + v.host_machine_length, target_machine);
       return 2;
@@ -307,7 +307,7 @@ c_common_valid_pch (cpp_reader *pfile, const char *name, int fd)
     {
       if (cpp_get_options (pfile)->warn_invalid_pch)
        cpp_error (pfile, CPP_DL_WARNING,
-                  "%s: created by version `%.*s', but this is version `%s'", 
+                  "%s: created by version '%.*s', but this is version '%s'", 
                   name, v.version_length, 
                   (short_strings + v.host_machine_length 
                    + v.target_machine_length), 
@@ -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)
@@ -448,7 +448,7 @@ c_common_read_pch (cpp_reader *pfile, const char *name,
   fclose (f);
   
   /* Give the front end a chance to take action after a PCH file has
-     been loadeded.  */
+     been loaded.  */
   if (lang_post_pch_load)
     (*lang_post_pch_load) ();
 }
@@ -484,7 +484,7 @@ c_common_pch_pragma (cpp_reader *pfile)
       return;
     }
 
-  if (! cpp_get_options (pfile)->preprocessed)
+  if (!cpp_get_options (pfile)->preprocessed)
     {
       error ("pch_preprocess pragma should only be used with -fpreprocessed");
       inform ("use #include instead");
@@ -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)
     {