diff options
author | Robert Lipe <robertl@dgii.com> | 1998-02-23 08:58:16 +0000 |
---|---|---|
committer | Robert Lipe <robertl@gcc.gnu.org> | 1998-02-23 08:58:16 +0000 |
commit | 84bc3b4f028fdba4d51c07c62af171bcbe63aad8 (patch) | |
tree | 9585bb4ebfd63b4ae9719df8184a25a52ceb895f | |
parent | f7d98d58fb55ad446c35b309cfddecf5d8ec6bbd (diff) | |
download | gcc-84bc3b4f028fdba4d51c07c62af171bcbe63aad8.zip gcc-84bc3b4f028fdba4d51c07c62af171bcbe63aad8.tar.gz gcc-84bc3b4f028fdba4d51c07c62af171bcbe63aad8.tar.bz2 |
collect2.c (ldd_file_name): Bracket declaration with same manifests as use.
* collect2.c (ldd_file_name): Bracket declaration with same
manifests as use.
(full_real_ld_suffix): Deleted. Variable was calloced and
written into, but never read.
From-SVN: r18202
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/collect2.c | 11 |
2 files changed, 9 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ea64ff..863a0e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ + +Mon Feb 23 10:47:39 1998 Robert Lipe <robertl@dgii.com> + * collect2.c (ldd_file_name): Bracket declaration with same + manifests as use. + (full_real_ld_suffix): Deleted. Variable was calloced and + written into, but never read. + 1998-02-23 Mike Stump <mrs@wrs.com> * configure.in: Add support for i386-wrs-vxworks configuration. diff --git a/gcc/collect2.c b/gcc/collect2.c index e9a0a3f..cc37237 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -249,7 +249,9 @@ static char *import_file; /* <xxx>.p for AIX import list. */ char *ldout; /* File for ld errors. */ static char *output_file; /* Output file for ld. */ static char *nm_file_name; /* pathname of nm */ +#ifdef LDD_SUFFIX static char *ldd_file_name; /* pathname of ldd (or equivalent) */ +#endif static char *strip_file_name; /* pathname of strip */ char *c_file_name; /* pathname of gcc */ static char *initname, *fininame; /* names of init and fini funcs */ @@ -960,9 +962,6 @@ main (argc, argv) char *ld_suffix = "ld"; char *full_ld_suffix = ld_suffix; char *real_ld_suffix = "real-ld"; -#ifdef CROSS_COMPILE - char *full_real_ld_suffix = real_ld_suffix; -#endif char *collect_ld_suffix = "collect-ld"; char *nm_suffix = "nm"; char *full_nm_suffix = nm_suffix; @@ -1108,12 +1107,6 @@ main (argc, argv) strcat (full_ld_suffix, "-"); strcat (full_ld_suffix, ld_suffix); - full_real_ld_suffix - = xcalloc (strlen (real_ld_suffix) + strlen (target_machine) + 2, 1); - strcpy (full_real_ld_suffix, target_machine); - strcat (full_real_ld_suffix, "-"); - strcat (full_real_ld_suffix, real_ld_suffix); - #if 0 full_gld_suffix = xcalloc (strlen (gld_suffix) + strlen (target_machine) + 2, 1); |