summaryrefslogtreecommitdiff
path: root/libiberty/pexecute.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-02 07:37:50 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-02 07:37:50 +0000
commitfd0c1d22ec56c96538bfc2bde14217bab58f6b01 (patch)
treeb60d561b0633a66f6eaf0fb7dff762bb25ae8c74 /libiberty/pexecute.c
parent31d6df591f5eaf1bd355e40e5b2d9d6f3065dd35 (diff)
downloadgcc-fd0c1d22ec56c96538bfc2bde14217bab58f6b01.tar.gz
* pexecute.c (pexecute): Fill in temp_base when needed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29053 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/pexecute.c')
-rw-r--r--libiberty/pexecute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c
index 6f6a0449d09..dffd04f5a91 100644
--- a/libiberty/pexecute.c
+++ b/libiberty/pexecute.c
@@ -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,