2000-05-12 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 13 May 2000 06:38:34 +0000 (06:38 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 13 May 2000 06:38:34 +0000 (06:38 +0000)
* nlmconv.c (temp_filename): Removed.

* nlmconv.c (link_inputs): Use make_temp_file () instead of
choose_temp_base ().
* objdump.c (display_target_list): Likewise.
(display_info_table): Likewise.

binutils/ChangeLog
binutils/nlmconv.c
binutils/objdump.c

index 813fdff0adc9665cc555fcea9a3e34d2775aa082..7505d5631c2c74355815879a3653cbe060f09133 100644 (file)
@@ -1,3 +1,12 @@
+2000-05-12  H.J. Lu  <hjl@gnu.org>
+
+       * nlmconv.c (temp_filename): Removed.
+
+       * nlmconv.c (link_inputs): Use make_temp_file () instead of
+       choose_temp_base ().
+       * objdump.c (display_target_list): Likewise.
+       (display_info_table): Likewise.
+
 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
 
        * objcopy.c (setup_section): Add const and gettext calls for err.
index 26602d7b6a716deb428ffecde272deac42a716c1..450ac1454b8bd8cb4810a4b324db77393ce648fa 100644 (file)
@@ -2086,9 +2086,6 @@ powerpc_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
 #define LD_NAME "ld"
 #endif
 
-/* Temporary file name base.  */
-static char *temp_filename;
-
 /* The user has specified several input files.  Invoke the linker to
    link them all together, and convert and delete the resulting output
    file.  */
@@ -2137,10 +2134,7 @@ link_inputs (inputs, ld)
   if (ld == NULL)
     ld = (char *) LD_NAME;
 
-  temp_filename = choose_temp_base ();
-
-  unlink_on_exit = xmalloc (strlen (temp_filename) + 3);
-  sprintf (unlink_on_exit, "%s.O", temp_filename);
+  unlink_on_exit = make_temp_file (".O");
 
   argv[0] = ld;
   argv[1] = (char *) "-Ur";
index f29106fedac7f44c89d41e0354509f7a8e25d198..cd61ec0d8dceb008820e0f88bfd00803a1781178 100644 (file)
@@ -2632,7 +2632,7 @@ display_target_list ()
   char *dummy_name;
   int t;
 
-  dummy_name = choose_temp_base ();
+  dummy_name = make_temp_file (NULL);
   for (t = 0; bfd_target_vector[t]; t++)
     {
       bfd_target *p = bfd_target_vector[t];
@@ -2684,7 +2684,7 @@ display_info_table (first, last)
     printf ("%s ", bfd_target_vector[t]->name);
   putchar ('\n');
 
-  dummy_name = choose_temp_base ();
+  dummy_name = make_temp_file (NULL);
   for (a = (int) bfd_arch_obscure + 1; a < (int) bfd_arch_last; a++)
     if (strcmp (bfd_printable_arch_mach (a, 0), "UNKNOWN!") != 0)
       {
This page took 0.030072 seconds and 4 git commands to generate.