From b00775e37336989474ec65551880b7804480eb9c Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Wed, 23 Aug 2017 10:43:36 +0000 Subject: [PATCH] Fix broken MinGW build of gcc.c 2017-08-23 Thomas Preud'homme gcc/ * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available. From-SVN: r251302 --- gcc/ChangeLog | 4 ++++ gcc/gcc.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2f1fd24f9fe..d5ada51a671 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-08-23 Thomas Preud'homme + + * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available. + 2017-08-22 Daniel Santos * doc/install.texi: Modify to add more details on running selected diff --git a/gcc/gcc.c b/gcc/gcc.c index 96152dec872..832a2e0c6ca 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -3154,8 +3154,13 @@ execute (void) switch (WTERMSIG (status)) { case SIGINT: + /* SIGQUIT and SIGKILL are not available on MinGW. */ +#ifdef SIGQUIT case SIGQUIT: +#endif +#ifdef SIGKILL case SIGKILL: +#endif case SIGTERM: /* The user (or environment) did something to the inferior. Making this an ICE confuses the user -- 2.30.2