PR go/66870
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2015 14:43:57 +0000 (14:43 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2015 14:43:57 +0000 (14:43 +0000)
* gospec.c (lang_specific_driver): Only look for OPT_m32 if
TARGET_CAN_SPLIT_STACK_64BIT is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228342 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/ChangeLog
gcc/go/gospec.c

index a6e8dd5..be1fd0c 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-01  Ian Lance Taylor  <iant@google.com>
+
+       PR go/66870
+       * gospec.c (lang_specific_driver): Only look for OPT_m32 if
+       TARGET_CAN_SPLIT_STACK_64BIT is defined.
+
 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
 
        PR target/66870
index 2c60ee7..ca3c2d7 100644 (file)
@@ -158,9 +158,11 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
            library = (library == 0) ? 1 : library;
          break;
 
+#ifdef TARGET_CAN_SPLIT_STACK_64BIT
        case OPT_m32:
          saw_opt_m32 = true;
          break;
+#endif
 
        case OPT_pg:
        case OPT_p: