diff options
author | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-10-19 22:09:20 +0000 |
---|---|---|
committer | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-10-19 22:09:20 +0000 |
commit | 6f73c4a6d304f9c8d858fad50f59832b3db63103 (patch) | |
tree | 58a2e98edd571b4b29a738a5536c4883b60e7117 /gcc/collect2.c | |
parent | d13c3d69dcac87195b5c933643ff269f85a77e18 (diff) | |
download | gcc-6f73c4a6d304f9c8d858fad50f59832b3db63103.tar.gz |
(scan_prog_file): Call COLLECT_QUALIFY_MATCH to do
target-specific checking of the suitability of a match.
(main): Check REAL_*_FILE_NAME first.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8317 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-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 ef8bfa835ad..e0a2d7ebf22 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)) { |