diff options
author | Jason Merrill <merrill@gnu.org> | 1994-10-19 22:09:20 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1994-10-19 22:09:20 +0000 |
commit | 90d326bda21dc222166c937bb01c68945ef10382 (patch) | |
tree | 58a2e98edd571b4b29a738a5536c4883b60e7117 | |
parent | f311b280766d9f2ea37f00f4318a62482512691a (diff) | |
download | gcc-90d326bda21dc222166c937bb01c68945ef10382.zip gcc-90d326bda21dc222166c937bb01c68945ef10382.tar.gz gcc-90d326bda21dc222166c937bb01c68945ef10382.tar.bz2 |
(scan_prog_file): Call COLLECT_QUALIFY_MATCH to do target-specific checking of the suitability of a match.
(scan_prog_file): Call COLLECT_QUALIFY_MATCH to do
target-specific checking of the suitability of a match.
(main): Check REAL_*_FILE_NAME first.
From-SVN: r8317
-rw-r--r-- | gcc/collect2.c | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index ef8bfa8..e0a2d7e 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -958,6 +958,11 @@ main (argc, argv) /* Try to discover a valid linker/nm/strip to use. */ + /* Maybe we know the right file to use (if not cross). */ +#ifdef REAL_LD_FILE_NAME + ld_file_name = find_a_file (&path, REAL_LD_FILE_NAME); + if (ld_file_name == 0) +#endif #if 0 /* Search the (target-specific) compiler dirs for `gld'. */ ld_file_name = find_a_file (&cpath, gld_suffix); @@ -973,11 +978,6 @@ main (argc, argv) ld_file_name = find_a_file (&cpath, real_ld_suffix); if (ld_file_name == 0) ld_file_name = find_a_file (&path, full_real_ld_suffix); - /* Maybe we know the right file to use (if not cross). */ -#ifdef REAL_LD_FILE_NAME - if (ld_file_name == 0) - ld_file_name = find_a_file (&path, REAL_LD_FILE_NAME); -#endif /* Search the compiler directories for `ld'. We have protection against recursive calls in find_a_file. */ if (ld_file_name == 0) @@ -999,27 +999,27 @@ main (argc, argv) fatal ("cannot find `ld'"); } +#ifdef REAL_NM_FILE_NAME + nm_file_name = find_a_file (&path, REAL_NM_FILE_NAME); + if (nm_file_name == 0) +#endif nm_file_name = find_a_file (&cpath, gnm_suffix); if (nm_file_name == 0) nm_file_name = find_a_file (&path, full_gnm_suffix); if (nm_file_name == 0) nm_file_name = find_a_file (&cpath, nm_suffix); -#ifdef REAL_NM_FILE_NAME - if (nm_file_name == 0) - nm_file_name = find_a_file (&path, REAL_NM_FILE_NAME); -#endif if (nm_file_name == 0) nm_file_name = find_a_file (&path, full_nm_suffix); +#ifdef REAL_STRIP_FILE_NAME + strip_file_name = find_a_file (&path, REAL_STRIP_FILE_NAME); + if (strip_file_name == 0) +#endif strip_file_name = find_a_file (&cpath, gstrip_suffix); if (strip_file_name == 0) strip_file_name = find_a_file (&path, full_gstrip_suffix); if (strip_file_name == 0) strip_file_name = find_a_file (&cpath, strip_suffix); -#ifdef REAL_STRIP_FILE_NAME - if (strip_file_name == 0) - strip_file_name = find_a_file (&path, REAL_STRIP_FILE_NAME); -#endif if (strip_file_name == 0) strip_file_name = find_a_file (&path, full_strip_suffix); @@ -1076,13 +1076,6 @@ main (argc, argv) if (arg[0] == '-') { -#ifdef COLLECT_SUPPRESS_OPTIONS - if (index (COLLECT_SUPPRESS_OPTIONS, arg[1])) - { - ld1--; - continue; - } -#endif switch (arg[1]) { case 'd': @@ -1575,6 +1568,10 @@ scan_prog_file (prog_name, which_pass) end++) continue; +#ifdef COLLECT_QUALIFY_MATCH + COLLECT_QUALIFY_MATCH; +#endif + *end = '\0'; switch (is_ctor_dtor (name)) { |