The option OPT_m32 is not defined on all targets. This patch only checks for it if TARGET_CAN_SPLIT_STACK_64BIT is defined, which is the only case where we need to know the value. Bootstrapped on x86_64-unknown-linux-gnu. Committed to mainline.
Ian 2015-10-01 Ian Lance Taylor <i...@google.com> PR go/66870 * gospec.c (lang_specific_driver): Only look for OPT_m32 if TARGET_CAN_SPLIT_STACK_64BIT is defined.
Index: gospec.c =================================================================== --- gospec.c (revision 228311) +++ gospec.c (working copy) @@ -158,9 +158,11 @@ lang_specific_driver (struct cl_decoded_ 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: