Commit Graph

641 Commits

Author SHA1 Message Date
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
Ulrich Drepper
c63bfa7994 Avoid alloca in setenv for long strings. 2010-02-02 09:55:55 -08:00
Ulrich Drepper
c589e093e1 elax some conditions in stdlib.h. 2010-01-14 16:07:58 -08:00
Ulrich Drepper
e26dfa69f5 Add nonnull attribute to unsetenv declaration. 2010-01-13 23:06:59 -08:00
Ulrich Drepper
52e96a8092 Be a bit more relaxed about obsoleted mktemp symbol. 2010-01-13 07:15:17 -08:00
Ulrich Drepper
21487cc929 Fix handling symbols removed in XPG7. 2010-01-11 14:49:17 -08:00
Ulrich Drepper
f095bb7204 Add support for XPG7 testing.
The header conformance testing code needed extending for XPG7.  This
exposed a few bugs in the headers.  There are more changes to come.
2010-01-09 10:56:41 -08:00
Ulrich Drepper
a87cd2894c Remove tst-sigcontext test.
It's bogus in many places.
2009-12-24 13:34:05 -08:00
Maciej W. Rozycki
9250545663 Additional setcontext(), etc. conformance tests. 2009-12-24 13:22:33 -08:00
Ulrich Drepper
c53f6228f1 Fix comments in random_r.c. 2009-11-24 20:22:44 -08:00
Ulrich Drepper
08c7ad975c Avoid two warnings in strtol{,l} tests. 2009-10-30 09:22:34 -07:00
Ulrich Drepper
3a83202db6 Implement mkostemps and mkostemps64. 2009-10-30 08:02:30 -07:00