collect2.c (ldd_file_name): Bracket declaration with same manifests as use.
authorRobert Lipe <robertl@dgii.com>
Mon, 23 Feb 1998 08:58:16 +0000 (08:58 +0000)
committerRobert Lipe <robertl@gcc.gnu.org>
Mon, 23 Feb 1998 08:58:16 +0000 (08:58 +0000)
        * 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
gcc/collect2.c

index 7ea64ff28e89cd10f0a2ed466a4ccb3173f6257d..863a0e128e0b7ce470df2ba5162e8c5120b56c93 100644 (file)
@@ -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.
index e9a0a3f65f584737c3ae0ce04a8b828f80a23f2b..cc372374c0010f6436b9e8e5227d35d209899976 100644 (file)
@@ -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);