tlink.c (read_repo_files): Don't look for .rpo info for linker flags.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 6 Apr 2000 21:03:45 +0000 (21:03 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 6 Apr 2000 21:03:45 +0000 (17:03 -0400)
* tlink.c (read_repo_files): Don't look for .rpo info for
linker flags.

From-SVN: r32978

gcc/ChangeLog
gcc/tlink.c

index b4aabb4..d3bdb0e 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * tlink.c (read_repo_files): Don't look for .rpo info for
+       linker flags.
+
 Thu Apr  6 20:39:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
index a6130a1..32685b1 100644 (file)
@@ -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;