+2019-02-06 Joseph Myers <joseph@codesourcery.com>
+
+ * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
+ before return type, without separate inline.
+ * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
+ * elf/dl-tunables.h (tunable_is_name): Likewise.
+ * malloc/malloc.c (do_set_trim_threshold): Likewise.
+ (do_set_top_pad): Likewise.
+ (do_set_mmap_threshold): Likewise.
+ (do_set_mmaps_max): Likewise.
+ (do_set_mallopt_check): Likewise.
+ (do_set_perturb_byte): Likewise.
+ (do_set_arena_test): Likewise.
+ (do_set_arena_max): Likewise.
+ (do_set_tcache_max): Likewise.
+ (do_set_tcache_count): Likewise.
+ (do_set_tcache_unsorted_limit): Likewise.
+ * nis/nis_subr.c (count_dots): Likewise.
+ * nptl/allocatestack.c (advise_stack_range): Likewise.
+ * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
+ (do_sin): Likewise.
+ (reduce_sincos): Likewise.
+ (do_sincos): Likewise.
+ * sysdeps/unix/sysv/linux/x86/elision-conf.c
+ (do_set_elision_enable): Likewise.
+ (TUNABLE_CALLBACK_FNDECL): Likewise.
+
2019-02-06 Florian Weimer <fweimer@redhat.com>
* support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
/* This is a subroutine of _dl_map_segments. It should be called for each
load command, some time after L->l_addr has been set correctly. It is
responsible for setting up the l_text_end and l_phdr fields. */
-static void __always_inline
+static __always_inline void
_dl_postprocess_loadcmd (struct link_map *l, const ElfW(Ehdr) *header,
const struct loadcmd *c)
{
for setuid binaries. We use the special version of access() to avoid
setting ERRNO, which is a TLS variable since TLS has not yet been set
up. */
-static inline void
-__always_inline
+static __always_inline void
maybe_enable_malloc_check (void)
{
tunable_id_t id = TUNABLE_ENUM_NAME (glibc, malloc, check);
# define TUNABLES_FRONTEND_yes TUNABLES_FRONTEND_valstring
/* Compare two name strings, bounded by the name hardcoded in glibc. */
-static inline bool
-__always_inline
+static __always_inline bool
tunable_is_name (const char *orig, const char *envname)
{
for (;*orig != '\0' && *envname != '\0'; envname++, orig++)
/*
------------------------------ mallopt ------------------------------
*/
-static inline int
-__always_inline
+static __always_inline int
do_set_trim_threshold (size_t value)
{
LIBC_PROBE (memory_mallopt_trim_threshold, 3, value, mp_.trim_threshold,
return 1;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_top_pad (size_t value)
{
LIBC_PROBE (memory_mallopt_top_pad, 3, value, mp_.top_pad,
return 1;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_mmap_threshold (size_t value)
{
/* Forbid setting the threshold too high. */
return 0;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_mmaps_max (int32_t value)
{
LIBC_PROBE (memory_mallopt_mmap_max, 3, value, mp_.n_mmaps_max,
return 1;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_mallopt_check (int32_t value)
{
return 1;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_perturb_byte (int32_t value)
{
LIBC_PROBE (memory_mallopt_perturb, 2, value, perturb_byte);
return 1;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_arena_test (size_t value)
{
LIBC_PROBE (memory_mallopt_arena_test, 2, value, mp_.arena_test);
return 1;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_arena_max (size_t value)
{
LIBC_PROBE (memory_mallopt_arena_max, 2, value, mp_.arena_max);
}
#if USE_TCACHE
-static inline int
-__always_inline
+static __always_inline int
do_set_tcache_max (size_t value)
{
if (value >= 0 && value <= MAX_TCACHE_SIZE)
return 1;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_tcache_count (size_t value)
{
LIBC_PROBE (memory_tunable_tcache_count, 2, value, mp_.tcache_count);
return 1;
}
-static inline int
-__always_inline
+static __always_inline int
do_set_tcache_unsorted_limit (size_t value)
{
LIBC_PROBE (memory_tunable_tcache_unsorted_limit, 2, value, mp_.tcache_unsorted_limit);
}
libnsl_hidden_nolink_def (nis_name_of_r, GLIBC_2_1)
-static int __always_inline
+static __always_inline int
count_dots (const_nis_name str)
{
int count = 0;
/* Mark the memory of the stack as usable to the kernel. It frees everything
except for the space used for the TCB itself. */
-static inline void
-__always_inline
+static __always_inline void
advise_stack_range (void *mem, size_t size, uintptr_t pd, size_t guardsize)
{
uintptr_t sp = (uintptr_t) CURRENT_STACK_FRAME;
of the number by combining the sin and cos of X (as computed by a variation
of the Taylor series) with the values looked up from the sin/cos table to
get the result. */
-static inline double
-__always_inline
+static __always_inline double
do_cos (double x, double dx)
{
mynumber u;
the number by combining the sin and cos of X (as computed by a variation of
the Taylor series) with the values looked up from the sin/cos table to get
the result. */
-static inline double
-__always_inline
+static __always_inline double
do_sin (double x, double dx)
{
double xold = x;
is written to *a, the low part to *da. Range reduction is accurate to 136
bits so that when x is large and *a very close to zero, all 53 bits of *a
are correct. */
-static inline int4
-__always_inline
+static __always_inline int4
reduce_sincos (double x, double *a, double *da)
{
mynumber v;
}
/* Compute sin or cos (A + DA) for the given quadrant N. */
-static double
-__always_inline
+static __always_inline double
do_sincos (double a, double da, int4 n)
{
double retval;
int __pthread_force_elision attribute_hidden = 0;
#if HAVE_TUNABLES
-static inline void
-__always_inline
+static __always_inline void
do_set_elision_enable (int32_t elision_enable)
{
/* Enable elision if it's avaliable in hardware. It's not necessary to check
}
#define TUNABLE_CALLBACK_FNDECL(__name, __type) \
-static inline void \
-__always_inline \
+static __always_inline void \
do_set_elision_ ## __name (__type value) \
{ \
__elision_aconf.__name = value; \