diff options
author | Ian Lance Taylor <ian@airs.com> | 2006-08-27 23:50:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2006-08-27 23:50:30 +0000 |
commit | 5317e1c7a911933eb699a349ab499e13f24ae7be (patch) | |
tree | 605a7786db7fb3a02245d989ed8b13db7d8bdb92 /libiberty/pex-win32.c | |
parent | 022d41663ddcc03460e411e390eeb0ccada393d5 (diff) | |
download | gcc-5317e1c7a911933eb699a349ab499e13f24ae7be.tar.gz |
re PR driver/27622 (gcc hang when compiling with -pipe)
PR driver/27622
* pex-common.h (struct pex_funcs): Add toclose parameter to
exec_child field.
* pex-common.c (pex_run_in_environment): Pass toclose to
exec_child.
* pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
* pex-unix.c (pex_unix_exec_child): Likewise.
* pex-msdos.c (pex_msdos_exec_child): Likewise.
* pex-win32.c (pex_win32_exec_child): Likewise.
From-SVN: r116494
Diffstat (limited to 'libiberty/pex-win32.c')
-rw-r--r-- | libiberty/pex-win32.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index 45725457b6a..aef386d3cc2 100644 --- a/libiberty/pex-win32.c +++ b/libiberty/pex-win32.c @@ -81,7 +81,7 @@ static int pex_win32_open_read (struct pex_obj *, const char *, int); static int pex_win32_open_write (struct pex_obj *, const char *, int); static long pex_win32_exec_child (struct pex_obj *, int, const char *, char * const *, char * const *, - int, int, int, + int, int, int, int, const char **, int *); static int pex_win32_close (struct pex_obj *, int); static int pex_win32_wait (struct pex_obj *, long, int *, @@ -699,7 +699,9 @@ static long pex_win32_exec_child (struct pex_obj *obj ATTRIBUTE_UNUSED, int flags, const char *executable, char * const * argv, char* const* env, - int in, int out, int errdes, const char **errmsg, + int in, int out, int errdes, + int toclose ATTRIBUTE_UNUSED, + const char **errmsg, int *err) { long pid; |