aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/cygwin1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/cygwin1.c')
-rw-r--r--gcc/config/i386/cygwin1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/i386/cygwin1.c b/gcc/config/i386/cygwin1.c
index 2cab96c195c..88c44fc9fbf 100644
--- a/gcc/config/i386/cygwin1.c
+++ b/gcc/config/i386/cygwin1.c
@@ -30,13 +30,13 @@ mingw_scan (int argc ATTRIBUTE_UNUSED,
const char *const *argv,
char **spec_machine)
{
- putenv ("GCC_CYGWIN_MINGW=0");
+ putenv (xstrdup ("GCC_CYGWIN_MINGW=0"));
while (*++argv)
if (strcmp (*argv, "-mno-win32") == 0)
- putenv ("GCC_CYGWIN_WIN32=0");
+ putenv (xstrdup ("GCC_CYGWIN_WIN32=0"));
else if (strcmp (*argv, "-mwin32") == 0)
- putenv ("GCC_CYGWIN_WIN32=1");
+ putenv (xstrdup ("GCC_CYGWIN_WIN32=1"));
else if (strcmp (*argv, "-mno-cygwin") == 0)
{
char *p = strstr (*spec_machine, "-cygwin");
@@ -48,7 +48,7 @@ mingw_scan (int argc ATTRIBUTE_UNUSED,
strcpy (s + len, "-mingw32");
*spec_machine = s;
}
- putenv ("GCC_CYGWIN_MINGW=1");
+ putenv (xstrdup ("GCC_CYGWIN_MINGW=1"));
}
return;
}