platform/upstream/glibc.git
12 years agoUse $CXX not cc1plus to locate C++ headers.
Joseph Myers [Wed, 10 Oct 2012 22:07:36 +0000 (22:07 +0000)]
Use $CXX not cc1plus to locate C++ headers.

12 years agoDon't include link-libc-static in +link-static-before-libc.
Joseph Myers [Wed, 10 Oct 2012 21:07:20 +0000 (21:07 +0000)]
Don't include link-libc-static in +link-static-before-libc.

12 years agoRemove _IO_pos_t.
Joseph Myers [Wed, 10 Oct 2012 16:05:36 +0000 (16:05 +0000)]
Remove _IO_pos_t.

12 years ago* NEWS: Add note about FIPS mode. Wording suggested by Roland
Alexandre Oliva [Wed, 10 Oct 2012 10:06:03 +0000 (07:06 -0300)]
* NEWS: Add note about FIPS mode.  Wording suggested by Roland
McGrath.

12 years ago* crypt/crypt-entry.c: Include fips-private.h.
Alexandre Oliva [Wed, 10 Oct 2012 10:05:46 +0000 (07:05 -0300)]
* crypt/crypt-entry.c: Include fips-private.h.
(__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
* crypt/md5c-test.c (main): Tolerate disabled MD5.
* sysdeps/unix/sysv/linux/fips-private.h: New file.
* sysdeps/generic/fips-private.h: New file, dummy fallback.

12 years ago* crypt/crypt-private.h: Include stdbool.h.
Alexandre Oliva [Wed, 10 Oct 2012 10:05:10 +0000 (07:05 -0300)]
* crypt/crypt-private.h: Include stdbool.h.
(_ufc_setup_salt_r): Return bool.
* crypt/crypt-entry.c: Include errno.h.
(__crypt_r): Return NULL with EINVAL for bad salt.
* crypt/crypt_util.c (bad_for_salt): New.
(_ufc_setup_salt_r): Check that salt is long enough and within
the specified alphabet.
* crypt/badsalttest.c: New file.
* crypt/Makefile (tests): Add it.
($(objpfx)badsalttest): New.

12 years agoTake lock in pthread_cond_wait cleanup handler only when needed
Siddhesh Poyarekar [Wed, 10 Oct 2012 06:47:27 +0000 (12:17 +0530)]
Take lock in pthread_cond_wait cleanup handler only when needed

[BZ #14652]
When a thread waiting in pthread_cond_wait with a PI mutex is
cancelled after it has returned successfully from the futex syscall
but just before async cancellation is disabled, it enters its
cancellation handler with the mutex held and simply calling a
mutex_lock again will result in a deadlock.  Hence, it is necessary to
see if the thread owns the lock and try to lock it only if it doesn't.

12 years agoAdd NEWS entry for BZ #14602.
Maxim Kuvyrkov [Wed, 10 Oct 2012 00:09:30 +0000 (17:09 -0700)]
Add NEWS entry for BZ #14602.

12 years agoMake libm-test.inc test comparison macros.
Joseph Myers [Tue, 9 Oct 2012 23:34:12 +0000 (23:34 +0000)]
Make libm-test.inc test comparison macros.

12 years agoAutomatically disable libidn add-on under --disable-shared.
Roland McGrath [Tue, 9 Oct 2012 22:48:55 +0000 (15:48 -0700)]
Automatically disable libidn add-on under --disable-shared.

12 years agoAdd missing magic to GLIBC_PROVIDES.
Roland McGrath [Tue, 9 Oct 2012 22:41:30 +0000 (15:41 -0700)]
Add missing magic to GLIBC_PROVIDES.

12 years agoFree errstring if _dl_addr doesn't returns 0
Roland McGrath [Tue, 9 Oct 2012 22:22:16 +0000 (15:22 -0700)]
Free errstring if _dl_addr doesn't returns 0

12 years agoRemove _G_off64_t and _G_stat64 from _G_config.h.
Joseph Myers [Tue, 9 Oct 2012 15:09:32 +0000 (15:09 +0000)]
Remove _G_off64_t and _G_stat64 from _G_config.h.

12 years agoFix BZ #14602: strstr and strcasestr return wrong result.
Maxim Kuvyrkov [Tue, 9 Oct 2012 03:52:53 +0000 (20:52 -0700)]
Fix BZ #14602: strstr and strcasestr return wrong result.

12 years agoImprove libm test coverage of classification macros / functions.
Joseph Myers [Mon, 8 Oct 2012 22:22:23 +0000 (22:22 +0000)]
Improve libm test coverage of classification macros / functions.

12 years agoAdd bugs 14660, 14661 to NEWS
Jonathan Nieder [Mon, 8 Oct 2012 21:17:02 +0000 (14:17 -0700)]
Add bugs 14660, 14661 to NEWS

12 years agonptl_db/Makefile: force C locale when running readelf
Jonathan Nieder [Mon, 8 Oct 2012 21:04:23 +0000 (14:04 -0700)]
nptl_db/Makefile: force C locale when running readelf

db-symbols.awk relies on English-language readelf output to find the
beginning of the symbol table, so force the locale.

Without this change, "make check" fails in non-English locales:

| diff -p -U 0 ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist [...]/nptl_db/libthread_db.symlist
| readelf -W -s [...]/nptl/libpthread.so | gawk -f [...]/nptl_db/db-symbols.v.i > [...]/nptl_db/db-symbols.out
| make[2]: *** [[...]/nptl_db/db-symbols.out] Erreur 1

12 years agoMakerules (check-abi-%): force C locale when running objdump
Jonathan Nieder [Mon, 8 Oct 2012 21:04:15 +0000 (14:04 -0700)]
Makerules (check-abi-%): force C locale when running objdump

abilist.awk relies on English-language output to find the "file
format" header line in "objdump --dynamic-syms" output, so force the
locale.

Without this change, "make check" fails in non-English locales:

| diff -p -U 0 ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist [...]/locale/libBrokenLocale.symlist
| --- ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist   2012-10-02 18:33:50.761863147 -0700
| +++ [...]/locale/libBrokenLocale.symlist    2012-10-03 00:11:22.877234252 -0700
| @@ -0,0 +1 @@
| +Don't grok this line: [...]/locale/libBrokenLocale.so:     format de fichier elf64-x86-64
| make[2]: *** [check-abi-libBrokenLocale] Erreur 1

12 years agoFix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
Andreas Schwab [Mon, 8 Oct 2012 09:41:11 +0000 (11:41 +0200)]
Fix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c

12 years agoFix Niagara-4 memcpy bug on 32-bit.
David S. Miller [Sun, 7 Oct 2012 01:36:40 +0000 (18:36 -0700)]
Fix Niagara-4 memcpy bug on 32-bit.

* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
upper 32-bits of the length value in %o2 since we use branch-on-register
tests which consider the entire 64-bit register.

12 years agoAdd a strstr test for page boundary
H.J. Lu [Sat, 6 Oct 2012 23:04:56 +0000 (16:04 -0700)]
Add a strstr test for page boundary

12 years agoCorrect libthreadb register access for 64-bit sparc.
David S. Miller [Sat, 6 Oct 2012 04:22:41 +0000 (21:22 -0700)]
Correct libthreadb register access for 64-bit sparc.

[BZ #14568]
* sysdeps/sparc/tls.h (DB_THREAD_SELF_INCLUDE): Delete.
(DB_THREAD_SELF): Use constants for the register offsets.  Correct
the case of a 64-bit debugger with a 32-bit inferior.

12 years agoAdd Niagara-4 optimized memset/bzero implementation.
David S. Miller [Fri, 5 Oct 2012 21:46:47 +0000 (14:46 -0700)]
Add Niagara-4 optimized memset/bzero implementation.

* sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
file.
* sysdeps/sparc/sparc64/multiarch/Makefile: Add to
sysdep_routines.
* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
* sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
and bzero when HWCAP_SPARC_CRYPTO is present.

12 years agoAdd a testase for BZ #14602
H.J. Lu [Fri, 5 Oct 2012 20:30:02 +0000 (13:30 -0700)]
Add a testase for BZ #14602

12 years agoTest strcasestr/strchr/strstr under all implementations
H.J. Lu [Fri, 5 Oct 2012 20:32:07 +0000 (13:32 -0700)]
Test strcasestr/strchr/strstr under all implementations

12 years agoClean up R_ARM_PC24 handling.
Roland McGrath [Fri, 5 Oct 2012 16:39:23 +0000 (09:39 -0700)]
Clean up R_ARM_PC24 handling.

12 years agoMove _dl_important_hwcaps to dl-hwcaps.c
H.J. Lu [Fri, 5 Oct 2012 17:26:29 +0000 (10:26 -0700)]
Move _dl_important_hwcaps to dl-hwcaps.c

12 years agoAdd test cases for BZ #14557
H.J. Lu [Fri, 5 Oct 2012 17:23:58 +0000 (10:23 -0700)]
Add test cases for BZ #14557

12 years agoSet GL(dl_nns) to 1 for vDSO in libc.a
H.J. Lu [Fri, 5 Oct 2012 17:22:14 +0000 (10:22 -0700)]
Set GL(dl_nns) to 1 for vDSO in libc.a

12 years agoSet up the data structures for vDSO in libc.a
H.J. Lu [Fri, 5 Oct 2012 17:20:39 +0000 (10:20 -0700)]
Set up the data structures for vDSO in libc.a

12 years agoImprove libm-test.inc comment.
Joseph Myers [Fri, 5 Oct 2012 17:06:23 +0000 (17:06 +0000)]
Improve libm-test.inc comment.

12 years agoUpdate config.guess and config.sub.
Joseph Myers [Fri, 5 Oct 2012 16:00:07 +0000 (16:00 +0000)]
Update config.guess and config.sub.

12 years agoUnlock mutex before going back to waiting for PI mutexes
Siddhesh Poyarekar [Fri, 5 Oct 2012 13:22:35 +0000 (18:52 +0530)]
Unlock mutex before going back to waiting for PI mutexes

[BZ #14417]
A futex call with FUTEX_WAIT_REQUEUE_PI returns with the mutex locked
on success.  If such a successful thread is pipped to the cond_lock by
another spuriously woken waiter, it could be sent back to wait on the
futex with the mutex lock held, thus causing a deadlock.  So it is
necessary that the thread relinquishes the mutex before going back to
sleep.

12 years agopowerpc: add name_to_handle_at, open_by_handle etc. to bits/fcntl.h
Khem Raj [Sun, 9 Sep 2012 04:29:10 +0000 (21:29 -0700)]
powerpc: add name_to_handle_at, open_by_handle etc. to bits/fcntl.h

Fixes BZ #14251.

12 years agoName space hygeine for madvise.
Roland McGrath [Thu, 4 Oct 2012 23:31:43 +0000 (16:31 -0700)]
Name space hygeine for madvise.

12 years agoClean up conditionalize of ld.so.cache support.
Roland McGrath [Wed, 3 Oct 2012 23:13:14 +0000 (16:13 -0700)]
Clean up conditionalize of ld.so.cache support.

12 years ago2012-10-03 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Wed, 3 Oct 2012 21:32:26 +0000 (14:32 -0700)]
2012-10-03  Steve Ellcey  <sellcey@mips.com>

* sysdeps/mips/ieee754.h: Move to...
* sysdeps/mips/ieee754/ieee754.h: Here.
* sysdeps/mips/mips32/Implies: Add mips/ieee754.
* sysdeps/mips/mips64/Implies: Ditto.
* sysdeps/mips/mips64/n32/Implies: Ditto.
* sysdeps/mips/mips64/n64/Implies: Ditto.

12 years ago2012-10-03 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Wed, 3 Oct 2012 21:31:00 +0000 (14:31 -0700)]
2012-10-03  Steve Ellcey  <sellcey@mips.com>

* sysdeps/mips/ieee754.h: Move to...
* sysdeps/mips/ieee754/ieee754.h: Here.
* sysdeps/mips/mips32/Implies: Add mips/ieee754.
* sysdeps/mips/mips64/Implies: Ditto.
* sysdeps/mips/mips64/n32/Implies: Ditto.
* sysdeps/mips/mips64/n64/Implies: Ditto.

12 years agosysconf/posix: handle _SC_LEVEL4_CACHE_LINESIZE
Pino Toscano [Wed, 3 Oct 2012 20:57:38 +0000 (22:57 +0200)]
sysconf/posix: handle _SC_LEVEL4_CACHE_LINESIZE

12 years agoRemove sysdeps/unix/bsd/confstr.h file.
Roland McGrath [Wed, 3 Oct 2012 20:43:58 +0000 (13:43 -0700)]
Remove sysdeps/unix/bsd/confstr.h file.

12 years ago* scripts/check-local-headers.sh: Exclude sys/sdt.h and
Alexandre Oliva [Wed, 3 Oct 2012 02:40:52 +0000 (23:40 -0300)]
* scripts/check-local-headers.sh: Exclude sys/sdt.h and
sys/sdt-config.h.

12 years agoUpdate copyright years
H.J. Lu [Tue, 2 Oct 2012 23:50:47 +0000 (16:50 -0700)]
Update copyright years

12 years agoUse ElfW(Off) rather than off_t for offsets within ELF files.
Roland McGrath [Tue, 2 Oct 2012 22:56:15 +0000 (15:56 -0700)]
Use ElfW(Off) rather than off_t for offsets within ELF files.

12 years agonscd: fix compilation flags
Dmitry V. Levin [Thu, 23 Aug 2012 14:29:43 +0000 (14:29 +0000)]
nscd: fix compilation flags

Commit 61653dfb81b776bb72ce4304175b861d77c357a8 added support for
compilers predefining _FORTIFY_SOURCE by adding -U_FORTIFY_SOURCE to
CPPFLAGS for these compilers, but that change doesn't work quite well in
case of nscd: its Makefile sets _FORTIFY_SOURCE using CFLAGS instead of
CPPFLAGS and, thanks to compilation rules defined in Makerules, CPPFLAGS
are passed to compiler after CFLAGS, resulting to a build with
_FORTIFY_SOURCE turned off.

This change implements a more safe method of passing preprocessor and
compiler flags so that no nscd modules could be accidentally forgotten.

12 years agoClarify memory allocation error diagnostics to avoid confusion
Dmitry V. Levin [Sun, 13 Sep 2009 19:45:27 +0000 (19:45 +0000)]
Clarify memory allocation error diagnostics to avoid confusion

12 years agoDefine HAS_FMA with bit_FMA_Usable
H.J. Lu [Tue, 2 Oct 2012 12:05:17 +0000 (05:05 -0700)]
Define HAS_FMA with bit_FMA_Usable

12 years agoSplit my last ChangeLog entry into respective arch-specific files
Siddhesh Poyarekar [Tue, 2 Oct 2012 03:55:42 +0000 (09:25 +0530)]
Split my last ChangeLog entry into respective arch-specific files

12 years agoFix clone flag name in comment to CLONE_CHILD_CLEARTID.
Siddhesh Poyarekar [Tue, 2 Oct 2012 03:22:55 +0000 (08:52 +0530)]
Fix clone flag name in comment to CLONE_CHILD_CLEARTID.

12 years agoGet rid of unused __swblk_t type.
Roland McGrath [Mon, 1 Oct 2012 21:39:29 +0000 (14:39 -0700)]
Get rid of unused __swblk_t type.

12 years ago2012-10-01 Patsy Franklin <pfrankli@redhat.com>
Jeff Law [Mon, 1 Oct 2012 21:32:39 +0000 (15:32 -0600)]
2012-10-01  Patsy Franklin <pfrankli@redhat.com>
            Honza Horak <hhorak@redhat.com>

        * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
        (xdr_mapname): Use YPMAXMAP as maxsize.
        (xdr_peername): Use YPMAXPEER as maxsize.
        (xdr_keydat): Use YPAXRECORD as maxsize.
        (xdr_valdat): Use YPMAXRECORD as maxsize.

12 years agoDefine __have_atfcts global in stub openat implementation.
Roland McGrath [Mon, 1 Oct 2012 20:07:58 +0000 (13:07 -0700)]
Define __have_atfcts global in stub openat implementation.

12 years agoClean up init-first.c files.
Roland McGrath [Mon, 1 Oct 2012 19:55:34 +0000 (12:55 -0700)]
Clean up init-first.c files.

12 years agoFix exception table for i386 pthread_cond_wait
Siddhesh Poyarekar [Mon, 1 Oct 2012 17:50:42 +0000 (23:20 +0530)]
Fix exception table for i386 pthread_cond_wait

[BZ #14477]
Add an additional entry in the exception table to jump to
__condvar_w_cleanup2 instead of __condvar_w_cleanup for PI mutexes
when %ebx contains the address of the futex instead of the condition
variable.

12 years agoFix sign of inexact zero return from fma (bug 14645).
Joseph Myers [Mon, 1 Oct 2012 08:30:06 +0000 (08:30 +0000)]
Fix sign of inexact zero return from fma (bug 14645).

12 years agoFix sign of exact zero return from fma (bug 14638).
Joseph Myers [Sat, 29 Sep 2012 18:31:54 +0000 (18:31 +0000)]
Fix sign of exact zero return from fma (bug 14638).

12 years agoUncorrupt Sparc ULPS file.
David S. Miller [Fri, 28 Sep 2012 23:36:35 +0000 (16:36 -0700)]
Uncorrupt Sparc ULPS file.

* sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.

12 years agoImplement POSIX-generic sleep via nanosleep rather than SIGARLM.
Roland McGrath [Fri, 28 Sep 2012 23:22:51 +0000 (16:22 -0700)]
Implement POSIX-generic sleep via nanosleep rather than SIGARLM.

12 years agoFix the ChangeLog entry
H.J. Lu [Fri, 28 Sep 2012 23:14:32 +0000 (16:14 -0700)]
Fix the ChangeLog entry

12 years agoMove _G_config.h with Linuxism to linux/ directory.
Roland McGrath [Fri, 28 Sep 2012 22:45:07 +0000 (15:45 -0700)]
Move _G_config.h with Linuxism to linux/ directory.

12 years agoFix stub open.c to define __libc_open.
Roland McGrath [Fri, 28 Sep 2012 22:04:26 +0000 (15:04 -0700)]
Fix stub open.c to define __libc_open.

12 years agoAdd a missing $(make-target-directory).
Roland McGrath [Fri, 28 Sep 2012 21:48:17 +0000 (14:48 -0700)]
Add a missing $(make-target-directory).

12 years agoQuiet make warning under --disable-shared.
Roland McGrath [Fri, 28 Sep 2012 21:33:40 +0000 (14:33 -0700)]
Quiet make warning under --disable-shared.

12 years agoConditionalize elf/dl-sysdep.c contents on [SHARED].
Roland McGrath [Fri, 28 Sep 2012 21:29:14 +0000 (14:29 -0700)]
Conditionalize elf/dl-sysdep.c contents on [SHARED].

12 years agoClean up *objdir variables.
Roland McGrath [Fri, 28 Sep 2012 20:58:55 +0000 (13:58 -0700)]
Clean up *objdir variables.

12 years agoAvoid more warnings in nsswitch.c
Roland McGrath [Fri, 28 Sep 2012 20:48:14 +0000 (13:48 -0700)]
Avoid more warnings in nsswitch.c

12 years agoRevert "Add missed ildouble case in yesterday's sparc ULPs update for clog/clog10."
David S. Miller [Fri, 28 Sep 2012 20:19:13 +0000 (13:19 -0700)]
Revert "Add missed ildouble case in yesterday's sparc ULPs update for clog/clog10."

This reverts commit 084b8fabd28ab541efbe5ce7ef6008107a4b86ea.

Sorry something put garbage into the string, will debug this.

12 years agoAvoid unused static function warning in nsswitch.c.
Roland McGrath [Fri, 28 Sep 2012 20:21:08 +0000 (13:21 -0700)]
Avoid unused static function warning in nsswitch.c.

12 years agoAdd missed ildouble case in yesterday's sparc ULPs update for clog/clog10.
David S. Miller [Fri, 28 Sep 2012 20:15:51 +0000 (13:15 -0700)]
Add missed ildouble case in yesterday's sparc ULPs update for clog/clog10.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

12 years agoAdd Niagara-4 optimized memcpy and mempcpy.
David S. Miller [Fri, 28 Sep 2012 20:02:42 +0000 (13:02 -0700)]
Add Niagara-4 optimized memcpy and mempcpy.

* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
file.
* sysdeps/sparc/sparc64/multiarch/Makefile: Add to
sysdep_routines.
* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
and mempcpy when HWCAP_SPARC_CRYPTO is set.

12 years agotst-mknodat: create a FIFO instead of a socket
Pino Toscano [Fri, 28 Sep 2012 19:33:52 +0000 (21:33 +0200)]
tst-mknodat: create a FIFO instead of a socket

A FIFO is the only special file which is guaranteed to be created with mknod/mknodat.

12 years ago2012-09-28 Andreas Schwab <schwab@linux-m68k.org>
Jeff Law [Fri, 28 Sep 2012 18:48:42 +0000 (12:48 -0600)]
2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>

        [BZ #6530]
        * stdio-common/vfprintf.c (process_string_arg): Revert
        2000-07-22 change.

2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>

        * stdio-common/Makefile (tst-sprintf-ENV): Set environment
        for testcase.
        * stdio-common/tst-sprintf.c: Include <locale.h>
        (main): Test sprintf's handling of incomplete multibyte
        characters.

12 years agoRe-order the last ChangeLog entry
H.J. Lu [Fri, 28 Sep 2012 18:38:26 +0000 (11:38 -0700)]
Re-order the last ChangeLog entry

12 years agoRemove mips VERSYMIDX macro definition
H.J. Lu [Fri, 28 Sep 2012 16:42:08 +0000 (09:42 -0700)]
Remove mips VERSYMIDX macro definition

12 years agoRemove arm ADDRIDX macro definition
H.J. Lu [Fri, 28 Sep 2012 16:41:16 +0000 (09:41 -0700)]
Remove arm ADDRIDX macro definition

12 years agoDefine VERSYMIDX/VALIDX/ADDRIDX in ldsodefs.h
H.J. Lu [Fri, 28 Sep 2012 18:30:57 +0000 (11:30 -0700)]
Define VERSYMIDX/VALIDX/ADDRIDX in ldsodefs.h

12 years agoImprove ChangeLog entry for x86_64 strncmp-ssse3.S
H.J. Lu [Fri, 28 Sep 2012 18:25:56 +0000 (11:25 -0700)]
Improve ChangeLog entry for x86_64 strncmp-ssse3.S

12 years agoalpha: Fix all users of SYSCALL_ERROR_HANDLER
Richard Henderson [Fri, 28 Sep 2012 17:51:01 +0000 (10:51 -0700)]
alpha: Fix all users of SYSCALL_ERROR_HANDLER

The fix begun in 64e65bc1 was incomplete.  Fixed by adding
a new SYSCALL_ERROR_FALLTHRU macro.

12 years agoaio_fsync: fix the access mode check
Pino Toscano [Fri, 28 Sep 2012 16:35:43 +0000 (18:35 +0200)]
aio_fsync: fix the access mode check

Make use of O_ACCMODE and O_RDONLY instead of assuming details of the O_* flags.

12 years ago [BZ #11438]
Jeff Law [Fri, 28 Sep 2012 16:15:05 +0000 (10:15 -0600)]
   [BZ #11438]
        * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918
        * addresses
        to global scope.
        * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
        addresses are in the same scope as 192.0.2/24.
        * posix/gai.conf: Document new scope table defaults.

12 years agoFix a typo in ChangeLog
H.J. Lu [Fri, 28 Sep 2012 14:58:02 +0000 (07:58 -0700)]
Fix a typo in ChangeLog

12 years agoDon't flush write buffer for ftell
Siddhesh Poyarekar [Fri, 28 Sep 2012 13:07:23 +0000 (18:37 +0530)]
Don't flush write buffer for ftell

[BZ #5298]
Use write pointer state along with the file offset and/or the read
pointers to get the current file position.

12 years agoAdjust wide data buffer pointers during fseek and ftell
Siddhesh Poyarekar [Fri, 28 Sep 2012 12:50:40 +0000 (18:20 +0530)]
Adjust wide data buffer pointers during fseek and ftell

[BZ #14543]
Set the internal buffer state correctly whenever the external buffer
state is modified by fseek by either computing the current
_IO_read_ptr/end for the internal buffer based on the new _IO_read_ptr
in the external buffer or converting the content read into the
external buffer, up to the extent of the requested fseek offset.

12 years agoUpdate sparc ULPS for recent clog/clog10 activity.
David S. Miller [Fri, 28 Sep 2012 05:27:32 +0000 (22:27 -0700)]
Update sparc ULPS for recent clog/clog10 activity.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

12 years agoFix sparc64 crashes with LD_BIND_NOW and --enable-bind-now.
David S. Miller [Fri, 28 Sep 2012 04:33:54 +0000 (21:33 -0700)]
Fix sparc64 crashes with LD_BIND_NOW and --enable-bind-now.

[BZ #14376]
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
pass reloc->r_addend in as the 'high' argument to
sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.

12 years agoInclude <pthread.h> where needed.
Pino Toscano [Thu, 27 Sep 2012 23:08:17 +0000 (01:08 +0200)]
Include <pthread.h> where needed.

12 years agoRemove sysdeps/ieee754/ldbl-128/bits/huge_vall.h and let builds use
Steve Ellcey [Thu, 27 Sep 2012 21:07:15 +0000 (14:07 -0700)]
Remove sysdeps/ieee754/ldbl-128/bits/huge_vall.h and let builds use
bits/huge_vall.h instead.  There is no longer any need for the special
huge_vall.h file.

12 years agoRemove sysdeps/ieee754/ldbl-128/bits/huge_vall.h and let builds
Steve Ellcey [Thu, 27 Sep 2012 21:06:11 +0000 (14:06 -0700)]
Remove sysdeps/ieee754/ldbl-128/bits/huge_vall.h and let builds
use bits/huge_vall.h instead.  There is no longer any need for
the special huge_vall.h file.

12 years agoDon't define x86-64 __strncmp_ssse3 in libc.a
H.J. Lu [Thu, 27 Sep 2012 14:43:03 +0000 (07:43 -0700)]
Don't define x86-64 __strncmp_ssse3 in libc.a

12 years agoFix up definitions for older compilers.
Marek Polacek [Wed, 26 Sep 2012 10:58:36 +0000 (12:58 +0200)]
Fix up definitions for older compilers.

12 years agoUpdate x86-64 ULPs
Markus Trippelsdorf [Wed, 26 Sep 2012 10:46:51 +0000 (12:46 +0200)]
Update x86-64 ULPs

12 years agoAdd __ppc_get_timebase_freq to powerpc-nofpu ABI baseline.
Joseph Myers [Wed, 26 Sep 2012 00:30:54 +0000 (00:30 +0000)]
Add __ppc_get_timebase_freq to powerpc-nofpu ABI baseline.

12 years agoDeclare targets with .PHONY in Makefile.in.
Roland McGrath [Tue, 25 Sep 2012 23:21:15 +0000 (16:21 -0700)]
Declare targets with .PHONY in Makefile.in.

12 years agoAdd __ppc_get_timebase_freq to ppc.h.
Tulio Magno Quites Machado Filho [Tue, 25 Sep 2012 19:48:28 +0000 (14:48 -0500)]
Add __ppc_get_timebase_freq to ppc.h.

12 years agoFix bugs in powerpc pthread_once.
Alan Modra [Tue, 25 Sep 2012 21:30:06 +0000 (16:30 -0500)]
Fix bugs in powerpc pthread_once.

Ref gcc.gnu.org/bugzilla/show_bug.cgi?id=52839#c10

Release barriers are needed to ensure that any memory written by
init_routine is seen by other threads before *once_control changes.
In the case of clear_once_control we need to flush any partially
written state.

12 years agoFix order of bug list in NEWS and remove duplicate entry.
Joseph Myers [Tue, 25 Sep 2012 19:49:50 +0000 (19:49 +0000)]
Fix order of bug list in NEWS and remove duplicate entry.

12 years agoFix inaccuracy of clog, clog10 near |z| = 1 (bug 13629).
Joseph Myers [Tue, 25 Sep 2012 19:43:49 +0000 (19:43 +0000)]
Fix inaccuracy of clog, clog10 near |z| = 1 (bug 13629).

12 years agoAdd bug 14621 to NEWS.
Joseph Myers [Tue, 25 Sep 2012 19:41:26 +0000 (19:41 +0000)]
Add bug 14621 to NEWS.

12 years agoUse size_t instead of int for internal variables in glob (bug 14621).
Joseph Myers [Tue, 25 Sep 2012 19:38:15 +0000 (19:38 +0000)]
Use size_t instead of int for internal variables in glob (bug 14621).

12 years agoAdd optimized sincosf for SSE2 for x86 and x86-64
Liubov Dmitrieva [Tue, 25 Sep 2012 18:44:46 +0000 (20:44 +0200)]
Add optimized sincosf for SSE2 for x86 and x86-64

12 years agoFix wrong ussage of sincos for subnormal arguments
Liubov Dmitrieva [Tue, 25 Sep 2012 18:41:17 +0000 (20:41 +0200)]
Fix wrong ussage of sincos for subnormal arguments