From 2c561874133f1756d49d993d7561a802bd8448eb Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 6 Apr 2000 21:03:45 +0000 Subject: [PATCH] tlink.c (read_repo_files): Don't look for .rpo info for linker flags. * tlink.c (read_repo_files): Don't look for .rpo info for linker flags. From-SVN: r32978 --- gcc/ChangeLog | 5 +++++ gcc/tlink.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b4aabb47bea..d3bdb0e4dc2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-04-06 Jason Merrill + + * tlink.c (read_repo_files): Don't look for .rpo info for + linker flags. + Thu Apr 6 20:39:26 2000 J"orn Rennecke * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define. diff --git a/gcc/tlink.c b/gcc/tlink.c index a6130a14c29..32685b19404 100644 --- a/gcc/tlink.c +++ b/gcc/tlink.c @@ -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;