diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2010-07-02 21:25:28 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2010-07-02 21:25:28 +0000 |
commit | 260c8ba389c4a31a7a4d7cfe0fc55492b2f1b74f (patch) | |
tree | 07029562f5d29447aaea45407baa8ff6842f7694 /gcc/config/sparc/sol2.h | |
parent | 8c54dc55ef8e29da0f1cd3836dbbe705239c415e (diff) | |
download | gcc-260c8ba389c4a31a7a4d7cfe0fc55492b2f1b74f.tar.gz |
expr.h (emit_stack_probe): Declare.
* expr.h (emit_stack_probe): Declare.
* explow.c (emit_stack_probe): Make global.
(anti_adjust_stack_and_probe): Fix comments.
* config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
* config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
* config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
* config/sparc/sparc.c: Include except.h.
(sparc_emit_probe_stack_range): New function.
(output_probe_stack_range): Likewise.
(sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
built-in stack checking is enabled.
* config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
* config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
(probe_stack_range): New insn.
From-SVN: r161749
Diffstat (limited to 'gcc/config/sparc/sol2.h')
-rw-r--r-- | gcc/config/sparc/sol2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index a341bcfd30b..26c9ac7d396 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -188,4 +188,7 @@ along with GCC; see the file COPYING3. If not see #define PUSHSECTION_FORMAT "\t.pushsection\t\"%s\"\n" #endif +/* Static stack checking is supported by means of probes. */ +#define STACK_CHECK_STATIC_BUILTIN 1 + #define MD_UNWIND_SUPPORT "config/sparc/sol2-unwind.h" |