Commit 8cacec76 by Jim Wilson

(library_prefix): Delete variable.

(process_command): Delete uses of library_prefix.
(do_spec_1, D case): Delete use of library_prefix.

From-SVN: r4105
parent 5460015d
......@@ -245,8 +245,7 @@ or with constant text in a single argument.
%A process ASM_FINAL_SPEC as a spec. A capital A is actually
used here. This can be used to run a post-processor after the
assembler has done it's job.
%D Dump out a -L option for each directory in library_prefix,
followed by a -L option for each directory in startfile_prefix.
%D Dump out a -L option for each directory in startfile_prefix.
%l process LINK_SPEC as a spec.
%L process LIB_SPEC as a spec.
%S process STARTFILE_SPEC as a spec. A capital S is actually used here.
......@@ -1099,10 +1098,6 @@ static struct path_prefix exec_prefix = { 0, 0, "exec" };
static struct path_prefix startfile_prefix = { 0, 0, "startfile" };
/* List of prefixes to try when looking for libraries. */
static struct path_prefix library_prefix = { 0, 0, "libraryfile" };
/* Suffix to attach to directories searched for commands.
This looks like `MACHINE/VERSION/'. */
......@@ -2120,8 +2115,6 @@ process_command (argc, argv)
else
nstore[endp-startp] = 0;
add_prefix (&startfile_prefix, nstore, 0, 0, NULL_PTR);
/* Make separate list of dirs that came from LIBRARY_PATH. */
add_prefix (&library_prefix, nstore, 0, 0, NULL_PTR);
if (*endp == 0)
break;
endp = startp = endp + 1;
......@@ -2156,8 +2149,6 @@ process_command (argc, argv)
else
nstore[endp-startp] = 0;
add_prefix (&startfile_prefix, nstore, 0, 0, NULL_PTR);
/* Make separate list of dirs that came from LIBRARY_PATH. */
add_prefix (&library_prefix, nstore, 0, 0, NULL_PTR);
if (*endp == 0)
break;
endp = startp = endp + 1;
......@@ -2734,10 +2725,8 @@ do_spec_1 (spec, inswitch, soft_matched_part)
followed by the absolute directories
that we search for startfiles. */
case 'D':
for (i = 0; i < 2; i++)
{
struct prefix_list *pl
= (i == 0 ? library_prefix.plist : startfile_prefix.plist);
struct prefix_list *pl = startfile_prefix.plist;
int bufsize = 100;
char *buffer = (char *) xmalloc (bufsize);
int idx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment