OSDN Git Service

* pexecute.c (pexecute): Fill in temp_base when needed.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Sep 1999 07:37:50 +0000 (07:37 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Sep 1999 07:37:50 +0000 (07:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29053 138bc75d-0d04-0410-961f-82ee72b054a4

libiberty/ChangeLog
libiberty/pexecute.c

index dd1afbd..170ca1c 100644 (file)
@@ -1,3 +1,7 @@
+Thu Sep  2 01:36:12 1999  Marc Espie <espie@cvs.openbsd.org>
+
+       * pexecute.c (pexecute):  Fill in temp_base when needed.
+
 1999-08-31  Richard Henderson  <rth@cygnus.com>
 
        * getpwd.c: Check HAVE_GETCWD before defining it away.
index 6f6a044..dffd04f 100644 (file)
@@ -156,6 +156,8 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
   FILE *argfile;
   int i, el = flags & PEXECUTE_SEARCH ? 4 : 0;
 
+  if (temp_base == 0)
+    temp_base = choose_temp_base ();
   scmd = (char *) xmalloc (strlen (program) + strlen (temp_base) + 6 + el);
   rf = scmd + strlen(program) + 2 + el;
   sprintf (scmd, "%s%s @%s.gp", program,