Fix broken MinGW build of gcc.c
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 23 Aug 2017 10:43:36 +0000 (10:43 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Wed, 23 Aug 2017 10:43:36 +0000 (10:43 +0000)
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

gcc/ChangeLog
gcc/gcc.c

index 2f1fd24..d5ada51 100644 (file)
@@ -1,3 +1,7 @@
+2017-08-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available.
+
 2017-08-22  Daniel Santos  <daniel.santos@pobox.com>
 
        * doc/install.texi: Modify to add more details on running selected
index 96152de..832a2e0 100644 (file)
--- 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