Commit 8e22f79f by Andreas Schwab Committed by Andreas Schwab

re PR target/28896 (-fstack-limit-symbol and m68k and non 68020)

	PR target/28896
	* config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
	if !TARGET_68020.

testsuite/
	* gcc.target/m68k/stack-limit-1.c: New testcase.

From-SVN: r189210
parent 32d024bf
2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
PR target/28896
* config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
if !TARGET_68020.
2012-07-03 Uros Bizjak <ubizjak@gmail.com> 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
* config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause. * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
......
/* Subroutines for insn-output.c for Motorola 68000 family. /* Subroutines for insn-output.c for Motorola 68000 family.
Copyright (C) 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, Copyright (C) 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -618,6 +618,12 @@ m68k_option_override (void) ...@@ -618,6 +618,12 @@ m68k_option_override (void)
} }
#endif #endif
if (stack_limit_rtx != NULL_RTX && !TARGET_68020)
{
warning (0, "-fstack-limit- options are not supported on this cpu");
stack_limit_rtx = NULL_RTX;
}
SUBTARGET_OVERRIDE_OPTIONS; SUBTARGET_OVERRIDE_OPTIONS;
/* Setup scheduling options. */ /* Setup scheduling options. */
......
2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
PR target/28896
* gcc.target/m68k/stack-limit-1.c: New testcase.
2012-07-03 Eric Botcazou <ebotcazou@adacore.com> 2012-07-03 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/recursive_call.adb: New test. * gnat.dg/recursive_call.adb: New test.
......
/* -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 } */
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