summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2015-02-08Merge branch 't/tls' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
Conflicts: include/errno.h
2015-02-07styleSamuel Thibault
2015-02-03Merge branch 't/socket_flags' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2015-02-03Update copyright yearsSamuel Thibault
2015-01-23Merge commit 'refs/top-bases/t/verify.h' into t/verify.hThomas Schwinge
2015-01-23Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_WhittakerThomas Schwinge
Conflicts: hurd/hurdsocket.h sysdeps/mach/hurd/errno-loc.c
2015-01-21Merge remote-tracking branch ↵Thomas Schwinge
'refs/remotes/savannah/top-bases/tschwinge/Roger_Whittaker' into refs/top-bases/tschwinge/Roger_Whittaker Conflicts: Versions.def
2014-02-07Update version.h and include/features.h for 2.19 releaseglibc-2.19Allan McRae
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae
2013-12-20Merge commit 'refs/top-bases/t/verify.h' into t/verify.hThomas Schwinge
2013-12-20Merge commit 'refs/top-bases/t/tls' into t/tlsThomas Schwinge
2013-12-20Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_WhittakerThomas Schwinge
2013-12-19Add _DEFAULT_SOURCE feature test macro.Joseph Myers
This patch adds a feature test macro _DEFAULT_SOURCE to enable the default set of header declarations. The intention is: if _DEFAULT_SOURCE is not used there is no change to the set of __USE_* macros glibc defines; if it's used on its own, and without compiler options such as -std=c99 that define __STRICT_ANSI__, again, there is no change; if it's used together with the macros it approximately (i.e., apart from __USE_POSIX_IMPLICITLY) implies (-D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L), again, there is no change. Otherwise, it causes the relevant features to be enabled, even if __STRICT_ANSI__, or another feature test macro, would cause them to be disabled. This macro deliberately bundles the POSIX.1-2008 (non-X/Open) functionality with the BSD/SVID/"misc" functionality, rather than defining a macro that gives just the latter, as many of the header cleanups resulting from removing _BSD_SOURCE and _SVID_SOURCE support are only possible when BSD/SVID/"misc" is always bundled with POSIX.1-2008. Tested x86_64. * include/features.h: Update comment documenting feature test macros. Mention _DEFAULT_SOURCE in comment. [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine. [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE, _BSD_SOURCE and _SVID_SOURCE. [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE && !_SVID_SOURCE]: Likewise. [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE] (__USE_POSIX_IMPLICITLY): Define. [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE] (_POSIX_SOURCE): Undefine and redefine. [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE] (_POSIX_C_SOURCE): Likewise. * manual/creature.texi (_DEFAULT_SOURCE): Document. (Feature Test Macros): Update documentation of default features.
2013-12-17Remove __FAVOR_BSD.Joseph Myers
2013-12-03[BZ #16195] Fix build warnings from systemtap probes in non-systemtap ↵Siddhesh Poyarekar
configurations Joseph pointed out in the bug report (and in an earlier thread) that systemtap probes cause build time warnings like the following: ../sysdeps/ieee754/dbl-64/e_atan2.c:602:4: warning: the address of 'p' will always evaluate as 'true' [-Waddress] due to the fact that we're now passing non-weak variables to LIBC_PROBE in the libm probes. This happens only on configurations that do not enable systemtap. The macro definition of LIBC_PROBE in this case only acts as a sanity checker to ensure that the number parameters passed to LIBC_PROBE is equal to the argument count parameter passed before it. This can be done in a much simpler manner by just adding a macro definition for each number of arguments. I am assuming here that we don't really want to bother with supporting LIBC_PROBE with an indeterminate number of arguments and if there is a need for a probe to have more data than what is currently supported (4 arguments), one could simply add an additional macro here.
2013-11-28Fix dbl-64 e_sqrt.c for non-default rounding modes (bug 16271).Joseph Myers
2013-11-18Define TLS version of libc_hidden_proto.Joseph Myers
2013-11-04Define __STDC_IEC_559* based on __GCC_IEC_559*.Joseph Myers
2013-09-23Merge branch 't/tls-threadvar' into refs/top-bases/tschwinge/Roger_WhittakerSamuel Thibault
2013-09-23Make errno use TLS instead of threadvarSamuel Thibault
2013-09-20Make __ffs hiddenAndreas Schwab
2013-09-04conformtest: Fix namespace testing.Joseph Myers
2013-09-04Remove --disable-versioning.Joseph Myers
2013-09-01Merge commit 'refs/top-bases/t/verify.h' into t/verify.hThomas Schwinge
2013-09-01Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_WhittakerThomas Schwinge
Conflicts: sysdeps/mach/hurd/i386/init-first.c sysdeps/unix/sysv/linux/ldsodefs.h
2013-09-01Merge commit 'refs/top-bases/t/tls' into t/tlsThomas Schwinge
Conflicts: sysdeps/mach/hurd/i386/init-first.c
2013-08-27Clean up h_errno declaration to use __thread unconditionally.Roland McGrath
2013-08-27Clean up _res declaration to use __thread unconditionally.Roland McGrath
2013-08-10Update version.h and include/features.h for 2.18 release.glibc-2.18David S. Miller
2013-06-24libc-internal.h: add ALIGN helper macrosMike Frysinger
Rather than open coding the masks, add helper macros to do the magic. This makes code easier to read. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-06-20Fix loop construction to functions callsAdhemerval Zanella
Check wheter the compiler has the option -fno-tree-loop-distribute-patterns to inhibit loop transformation to library calls and uses it on memset and memmove default implementation to avoid recursive calls.
2013-06-12Set/restore rounding mode only when neededSiddhesh Poyarekar
The most common use case of math functions is with default rounding mode, i.e. rounding to nearest. Setting and restoring rounding mode is an unnecessary overhead for this, so I've added support for a context, which does the set/restore only if the FP status needs a change. The code is written such that only x86 uses these. Other architectures should be unaffected by it, but would definitely benefit if the set/restore has as much overhead relative to the rest of the code, as the x86 bits do. Here's a summary of the performance improvement due to these improvements; I've only mentioned functions that use the set/restore and have benchmark inputs for x86_64: Before: cos(): ITERS:4.69335e+08: TOTAL:28884.6Mcy, MAX:4080.28cy, MIN:57.562cy, 16248.6 calls/Mcy exp(): ITERS:4.47604e+08: TOTAL:28796.2Mcy, MAX:207.721cy, MIN:62.385cy, 15543.9 calls/Mcy pow(): ITERS:1.63485e+08: TOTAL:28879.9Mcy, MAX:362.255cy, MIN:172.469cy, 5660.86 calls/Mcy sin(): ITERS:3.89578e+08: TOTAL:28900Mcy, MAX:704.859cy, MIN:47.583cy, 13480.2 calls/Mcy tan(): ITERS:7.0971e+07: TOTAL:28902.2Mcy, MAX:1357.79cy, MIN:388.58cy, 2455.55 calls/Mcy After: cos(): ITERS:6.0014e+08: TOTAL:28875.9Mcy, MAX:364.283cy, MIN:45.716cy, 20783.4 calls/Mcy exp(): ITERS:5.48578e+08: TOTAL:28764.9Mcy, MAX:191.617cy, MIN:51.011cy, 19071.1 calls/Mcy pow(): ITERS:1.70013e+08: TOTAL:28873.6Mcy, MAX:689.522cy, MIN:163.989cy, 5888.18 calls/Mcy sin(): ITERS:4.64079e+08: TOTAL:28891.5Mcy, MAX:6959.3cy, MIN:36.189cy, 16062.8 calls/Mcy tan(): ITERS:7.2354e+07: TOTAL:28898.9Mcy, MAX:1295.57cy, MIN:380.698cy, 2503.7 calls/Mcy So the improvements are: cos: 27.9089% exp: 22.6919% pow: 4.01564% sin: 19.1585% tan: 1.96086% The downside of the change is that it will have an adverse performance impact on non-default rounding modes, but I think the tradeoff is justified.
2013-06-11Fix indentation and add copyright header to time.hSiddhesh Poyarekar
2013-06-11Fix symbol definitions for __clock_* functionsSiddhesh Poyarekar
__clock_gettime and other __clock_* functions could result in an extra PLT reference within libc.so if it actually gets used. None of the code currently uses them, which is why this probably went unnoticed.
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers
2013-06-06Fix leading whitespaces.Ondrej Bilka
2013-05-26Merge commit 'refs/top-bases/t/verify.h' into t/verify.hThomas Schwinge
2013-05-26Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_WhittakerThomas Schwinge
Conflicts: sysdeps/mach/hurd/i386/init-first.c
2013-05-26Merge commit 'refs/top-bases/t/tls' into t/tlsThomas Schwinge
Conflicts: sysdeps/mach/hurd/i386/init-first.c Address glibc commits 3d3436ae68a907f656a07604eb7e10a50e1c8f85, dc0a02638583d8e7f7e1cc72643d1b26ec6042fd, 288f7d79fe2dcc8e62c539f57b25d7662a2cd5ff.
2013-05-23Merge commit 'refs/top-bases/t/verify.h' into t/verify.hThomas Schwinge
2013-05-23Merge commit 'refs/top-bases/t/tls' into t/tlsThomas Schwinge
2013-05-23Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_WhittakerThomas Schwinge
2013-05-20Merge commit 'refs/top-bases/t/verify.h' into t/verify.hThomas Schwinge
2013-05-20Merge commit 'refs/top-bases/t/tls' into t/tlsThomas Schwinge
Conflicts: sysdeps/mach/hurd/tls.h
2013-05-20Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_WhittakerThomas Schwinge
Conflicts: configure configure.in hurd/ctty-input.c hurd/ctty-output.c hurd/hurd/signal.h hurd/hurdexec.c hurd/hurdmsg.c hurd/hurdsig.c hurd/hurdsocket.h socket/recvmmsg.c socket/sendmmsg.c sysdeps/mach/hurd/i386/sigreturn.c sysdeps/mach/hurd/i386/trampoline.c sysdeps/mach/hurd/pipe.c sysdeps/mach/hurd/recvmsg.c sysdeps/mach/hurd/sendmsg.c sysdeps/mach/hurd/sigaction.c sysdeps/mach/hurd/sigpending.c sysdeps/mach/hurd/sigprocmask.c sysdeps/mach/hurd/sigsuspend.c sysdeps/mach/hurd/sigwait.c sysdeps/mach/hurd/socketpair.c sysdeps/mach/hurd/tls.h sysdeps/unix/sysv/linux/recvmmsg.c sysdeps/unix/sysv/linux/sendmmsg.c
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold
2013-04-02New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-03-28Avoid unconditional __call_tls_dtors calls in static linking.Roland McGrath
2013-02-18sys/cdefs.h: export __attribute_alloc_size__Mike Frysinger
Since we want to use this in installed headers, move it to the installed sys/cdefs.h. This requires a slight tweaking of the name (add trailing underscores). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-02-18unify xmalloc prototypes & friendsMike Frysinger
These prototypes are duplicated in many places. Add a dedicated header for holding prototypes for program-specific functions to avoid that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>