From 84bc3b4f028fdba4d51c07c62af171bcbe63aad8 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Mon, 23 Feb 1998 08:58:16 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++++ gcc/collect2.c | 11 ++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ea64ff28e89..863a0e128e0b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ + +Mon Feb 23 10:47:39 1998 Robert Lipe + * 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 * configure.in: Add support for i386-wrs-vxworks configuration. diff --git a/gcc/collect2.c b/gcc/collect2.c index e9a0a3f65f58..cc372374c001 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -249,7 +249,9 @@ static char *import_file; /* .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);