aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2017-08-23 10:43:36 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2017-08-23 10:43:36 +0000
commitb00775e37336989474ec65551880b7804480eb9c (patch)
tree0ea588877df2625d809066b9d54aadf3d214feab /gcc/gcc.c
parent8649d5eeee31e4f79cbc6995833b34951f94d947 (diff)
downloadgcc-b00775e37336989474ec65551880b7804480eb9c.zip
gcc-b00775e37336989474ec65551880b7804480eb9c.tar.gz
gcc-b00775e37336989474ec65551880b7804480eb9c.tar.bz2
Fix broken MinGW build of gcc.c
2017-08-23 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/ * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available. From-SVN: r251302
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 96152de..832a2e0 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