aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-16 18:35:31 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-16 18:35:31 -0400
commite9990579f163b8ee930585aaad074469aa8db384 (patch)
tree924f99d8c825d579e23e38d7659a2ea5fcf40c49
parent6518a809e91345c38b805d0b1f4edd3b269382c8 (diff)
downloadgcc-e9990579f163b8ee930585aaad074469aa8db384.zip
gcc-e9990579f163b8ee930585aaad074469aa8db384.tar.gz
gcc-e9990579f163b8ee930585aaad074469aa8db384.tar.bz2
(fix_argv): Removed call to free.
Changed WINNT to _WIN32. From-SVN: r9731
-rw-r--r--gcc/gcc.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 6f03524..3f0c490 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -36,7 +36,7 @@ compilation is specified by a string called a "spec". */
#include <sys/stat.h>
#include <errno.h>
-#ifndef WINNT
+#ifndef _WIN32
#include <sys/file.h> /* May get R_OK, etc. on some systems. */
#else
#include <process.h>
@@ -2012,7 +2012,7 @@ pexecute (search_flag, program, argv, not_last)
#endif
-#if !defined(__MSDOS__) && !defined(OS2) && !defined(WINNT)
+#if !defined(__MSDOS__) && !defined(OS2) && !defined(_WIN32)
static int
pexecute (search_flag, program, argv, not_last)
@@ -2102,11 +2102,11 @@ pexecute (search_flag, program, argv, not_last)
}
}
-#endif /* not __MSDOS__ and not OS2 and not WINNT */
+#endif /* not __MSDOS__ and not OS2 and not _WIN32 */
-#if defined(OS2) || defined(WINNT)
+#if defined(OS2) || defined(_WIN32)
-#ifdef WINNT
+#ifdef _WIN32
/* This is a kludge to get around the Microsoft C spawn functions' propensity
to remove the outermost set of double quotes from all arguments. */
@@ -2133,7 +2133,6 @@ fix_argv (argvec)
newtemp [j] = '\\';
strncpy (&newtemp [j+1], &temp [j], len-j);
newtemp [len+1] = 0;
- free (temp);
temp = newtemp;
len++;
j++;
@@ -2163,7 +2162,7 @@ pexecute (search_flag, program, argv, not_last)
{
return (search_flag ? spawnv : spawnvp) (1, program, FIX_ARGV (argv));
}
-#endif /* OS2 or WINNT */
+#endif /* OS2 or _WIN32 */
/* Execute the command specified by the arguments on the current line of spec.
@@ -2287,7 +2286,7 @@ execute ()
#ifdef __MSDOS__
status = pid = commands[i].pid;
#else
-#ifdef WINNT
+#ifdef _WIN32
pid = cwait (&status, commands[i].pid, WAIT_CHILD);
#else
pid = wait (&status);