platform/upstream/linaro-glibc.git
12 years agoSet MALLOC_ALIGNMENT to at least __alignof__ (long double) for new ABIs.
Roland McGrath [Mon, 21 May 2012 18:13:10 +0000 (11:13 -0700)]
Set MALLOC_ALIGNMENT to at least __alignof__ (long double) for new ABIs.

12 years agoPowerPC: ULPs update
Adhemerval Zanella [Mon, 21 May 2012 17:24:12 +0000 (14:24 -0300)]
PowerPC: ULPs update

Adjustments for libm ulps added with commit d8b82cad1b525bdcbfff88d218c7c45032e4a3af,
495fd99f3a119e5c0c542ccc6cf9c93b1fb9e892, and 5ba3cc691c856e5c67a7d4cd4713f20a79f7ba81.
I also adjusted some exp10 ulps definition that was higher than needed.

12 years agoFix spelling of Steven Munroe
Andreas Jaeger [Mon, 21 May 2012 12:50:42 +0000 (14:50 +0200)]
Fix spelling of Steven Munroe

12 years agoWe no longer have foo.s files in the tree.
David S. Miller [Mon, 21 May 2012 01:47:38 +0000 (18:47 -0700)]
We no longer have foo.s files in the tree.

* Makerules (sysd-rules): Remove .s from asm.

12 years agoAdd <sys/auxv.h> and getauxval.
Richard Henderson [Sun, 20 May 2012 17:34:00 +0000 (10:34 -0700)]
Add <sys/auxv.h> and getauxval.

12 years agoUpdate powerpc ULPs for ccos, csin, ccosh, csinh tests.
Adhemerval Zanella [Sat, 19 May 2012 15:46:20 +0000 (15:46 +0000)]
Update powerpc ULPs for ccos, csin, ccosh, csinh tests.

12 years agoUpdate sparc ULPs for ccos, csin, ccosh, csinh tests.
David S. Miller [Sat, 19 May 2012 15:36:55 +0000 (15:36 +0000)]
Update sparc ULPs for ccos, csin, ccosh, csinh tests.

12 years agoFix ccos, csin, ccosh, csinh overflows (bug 14123).
Joseph Myers [Sat, 19 May 2012 15:35:29 +0000 (15:35 +0000)]
Fix ccos, csin, ccosh, csinh overflows (bug 14123).

12 years agoAdd 64-bit preadv.c and pwritev.c
H.J. Lu [Sat, 19 May 2012 13:51:12 +0000 (06:51 -0700)]
Add 64-bit preadv.c and pwritev.c

12 years agoAdd a comment to sysdeps/x86_64/x32/_itoa.h
H.J. Lu [Sat, 19 May 2012 13:46:29 +0000 (06:46 -0700)]
Add a comment to sysdeps/x86_64/x32/_itoa.h

12 years agoUse __syscall_slong_t in bits/timex.h
H.J. Lu [Sat, 19 May 2012 00:00:25 +0000 (17:00 -0700)]
Use __syscall_slong_t in bits/timex.h

12 years agoRemove sysdeps/powerpc/soft-fp.
Joseph Myers [Sat, 19 May 2012 10:03:24 +0000 (10:03 +0000)]
Remove sysdeps/powerpc/soft-fp.

12 years agoDelete unused csu/.gitignore
Andreas Jaeger [Sat, 19 May 2012 09:35:20 +0000 (11:35 +0200)]
Delete unused csu/.gitignore

12 years agoFix INSTALL description for modified files in source dir
Andreas Jaeger [Fri, 18 May 2012 18:30:51 +0000 (20:30 +0200)]
Fix INSTALL description for modified files in source dir

12 years agoUse RAX_LP and "or" to operate on return value
H.J. Lu [Fri, 18 May 2012 18:05:56 +0000 (11:05 -0700)]
Use RAX_LP and "or" to operate on return value

12 years ago[PowerPC] Remove -ftree-loop-linear from Makefiles
Tulio Magno Quites Machado Filho [Fri, 18 May 2012 13:50:33 +0000 (08:50 -0500)]
[PowerPC] Remove -ftree-loop-linear from Makefiles

In the past the "-ftree-loop-linear" switch provided a measurable
improvement in performance for certain functions.  At some point it
was assigned as the responsibility of Graphite in GCC.  It has been
found that even with Graphite enabled these flags no longer perform
any appreciable improvement over the baseline.

Graphite now has some open bugs which need to be fixed in order for it
to provide measurable performance improvements but it lacks active
development.  As a result some compiler distributors may disable
Graphite.  If Graphite is disabled then building GLIBC will fail if
the "-ftree-loop-linear" switch is used.

This patch removes the use of "-ftree-loop-linear" as unnecessary.

12 years agoAdd sysdeps/x86_64/x32/_itoa.h
H.J. Lu [Fri, 18 May 2012 14:37:55 +0000 (07:37 -0700)]
Add sysdeps/x86_64/x32/_itoa.h

12 years agoCheck d_ino/d_off before using getdents syscall
H.J. Lu [Fri, 18 May 2012 14:12:47 +0000 (07:12 -0700)]
Check d_ino/d_off before using getdents syscall

12 years agoCheck _ITOA_NEEDED and use _ITOA_WORD_TYPE
H.J. Lu [Fri, 18 May 2012 13:03:04 +0000 (06:03 -0700)]
Check _ITOA_NEEDED and use _ITOA_WORD_TYPE

12 years agoFold copyright years
H.J. Lu [Fri, 18 May 2012 11:16:55 +0000 (04:16 -0700)]
Fold copyright years

12 years agoAdd x32 support to x86_64/bits/sigcontext.h
H.J. Lu [Fri, 18 May 2012 11:10:55 +0000 (04:10 -0700)]
Add x32 support to x86_64/bits/sigcontext.h

12 years agoUse anonymous union in x86_64/sys/user.h
H.J. Lu [Fri, 18 May 2012 11:07:51 +0000 (04:07 -0700)]
Use anonymous union in x86_64/sys/user.h

12 years agoAvoid runtime GOT relocations in ld.so on powerpc
Andreas Schwab [Wed, 16 May 2012 20:40:23 +0000 (22:40 +0200)]
Avoid runtime GOT relocations in ld.so on powerpc

12 years agoFix undefined reference to _dl_prof_resolve in profiled libc
Andreas Schwab [Wed, 16 May 2012 20:05:58 +0000 (22:05 +0200)]
Fix undefined reference to _dl_prof_resolve in profiled libc

12 years agoDo not provide inlines for GCC build-in functions
Andreas Jaeger [Fri, 18 May 2012 07:08:14 +0000 (09:08 +0200)]
Do not provide inlines for GCC build-in functions

12 years agoUse __syscall_ulong_t in pselect.c
H.J. Lu [Fri, 18 May 2012 00:27:13 +0000 (17:27 -0700)]
Use __syscall_ulong_t in pselect.c

12 years agoAdd __fsword_t and use it in bits/statfs.h
H.J. Lu [Fri, 18 May 2012 00:20:52 +0000 (17:20 -0700)]
Add __fsword_t and use it in bits/statfs.h

12 years agoBump sha512c-test.c timeout for the sake of 32-bit sparc.
David S. Miller [Thu, 17 May 2012 20:32:52 +0000 (13:32 -0700)]
Bump sha512c-test.c timeout for the sake of 32-bit sparc.

* crypt/sha512c-test.c (TIMEOUT): Increase to 32.

12 years agoFix warning
Andreas Jaeger [Thu, 17 May 2012 20:00:57 +0000 (22:00 +0200)]
Fix warning

Fixes:
tst-relsort1.c:6:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]

12 years agoCast to unsigned long
H.J. Lu [Thu, 17 May 2012 19:44:52 +0000 (12:44 -0700)]
Cast to unsigned long

12 years agoFix warnings on Linux/i686
Andreas Jaeger [Thu, 17 May 2012 18:17:53 +0000 (20:17 +0200)]
Fix warnings on Linux/i686

Fixes:
../sysdeps/i386/dl-machine.h:336:30: warning: unused variable ‘refsym’ [-Wunused-variable]
rtld.c:1435:3: warning: implicit declaration of function ‘_dl_discover_osversion’ [-Wimplicit-function-declaration]

12 years agoBump up stdio bug22 timeout from 30 seconds to 60 seconds
Chris Metcalf [Thu, 17 May 2012 16:59:08 +0000 (12:59 -0400)]
Bump up stdio bug22 timeout from 30 seconds to 60 seconds

The older Tilera platform (tilepro) needs just a hair over 30 seconds
to run this on one core.

12 years agoAdd tst-mallocalign1
H.J. Lu [Thu, 17 May 2012 16:55:25 +0000 (09:55 -0700)]
Add tst-mallocalign1

12 years agoBZ#14059: Fix AVX and FMA4 detection.
Carlos O'Donell [Thu, 17 May 2012 03:14:24 +0000 (20:14 -0700)]
BZ#14059: Fix AVX and FMA4 detection.

Fix AVX and FMA4 detection by following the guidelines
set out by Intel and AMD for detecting these features.

12 years agomath: support platforms with limited FP rounding or exception support
Chris Metcalf [Thu, 17 May 2012 12:49:19 +0000 (08:49 -0400)]
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.

12 years agoAvoid compiler warnings in qsort/bsearch examples
Andreas Jaeger [Thu, 17 May 2012 09:05:52 +0000 (11:05 +0200)]
Avoid compiler warnings in qsort/bsearch examples

12 years agoFold copyright years
H.J. Lu [Thu, 17 May 2012 03:02:44 +0000 (20:02 -0700)]
Fold copyright years

12 years agoFor [BZ #208], accumulate malloc stats over all arenas.
Paul Pluzhnikov [Wed, 16 May 2012 23:46:10 +0000 (16:46 -0700)]
For [BZ #208], accumulate malloc stats over all arenas.

12 years agoBZ#10375: Configure magic to use -fno-stack-protector if needed.
Roland McGrath [Mon, 14 May 2012 23:08:25 +0000 (16:08 -0700)]
BZ#10375: Configure magic to use -fno-stack-protector if needed.

12 years agoBZ#10375: Configure magic to use -U_FORTIFY_SOURCE if needed.
Roland McGrath [Mon, 14 May 2012 22:42:52 +0000 (15:42 -0700)]
BZ#10375: Configure magic to use -U_FORTIFY_SOURCE if needed.

12 years agoRemove redundant ChangeLog header lines.
Roland McGrath [Wed, 16 May 2012 22:32:06 +0000 (15:32 -0700)]
Remove redundant ChangeLog header lines.

12 years agoUse __syscall_slong_t in bits/mqueue.h
H.J. Lu [Wed, 16 May 2012 21:39:45 +0000 (14:39 -0700)]
Use __syscall_slong_t in bits/mqueue.h

12 years agoAdd x32 suppport to x86_64/bits/stat.h
H.J. Lu [Wed, 16 May 2012 20:23:20 +0000 (13:23 -0700)]
Add x32 suppport to x86_64/bits/stat.h

12 years agoAdd x86-64 bits/typesizes.h
H.J. Lu [Wed, 16 May 2012 20:16:18 +0000 (13:16 -0700)]
Add x86-64 bits/typesizes.h

12 years agoAdd x86_64/bits/ipctypes.h
H.J. Lu [Wed, 16 May 2012 20:02:28 +0000 (13:02 -0700)]
Add x86_64/bits/ipctypes.h

12 years agoUse __syscall_ulong_t in bits/ipc.h
H.J. Lu [Wed, 16 May 2012 20:01:32 +0000 (13:01 -0700)]
Use __syscall_ulong_t in bits/ipc.h

12 years agoAdd x32 support to sys/ucontext.h
H.J. Lu [Wed, 16 May 2012 19:52:45 +0000 (12:52 -0700)]
Add x32 support to sys/ucontext.h

12 years agoAdd x32 support to <sys/user.h>
H.J. Lu [Wed, 16 May 2012 19:17:31 +0000 (12:17 -0700)]
Add x32 support to <sys/user.h>

12 years agoAdd x32 gmp-mparam.h
H.J. Lu [Wed, 16 May 2012 18:53:49 +0000 (11:53 -0700)]
Add x32 gmp-mparam.h

12 years agoAdd x32 ffs
H.J. Lu [Wed, 16 May 2012 18:52:35 +0000 (11:52 -0700)]
Add x32 ffs

12 years agoUpdate Texinfo version requirement.
Joseph Myers [Wed, 16 May 2012 18:50:39 +0000 (18:50 +0000)]
Update Texinfo version requirement.

12 years agoUpdate __STDC_ISO_10646__.
Joseph Myers [Wed, 16 May 2012 18:49:01 +0000 (18:49 +0000)]
Update __STDC_ISO_10646__.

12 years agoAdd x32 support to x86_64/bits/shm.h
H.J. Lu [Wed, 16 May 2012 18:48:54 +0000 (11:48 -0700)]
Add x32 support to x86_64/bits/shm.h

12 years agoAdd x32 support to x86_64/bits/sem.h
H.J. Lu [Wed, 16 May 2012 18:47:22 +0000 (11:47 -0700)]
Add x32 support to x86_64/bits/sem.h

12 years agoAdd x32 support to x86_64/bits/msq.h
H.J. Lu [Wed, 16 May 2012 18:45:19 +0000 (11:45 -0700)]
Add x32 support to x86_64/bits/msq.h

12 years agoCheck __x86_64__ in x86_64/bits/a.out.h
H.J. Lu [Wed, 16 May 2012 17:35:34 +0000 (10:35 -0700)]
Check __x86_64__ in x86_64/bits/a.out.h

12 years agoAdd x86-64 <bits/siginfo.h>
H.J. Lu [Wed, 16 May 2012 17:31:10 +0000 (10:31 -0700)]
Add x86-64 <bits/siginfo.h>

12 years agoAdd dummy files for x32
H.J. Lu [Wed, 16 May 2012 17:24:02 +0000 (10:24 -0700)]
Add dummy files for x32

12 years agoReplace long int with __syscall_slong_t in sys/msg.h
H.J. Lu [Wed, 16 May 2012 17:22:18 +0000 (10:22 -0700)]
Replace long int with __syscall_slong_t in sys/msg.h

12 years agoCheck __x86_64__ in x86-64 sys/reg.h
H.J. Lu [Wed, 16 May 2012 17:20:45 +0000 (10:20 -0700)]
Check __x86_64__ in x86-64 sys/reg.h

12 years agoAdd x32 support to sys/procfs.h
H.J. Lu [Wed, 16 May 2012 17:20:06 +0000 (10:20 -0700)]
Add x32 support to sys/procfs.h

12 years agoUse ULL suffix on DR_CONTROL_RESERVED
H.J. Lu [Wed, 16 May 2012 17:19:17 +0000 (10:19 -0700)]
Use ULL suffix on DR_CONTROL_RESERVED

12 years agoAdd uintptr_t cast to GET_PC/GET_FRAME/GET_STACK
H.J. Lu [Wed, 16 May 2012 17:18:30 +0000 (10:18 -0700)]
Add uintptr_t cast to GET_PC/GET_FRAME/GET_STACK

12 years agoUse 64bit filesystem functions for x32
H.J. Lu [Wed, 16 May 2012 17:01:44 +0000 (10:01 -0700)]
Use 64bit filesystem functions for x32

12 years agoTrack dependencies for .oS-only objects
Andreas Schwab [Sat, 5 May 2012 07:56:47 +0000 (09:56 +0200)]
Track dependencies for .oS-only objects

12 years agoFix dependency tracking on cross-rpcgen-objs
Andreas Schwab [Sat, 12 May 2012 06:40:20 +0000 (08:40 +0200)]
Fix dependency tracking on cross-rpcgen-objs

12 years agoRemove __snseconds_t
H.J. Lu [Wed, 16 May 2012 01:05:26 +0000 (18:05 -0700)]
Remove __snseconds_t

12 years agoAdd __SYSCALL_{S,U}LONG_TYPE to hurd typesizes.h
H.J. Lu [Wed, 16 May 2012 00:54:06 +0000 (17:54 -0700)]
Add __SYSCALL_{S,U}LONG_TYPE to hurd typesizes.h

12 years agoAdd __syscall_slong_t and __syscall_ulong_t
H.J. Lu [Wed, 16 May 2012 00:41:38 +0000 (17:41 -0700)]
Add __syscall_slong_t and __syscall_ulong_t

12 years agoUse R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE
H.J. Lu [Tue, 15 May 2012 23:43:11 +0000 (16:43 -0700)]
Use R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE

12 years agoRemove fallback definitions of __NR_set_robust_list.
Joseph Myers [Tue, 15 May 2012 23:36:35 +0000 (23:36 +0000)]
Remove fallback definitions of __NR_set_robust_list.

12 years agoSplit up stackguard-macros.h into sysdeps directories.
Joseph Myers [Tue, 15 May 2012 23:34:30 +0000 (23:34 +0000)]
Split up stackguard-macros.h into sysdeps directories.

12 years agoAdd x86_64 Implies-after files
H.J. Lu [Tue, 15 May 2012 21:37:59 +0000 (14:37 -0700)]
Add x86_64 Implies-after files

12 years agoAvoid plain "aligned" attributes in installed headers.
Joseph Myers [Tue, 15 May 2012 21:26:09 +0000 (21:26 +0000)]
Avoid plain "aligned" attributes in installed headers.

12 years agoUse R*_LP to load pointer and operate on stack
H.J. Lu [Tue, 15 May 2012 21:25:31 +0000 (14:25 -0700)]
Use R*_LP to load pointer and operate on stack

12 years agoUse R*_LP to call _dl_profile_fixup and frame size
H.J. Lu [Tue, 15 May 2012 21:24:00 +0000 (14:24 -0700)]
Use R*_LP to call _dl_profile_fixup and frame size

12 years agoUse LP_OP(cmp) and RCX_LP on dep_mutex pointer
H.J. Lu [Tue, 15 May 2012 20:39:25 +0000 (13:39 -0700)]
Use LP_OP(cmp) and RCX_LP on dep_mutex pointer

12 years agoAdd x32 init-first.c
H.J. Lu [Tue, 15 May 2012 19:51:18 +0000 (12:51 -0700)]
Add x32 init-first.c

12 years agoAdd sysdeps/x86_64/x32/sysdep.h
H.J. Lu [Tue, 15 May 2012 19:49:42 +0000 (12:49 -0700)]
Add sysdeps/x86_64/x32/sysdep.h

12 years agoUse LP_OP(op), LP_SIZE and ASM_ADDR in sem_wait.S
H.J. Lu [Tue, 15 May 2012 19:48:26 +0000 (12:48 -0700)]
Use LP_OP(op), LP_SIZE and ASM_ADDR in sem_wait.S

12 years agose LP_OP(op), LP_SIZE and ASM_ADDR in sem_timedwait.S
H.J. Lu [Tue, 15 May 2012 19:47:31 +0000 (12:47 -0700)]
se LP_OP(op), LP_SIZE and ASM_ADDR in sem_timedwait.S

12 years agoUse R*_LP on SP and PC in __longjmp.S and setjmp.S
H.J. Lu [Tue, 15 May 2012 19:46:04 +0000 (12:46 -0700)]
Use R*_LP on SP and PC in __longjmp.S and setjmp.S

12 years agoLog2 and log10 for wordsize-64.
Adhemerval Zanella [Mon, 14 May 2012 19:49:42 +0000 (16:49 -0300)]
Log2 and log10 for wordsize-64.

This patch also fixes indentation on default dbl-64 code.

12 years agoRemove duplicate #include <not-cancel.h> in Linux getsysstats.c
Chris Metcalf [Tue, 15 May 2012 19:02:58 +0000 (15:02 -0400)]
Remove duplicate #include <not-cancel.h> in Linux getsysstats.c

12 years agoFix formatting in last change.
Roland McGrath [Tue, 15 May 2012 18:45:42 +0000 (11:45 -0700)]
Fix formatting in last change.

12 years agoAvoid race in nscd
Andreas Jaeger [Tue, 15 May 2012 18:35:53 +0000 (20:35 +0200)]
Avoid race in nscd

2012-05-15  Jeff Law  <law@redhat.com>
            Andreas Jaeger  <aj@suse.de>

        [BZ #13594]
        * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
        out from...
        * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
        * nscd/nscd-client.h: Add __nscd_acquire_maplock.
        * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
        code changing __hst_map_handle.map.

12 years agoconfigure change to handle Implies-{before,after} files
Roland McGrath [Wed, 9 May 2012 22:45:53 +0000 (15:45 -0700)]
configure change to handle Implies-{before,after} files

12 years agoUse LP_OP(cmp) on NWAITERS
H.J. Lu [Tue, 15 May 2012 17:25:51 +0000 (10:25 -0700)]
Use LP_OP(cmp) on NWAITERS

12 years agoUse LP_SIZE and ASM_ADDR in pthread_once.S
H.J. Lu [Tue, 15 May 2012 17:24:19 +0000 (10:24 -0700)]
Use LP_SIZE and ASM_ADDR in pthread_once.S

12 years agoUse LP_OP(cmp), R*_LP, LP_SIZE and ASM_ADDR
H.J. Lu [Tue, 15 May 2012 17:23:22 +0000 (10:23 -0700)]
Use LP_OP(cmp), R*_LP, LP_SIZE and ASM_ADDR

12 years agoUse LP_OP(cmp), R*_LP, LP_SIZE and ASM_ADDR
H.J. Lu [Tue, 15 May 2012 17:21:32 +0000 (10:21 -0700)]
Use LP_OP(cmp), R*_LP, LP_SIZE and ASM_ADDR

12 years agoUse LP_OP(cmp) and RCX_LP on dep_mutex pointer
H.J. Lu [Tue, 15 May 2012 17:20:15 +0000 (10:20 -0700)]
Use LP_OP(cmp) and RCX_LP on dep_mutex pointer

12 years agoUse LP_OP(mov) and RDI_LP on pointer
H.J. Lu [Tue, 15 May 2012 17:19:11 +0000 (10:19 -0700)]
Use LP_OP(mov) and RDI_LP on pointer

12 years agoReplace 8-byte data alignment with LP_SIZE alignment
H.J. Lu [Tue, 15 May 2012 17:17:30 +0000 (10:17 -0700)]
Replace 8-byte data alignment with LP_SIZE alignment

12 years agoLoad pointer to TID into R10_LP
H.J. Lu [Tue, 15 May 2012 17:15:35 +0000 (10:15 -0700)]
Load pointer to TID into R10_LP

12 years agoAdd x32 dl-cache.h
H.J. Lu [Tue, 15 May 2012 17:14:34 +0000 (10:14 -0700)]
Add x32 dl-cache.h

12 years agoAdd x32 getcpu and sched_getcpu
H.J. Lu [Tue, 15 May 2012 17:13:55 +0000 (10:13 -0700)]
Add x32 getcpu and sched_getcpu

12 years agoUse LP_SIZE and load timeout pointer into RDX_LP
H.J. Lu [Tue, 15 May 2012 17:03:56 +0000 (10:03 -0700)]
Use LP_SIZE and load timeout pointer into RDX_LP

12 years agoUse RSP_LP to operate on stack in stackinfo.h
H.J. Lu [Tue, 15 May 2012 17:00:56 +0000 (10:00 -0700)]
Use RSP_LP to operate on stack in stackinfo.h

12 years agoLoad pointers into RAX_LP in strcmp-sse42.S
H.J. Lu [Tue, 15 May 2012 16:59:31 +0000 (09:59 -0700)]
Load pointers into RAX_LP in strcmp-sse42.S