From 5f7d4d6e9f47d328e7c4ef71030bdc9e34892798 Mon Sep 17 00:00:00 2001 From: Oxore Date: Tue, 7 Mar 2023 16:05:46 +0300 Subject: Get rid of libc, take just parts of it --- third_party/newlib/string/local.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 third_party/newlib/string/local.h (limited to 'third_party/newlib/string/local.h') diff --git a/third_party/newlib/string/local.h b/third_party/newlib/string/local.h new file mode 100644 index 0000000..a96bdf1 --- /dev/null +++ b/third_party/newlib/string/local.h @@ -0,0 +1,12 @@ +/* + Taken from glibc: + Add the compiler optimization to inhibit loop transformation to library + calls. This is used to avoid recursive calls in memset and memmove + default implementations. +*/ +#ifdef _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL +# define __inhibit_loop_to_libcall \ + __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) +#else +# define __inhibit_loop_to_libcall +#endif -- cgit v1.2.3