Commit 253abb2a by Andreas Schwab Committed by Andreas Schwab

m68k.c (m68k_option_override): Check opt_fstack_limit_symbol_arg and…

m68k.c (m68k_option_override): Check opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no instead of...

gcc/
	* config/m68k/m68k.c (m68k_option_override): Check
	opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
	instead of stack_limit_rtx.

gcc/testsuite/
	* gcc.target/m68k/stack-limit-1.c: Expect warning on line 0.

From-SVN: r241140
parent a2695319
2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
* config/m68k/m68k.c (m68k_option_override): Check
opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
instead of stack_limit_rtx.
2016-10-13 Jakub Jelinek <jakub@redhat.com> 2016-10-13 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (gen_member_die): Handle inline static data member * dwarf2out.c (gen_member_die): Handle inline static data member
......
...@@ -638,10 +638,12 @@ m68k_option_override (void) ...@@ -638,10 +638,12 @@ m68k_option_override (void)
} }
#endif #endif
if (stack_limit_rtx != NULL_RTX && !TARGET_68020) if ((opt_fstack_limit_symbol_arg != NULL || opt_fstack_limit_register_no >= 0)
&& !TARGET_68020)
{ {
warning (0, "-fstack-limit- options are not supported on this cpu"); warning (0, "-fstack-limit- options are not supported on this cpu");
stack_limit_rtx = NULL_RTX; opt_fstack_limit_symbol_arg = NULL;
opt_fstack_limit_register_no = -1;
} }
SUBTARGET_OVERRIDE_OPTIONS; SUBTARGET_OVERRIDE_OPTIONS;
......
2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
* gcc.target/m68k/stack-limit-1.c: Expect warning on line 0.
2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/77937 PR tree-optimization/77937
......
/* -fstack-limit- should be ignored without an ICE if not supported. */ /* -fstack-limit- should be ignored without an ICE if not supported. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-fstack-limit-symbol=_stack_limit -m68000" } */ /* { dg-options "-fstack-limit-symbol=_stack_limit -m68000" } */
/* { dg-warning "not supported" "" { target *-*-* } 1 } */ /* { dg-warning "not supported" "" { target *-*-* } 0 } */
void dummy (void) { } void dummy (void) { }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment