c-decl.c: Mark strings for translation.
[gcc.git] / gcc / tlink.c
index 3fdd135a2c74a32f36ccc1a18859c5e8986aa551..cafa0c6978ce96c6eb2bbb5dc2c888a5307d9aba 100644 (file)
@@ -424,7 +424,7 @@ read_repo_file (f)
   FILE *stream = fopen ((char*) f->root.key, "r");
 
   if (tlink_verbose >= 2)
-    fprintf (stderr, "collect: reading %s\n"
+    fprintf (stderr, _("collect: reading %s\n")
             (char*) f->root.key);
 
   while (fscanf (stream, "%c ", &c) == 1)
@@ -525,7 +525,7 @@ recompile_files ()
       command = obstack_copy0 (&temporary_obstack, f->main, strlen (f->main));
 
       if (tlink_verbose)
-       fprintf (stderr, "collect: recompiling %s\n", f->main);
+       fprintf (stderr, _("collect: recompiling %s\n"), f->main);
       if (tlink_verbose >= 3)
        fprintf (stderr, "%s\n", command);
 
@@ -550,9 +550,15 @@ read_repo_files (object_lst)
 
   for (; *object; object++)
     {
-      const char *p = frob_extension (*object, ".rpo");
+      const char *p;
       file *f;
 
+      /* Don't bother trying for ld flags.  */
+      if (*object[0] == '-')
+       continue;
+
+      p = frob_extension (*object, ".rpo");
+
       if (! file_exists (p))
        continue;
 
@@ -638,6 +644,11 @@ scan_linker_output (fname)
          else if (p = index (oldq, '"'), p)
            p++, q = index (p, '"');
 
+         /* Don't let the strstr's below see the demangled name; we
+            might get spurious matches.  */
+         if (p)
+           p[-1] = '\0';
+
          /* We need to check for certain error keywords here, or we would
             mistakenly use GNU ld's "In function `foo':" message.  */
          if (q && (strstr (oldq, "ndefined")
@@ -665,7 +676,7 @@ scan_linker_output (fname)
       if (sym && !sym->tweaking)
        {
          if (tlink_verbose >= 2)
-           fprintf (stderr, "collect: tweaking %s in %s\n",
+           fprintf (stderr, _("collect: tweaking %s in %s\n"),
                     (char*) sym->root.key, (char*) sym->file->root.key);
          sym->tweaking = 1;
          file_push (sym->file);
@@ -712,7 +723,7 @@ do_tlink (ld_argv, object_lst)
            if (! recompile_files ())
              break;
            if (tlink_verbose)
-             fprintf (stderr, "collect: relinking\n");
+             fprintf (stderr, _("collect: relinking\n"));
            exit = tlink_execute ("ld", ld_argv, ldout);
          }
     }