summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>2016-10-13 20:19:42 +0000
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>2016-10-13 20:19:42 +0000
commit7a8fd2057f13a557cb19ba710b98a4b134f82162 (patch)
treee568b4d32c4d46ed6f9e8bb96fe01e0559e79cf2
parent0512a8c6031c0e04930146486216998430a6e6d9 (diff)
downloadgcc-7a8fd2057f13a557cb19ba710b98a4b134f82162.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241140 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/m68k/m68k.c6
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.target/m68k/stack-limit-1.c2
4 files changed, 15 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ae5a7109a81..ae99273eb3a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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>
* dwarf2out.c (gen_member_die): Handle inline static data member
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 8e7dbf38fa3..b152ca80bad 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -638,10 +638,12 @@ m68k_option_override (void)
}
#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");
- stack_limit_rtx = NULL_RTX;
+ opt_fstack_limit_symbol_arg = NULL;
+ opt_fstack_limit_register_no = -1;
}
SUBTARGET_OVERRIDE_OPTIONS;
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0960e08ce6d..93bb49e5bb2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+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>
PR tree-optimization/77937
diff --git a/gcc/testsuite/gcc.target/m68k/stack-limit-1.c b/gcc/testsuite/gcc.target/m68k/stack-limit-1.c
index b1e9b99b26c..5086edd77f7 100644
--- a/gcc/testsuite/gcc.target/m68k/stack-limit-1.c
+++ b/gcc/testsuite/gcc.target/m68k/stack-limit-1.c
@@ -1,6 +1,6 @@
/* -fstack-limit- should be ignored without an ICE if not supported. */
/* { dg-do compile } */
/* { dg-options "-fstack-limit-symbol=_stack_limit -m68000" } */
-/* { dg-warning "not supported" "" { target *-*-* } 1 } */
+/* { dg-warning "not supported" "" { target *-*-* } 0 } */
void dummy (void) { }