aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/print.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-07-20 09:24:16 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-07-20 09:24:16 +0000
commit1c2afaca8911c5fef5c7bfa2df8f71bb0c529d37 (patch)
tree151908a107cde33fa13f5ed2f888db8a19163e28 /libgo/runtime/print.c
parent803106258c124eb6c6fb5c65f1affd3db5c2914e (diff)
downloadgcc-1c2afaca8911c5fef5c7bfa2df8f71bb0c529d37.zip
gcc-1c2afaca8911c5fef5c7bfa2df8f71bb0c529d37.tar.gz
gcc-1c2afaca8911c5fef5c7bfa2df8f71bb0c529d37.tar.bz2
runtime: also disable split stacks for runtime_snprintf function under Clang
From-SVN: r212862
Diffstat (limited to 'libgo/runtime/print.c')
-rw-r--r--libgo/runtime/print.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgo/runtime/print.c b/libgo/runtime/print.c
index ae7e740..69b1f81 100644
--- a/libgo/runtime/print.c
+++ b/libgo/runtime/print.c
@@ -76,9 +76,15 @@ runtime_prints(const char *s)
// x86-64. Note that signal handlers receive slightly less stack space than they
// would normally do if they happen to be called while this function is being
// run. If this turns out to be a problem we could consider increasing BACKOFF.
+
void
runtime_printf(const char *s, ...)
__attribute__((no_split_stack));
+
+int32
+runtime_snprintf(byte *buf, int32 n, const char *s, ...)
+__attribute__((no_split_stack));
+
#endif
void