Joseph Myers
ab07cea8bb
Update longlong.h from GCC.
2013-12-04 17:40:43 +00:00
Andreas Schwab
a7931fcfba
Properly handle unavailable elements in LC_MONETARY category
2013-11-18 12:50:09 +01:00
Joseph Myers
9310c284ae
Fix strtod rounding of half the least subnormal (bug 16151).
2013-11-13 12:59:54 +00:00
Ondřej Bílka
bbea82f7fe
Remove code from div that is by C99 obsolete. Fixes bug 15799
2013-10-30 16:08:12 +01:00
Liubov Dmitrieva
d84f25c7d8
Fix buffer overrun in strtod_l
2013-09-19 16:52:04 +04:00
Allan McRae
34829bc28f
Fix memory leak in stdlib/isomac.c
2013-09-09 22:53:46 +10:00
Ondřej Bílka
f24a6d086b
Fix then/than typos.
2013-08-30 18:10:31 +02:00
Thomas Schwinge
0007fc9bdd
[BZ #15522 ] strtod ("nan(N)") returning a sNaN in some cases
2013-08-29 12:22:10 +02:00
Ondřej Bílka
6f65e66895
Fix typos.
2013-08-29 09:11:45 +02:00
Andreas Schwab
ffabd3937a
Fix dependencies for stdlib/tst-tls-atexit
2013-08-26 10:21:59 +02:00
Ondřej Bílka
c0c3f78afb
Fix typos.
2013-08-21 19:48:48 +02:00
Joseph Myers
1b2feed264
Make tst-strtod-round use ROUNDING_TESTS.
2013-06-14 17:58:41 +00:00
Joseph Myers
1f24b9ad0f
Rework tst-strtod-round handling of inexact results.
2013-06-13 15:41:58 +00:00
Joseph Myers
60d2f8f3c7
Use (void) in no-arguments function definitions.
2013-06-08 00:22:23 +00:00
Joseph Myers
2e09a79ada
Avoid use of "register" as optimization hint.
2013-06-07 22:24:35 +00:00
Ondrej Bilka
350635a59a
Fix leading whitespaces.
2013-06-06 20:36:07 +02:00
Joseph Myers
9c84384cc1
Remove trailing whitespace.
2013-06-05 20:44:03 +00:00
Joseph Myers
fab7ce3f5b
Link extra-libs consistently with libc and ld.so.
2013-05-31 16:16:33 +00:00
Ryan S. Arnold
e054f49430
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
2013-05-16 11:32:54 -05:00
Andreas Jaeger
9ce3b2cbd2
BZ#15380: Fix initstate error return
...
[BZ #15380 ]
* stdlib/random.c (__initstate): Return NULL if
__initstate fails.
2013-04-29 21:02:16 +02:00
Andreas Jaeger
4220c3ef77
Fix guards for qecvt
...
[BZ #15007 ]
* stdlib/stdlib.h: Update guards for qecvt.
* stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
<stdlib.h>.
2013-04-27 16:21:53 +02:00
Thomas Schwinge
ee091edf1a
More tests for external charater sequences representing NaNs.
2013-04-05 22:41:20 +02:00
Roland McGrath
e57b0c6100
Avoid unconditional __call_tls_dtors calls in static linking.
2013-03-28 16:52:57 -07:00
Ondrej Bilka
a065ceffdf
Do not warn about mblen, mbtowc and wctomb unused result.
2013-03-20 08:08:27 +01:00
Jakub Jelinek
2389741abb
* stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
...
macro.
2013-02-19 17:56:59 +01:00
Siddhesh Poyarekar
2016b3cd19
Fix copyright year in new files
2013-02-19 09:21:52 +05:30
Mike Frysinger
4be9b544ea
stdlib.h: use existing malloc/alloc_size attribute defines
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-02-18 17:19:00 -05:00
Siddhesh Poyarekar
ba384f6ed9
C++11 thread_local destructors support
...
This feature is specifically for the C++ compiler to offload calling
thread_local object destructors on thread program exit, to glibc.
This is to overcome the possible complication of destructors of
thread_local objects getting called after the DSO in which they're
defined is unloaded by the dynamic linker. The DSO is marked as
'unloadable' if it has a constructed thread_local object and marked as
'unloadable' again when all the constructed thread_local objects
defined in it are destroyed.
2013-02-18 19:08:21 +05:30
Ondrej Bilka
cc7834d65e
Install stdlib-bsearch.h header
2013-02-13 13:44:36 +01:00
Ondrej Bilka
41eda41d74
Add inline bsearch expansion.
2013-02-11 23:18:09 +01:00
Carlos O'Donell
9a0d1941d3
getenv: Remove check for non-standard endianness.
...
stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
else clause and remove check for non-standard endianness.
2013-02-04 20:11:36 -05:00
Joseph Myers
6a57d93130
Remove __GLIBC_HAVE_LONG_LONG.
2013-01-11 21:13:25 +00:00
H.J. Lu
740b3dbee8
Add --enable-hardcoded-path-in-tests configure option
2013-01-11 07:14:18 -08:00
Joseph Myers
828beb132d
Use __extension__ with long long in installed headers.
2013-01-10 20:19:45 +00:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
Joseph Myers
f4cf5f2d8b
Add script to update copyright notices and reformat some to facilitate its use.
2013-01-01 16:29:10 +00:00
Joseph Myers
9bde902c76
Declare ecvt, fcvt, gcvt, mktemp in stdlib.h for XOPEN2K (bug 14824).
2012-11-09 21:16:58 +00:00
Thomas Schwinge
b830319d49
[BZ #157 ] Remove include/stub-tag.h for good.
2012-11-04 19:59:40 +01:00
H.J. Lu
f62c8abcfb
Compile x86 rtld with -mno-sse -mno-mmx
2012-11-02 18:43:27 -07:00
Joseph Myers
2a27fd6dae
Fix strtod handling of underflow (bug 14047).
2012-10-30 13:51:27 +00:00
Joseph Myers
03ac099f6b
Define and use $(run-built-tests).
2012-10-24 00:08:46 +00:00
Dmitry V. Levin
57c69bef13
Set "fail on error" mode directly in testsuite shell scripts
2012-09-25 02:48:31 +00:00
Joseph Myers
6c9b0f6826
Make strtod respect the rounding mode (bug 14518).
2012-09-12 23:36:19 +00:00
Joseph Myers
ed8c2ecd21
Fix strtod test for values above maximum for IBM long double.
2012-09-06 15:33:06 +00:00
Andreas Schwab
4d038ae316
Increase timeout for stdlib/tst-strtod-overflow
2012-09-05 18:13:21 +02:00
Andreas Schwab
a0070b7e70
Use LDBL_MIN_EXP to distinguish Intel and Motorola extended float format
2012-09-05 13:53:43 +02:00
Andreas Schwab
e1343020fb
Correctly handle Motorola extended float format in tst-strtod-round
2012-09-05 12:40:45 +02:00
Florian Weimer
edb3cb8831
stdlib/tst-secure-getenv.c: whitespace-only changes in comments
2012-09-04 15:01:18 +02:00
Florian Weimer
292378045c
stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID failures
2012-09-04 14:36:56 +02:00
Joseph Myers
7efb4737dd
Fix sign of zero on strtod underflow (bug 14519).
2012-08-27 16:04:19 +00:00
Joseph Myers
af92131a8e
Fix strtod rounding (bug 3479).
2012-08-27 16:02:07 +00:00
Joseph Myers
d6e70f4368
Fix strtod integer/buffer overflow (bug 14459).
2012-08-27 15:59:24 +00:00
Roland McGrath
c75ccd4c3a
Clean up definition of _LIBC_REENTRANT and _IO_MTSAFE_IO.
2012-08-17 09:35:15 -07:00
Joseph Myers
c3c8283c06
Update longlong.h from GCC.
2012-08-16 21:37:04 +00:00
Roland McGrath
db1ee0a836
Suppress -Wunused-but-set warnings in GMP code.
2012-08-16 14:08:47 -07:00
H.J. Lu
c5757acd6e
Remove __secure_getenv in 2.17 instead of 2.16
2012-08-06 14:47:35 -07:00
Roland McGrath
4f75b7a09a
Distinguish ELOOP diagnosis threshold from SYMLOOP_MAX.
2012-08-03 11:39:30 -07:00
Florian Weimer
2bc1387273
secure_getenv test should write errors to standard output
...
This way, they end up in the log file. Also skip the test if no GID can
be found.
2012-07-31 09:55:38 +02:00
Florian Weimer
84b3fd8407
Rename __secure_getenv to secure_getenv
2012-07-25 19:46:22 +02:00
Thomas Schwinge
dc97c227c9
setcontext: Clarify termination when uc_link is the null pointer.
2012-07-17 10:05:55 +02:00
Andreas Schwab
d0cd7d0212
Fix bug-getcontext test
2012-07-16 18:46:40 +02:00
David S. Miller
2fd6ff133b
Sync longlong.h with GCC to fix a sparc regression.
...
* stdlib/longlong.h: Updated from GCC.
2012-06-03 18:51:43 -07:00
David S. Miller
402fe938f6
Update longlong.h from GCC to get some sparc improvements.
...
* stdlib/longlong.h: Updated from GCC.
2012-06-01 13:33:28 -07:00
Andreas Schwab
d18ea0c5e6
Remove use of INTDEF/INTUSE in libio
2012-05-24 23:06:20 +02:00
Chris Metcalf
0af797def3
math: support platforms with limited FP rounding or exception support
...
For some tests, just claim that fetestexcept() always returns true,
so the rest of the test can be compiled.
For libm-test, provide known bogus values for unsupported rounding
modes, so fesetround() will return failure.
Elsewhere, just add some #ifdefs to avoid code that uses particular
FP exceptions if the exceptions aren't supported.
2012-05-17 08:50:41 -04:00
H.J. Lu
8115f29bad
Update stdlib/longlong.h from GCC
2012-05-09 15:36:41 -07:00
Joseph Myers
8f203e6cb6
Fix strtod rounding of hex values (bug 14049).
2012-05-04 10:44:39 +00:00
Allan McRae
d4c2917fc5
Fix test-suite failues with -Wl,--as-needed
...
Signed-off-by: Allan McRae <allan@archlinux.org>
2012-05-02 20:32:50 -04:00
Marek Polacek
5ac3ea17df
Fix attributes for fortify functions.
2012-04-29 15:34:20 +02:00
Paul Eggert
c0baea34e0
* stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
...
[BZ #13970 ]
(strtod, strtof, strtold, strtol, strtoul, strtoq)
(strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
(strtod_l, strtof_l, strtold_l): Remove __wur.
It is not necessarily an error to ignore strtol's return value.
One can reliably look at the stored endptr to decide whether
the number had valid syntax.
2012-04-23 10:43:28 -07:00
Andreas Jaeger
349fa79f55
Don't warn about unused result of mktemp
...
[BZ #13908 ]
mktemp always returns TEMPLATE, the caller should check TEMPLATE[0]
instead of TEMPLATE, so do not warn about the unused result.
Fix also the comment for mktemp
2012-04-05 10:44:08 +02:00
Ulrich Drepper
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
Marek Polacek
bc957d531c
Remove oldish __GNUC_PREREQ.
2012-03-03 22:57:00 +01:00
Carlos O'Donell
433f48bf3b
BZ #3992 : stdlib/fmtmsg.c: missing stdint.h include.
...
Use of uint32_t requires stdint.h.
2012-02-27 22:31:39 -05:00
Ulrich Drepper
7724defcf8
Fix locking in fmtmsg
2012-02-24 21:18:04 -05:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Marek Polacek
69db4f8f46
Remove PARAMS macros.
2012-01-31 20:02:53 +00:00
Ulrich Drepper
400aa020ea
Fix locking problem in fmtmsg
2012-01-16 09:03:20 -05:00
Ulrich Drepper
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
8b43a4cc56
Fix aligned_alloc prototype
2012-01-01 07:17:22 -05:00
Ulrich Drepper
380d7e87dc
Implement aligned_alloc
2012-01-01 07:17:21 -05:00
Ulrich Drepper
4e9e7a356c
Enable at_quick_exit and quick_exit for ISO C11
2012-01-01 07:17:20 -05:00
Andreas Schwab
707f25dfc0
Fix division by denominator with more than two limbs in strtold
2011-12-21 23:57:15 +01:00
Ulrich Drepper
5776983978
makecontext doens't need __THROWNL
2011-11-11 12:57:31 -05:00
Andreas Schwab
edc5984d4d
Mark setjmp and ucontext functions as non-leaf
2011-11-11 11:11:07 +01:00
Andreas Krebbel
48693bea9e
S/390: Fix longlong.h inline asms for zarch
2011-10-07 12:09:59 -04:00
Ulrich Drepper
3ce1f29594
Cleanup of configuration options
...
Make several tool features mandatory and simplify the code.
2011-09-10 14:34:15 -04:00
Andreas Jaeger
04d08991c4
Add test case strtod underflow
2011-07-08 13:16:26 -04:00
Ulrich Drepper
9895c8bc62
Change error code for underflows in strtod
2011-07-06 20:57:55 -04:00
Andreas Krebbel
5a31b2836d
S/390 longlong.h: Fix smul_ppmm with -m31 -mzarch
2011-06-07 07:26:27 -04:00
Andreas Schwab
def7fbd6c6
Update longlong.h from GCC
2011-05-23 11:53:24 -04:00
Ulrich Drepper
ea389b12b3
Handle long variable names in putenv
2011-05-16 10:13:54 -04:00
Ulrich Drepper
f8a3b5bf8f
Use mmap for allocation of buffers used for __abort_msg
2011-05-15 00:34:48 -04:00
Jim Meyering
ded5b9b7c7
Remove doubled words.
2011-04-22 21:34:32 -04:00
Ulrich Drepper
75ea32abcd
Fix FPU context handling in getcontext on x86-64.
...
fnstenv on x86-64 seems to clear the state. Work around.
2011-04-17 21:51:26 -04:00
Ulrich Drepper
4c1423edfb
Fix typos in comments.
2011-04-01 10:39:30 -04:00
Ulrich Drepper
fb88ac72c2
Fix race in qsort_r initialization.
2010-12-09 12:12:58 -05:00
Andreas Schwab
a726d7960e
Fix array overflow in floating point parser
2010-09-01 12:38:44 -07:00
Andi Kleen
d22e4cc939
x86: Add support for frame pointer less mcount
2010-08-07 21:24:05 -07:00
Andreas Schwab
ef634a94c7
Fix use of ucontext_t objects in tst-makecontext3
...
Objects of type ucontext_t cannot be copied, only getcontext can
properly initialize them. For example, on powerpc the structure
contains a pointer into itself, so makecontext modifies the original
object by side effect.
2010-04-13 07:13:00 -07:00