aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-06-24 15:33:54 -0600
committerJeff Law <law@gcc.gnu.org>1999-06-24 15:33:54 -0600
commit8607048d6929daa0aa88a3603ec3929ae104f8d9 (patch)
tree9abfc6f4cdca719e67b4990c8a6811c830176d39 /gcc
parenta5ac75338786b49d9381d8c67615cb7efbe4a7a5 (diff)
downloadgcc-8607048d6929daa0aa88a3603ec3929ae104f8d9.zip
gcc-8607048d6929daa0aa88a3603ec3929ae104f8d9.tar.gz
gcc-8607048d6929daa0aa88a3603ec3929ae104f8d9.tar.bz2
gcc.c (main): Read user-specified specs files after computing additional startfile_prefixes.
h * gcc.c (main): Read user-specified specs files after computing additional startfile_prefixes. From-SVN: r27742
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index e02bc0c..b4a8d3d 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4818,18 +4818,7 @@ main (argc, argv)
if (access (specs_file, R_OK) == 0)
read_specs (specs_file, TRUE);
- /* Process any user specified specs in the order given on the command
- line. */
- for (uptr = user_specs_head; uptr; uptr = uptr->next)
- {
- char *filename = find_a_file (&startfile_prefixes, uptr->filename, R_OK);
- read_specs (filename ? filename : uptr->filename, FALSE);
- }
-
/* If not cross-compiling, look for startfiles in the standard places. */
- /* The fact that these are done here, after reading the specs file,
- means that it cannot be found in these directories.
- But that's okay. It should never be there anyway. */
if (*cross_compile == '0')
{
#ifdef MD_EXEC_PREFIX
@@ -4892,6 +4881,14 @@ main (argc, argv)
"BINUTILS", 0, 0, NULL_PTR);
}
+ /* Process any user specified specs in the order given on the command
+ line. */
+ for (uptr = user_specs_head; uptr; uptr = uptr->next)
+ {
+ char *filename = find_a_file (&startfile_prefixes, uptr->filename, R_OK);
+ read_specs (filename ? filename : uptr->filename, FALSE);
+ }
+
/* If we have a GCC_EXEC_PREFIX envvar, modify it for cpp's sake. */
if (gcc_exec_prefix)
{