mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-17 12:01:53 +08:00
10e4d79a19
* acconfig.h: Add _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL. * newlib.hin: Ditto. * configure: Regenerate. * configure.in: Add setting of _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL. * libc/string/local.h: Add check for _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL and set __inhibit_loop_to_libcall macro appropriately. * libc/string/memmove.c: Use __inhibit_loop_to_libcall macro in function declaration. * libc/string/memset.c: Ditto.
25 lines
677 B
C
25 lines
677 B
C
#include <_ansi.h>
|
|
#include <../ctype/local.h>
|
|
|
|
/* internal function to compute width of wide char. */
|
|
int _EXFUN (__wcwidth, (wint_t));
|
|
|
|
/* Defined in locale/locale.c. Returns a value != 0 if the current
|
|
language is assumed to use CJK fonts. */
|
|
int __locale_cjk_lang ();
|
|
|
|
/*
|
|
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
|
|
|
|
|