platform/upstream/glibc.git
12 years agotile: Define MADV_DONTDUMP and MADV_DODUMP
Chris Metcalf [Wed, 23 May 2012 12:20:12 +0000 (08:20 -0400)]
tile: Define MADV_DONTDUMP and MADV_DODUMP

12 years agoDefine MADV_DONTDUMP and MADV_DODUMP for MIPS.
Joseph Myers [Wed, 23 May 2012 10:23:26 +0000 (10:23 +0000)]
Define MADV_DONTDUMP and MADV_DODUMP for MIPS.

12 years agoDefine MADV_DONTDUMP and MADV_DODUMP for ARM.
Joseph Myers [Wed, 23 May 2012 10:22:42 +0000 (10:22 +0000)]
Define MADV_DONTDUMP and MADV_DODUMP for ARM.

12 years agotile: Update ULPs for ccos, csin, ccosh, csinh tests
Chris Metcalf [Tue, 22 May 2012 13:54:21 +0000 (09:54 -0400)]
tile: Update ULPs for ccos, csin, ccosh, csinh tests

12 years agotile: Rename __WORDSIZE_COMPAT32 to __WORDSIZE_TIME64_COMPAT32
Chris Metcalf [Tue, 22 May 2012 13:20:35 +0000 (09:20 -0400)]
tile: Rename __WORDSIZE_COMPAT32 to __WORDSIZE_TIME64_COMPAT32

12 years agotile: Update ABI baselines for getauxval
Chris Metcalf [Tue, 22 May 2012 13:19:53 +0000 (09:19 -0400)]
tile: Update ABI baselines for getauxval

12 years agoRename __WORDSIZE_COMPAT32 to __WORDSIZE_TIME64_COMPAT32 for MIPS.
Joseph Myers [Mon, 21 May 2012 21:23:10 +0000 (21:23 +0000)]
Rename __WORDSIZE_COMPAT32 to __WORDSIZE_TIME64_COMPAT32 for MIPS.

12 years agom68k: properly implement logbl for Motorola extended float
Andreas Schwab [Mon, 21 May 2012 19:18:45 +0000 (21:18 +0200)]
m68k: properly implement logbl for Motorola extended float

12 years agom68k: update libc.abilist
Andreas Schwab [Mon, 21 May 2012 15:37:13 +0000 (17:37 +0200)]
m68k: update libc.abilist

12 years agoRemove __fe_nomask_env from powerpc-nofpu ABI.
Joseph Myers [Mon, 21 May 2012 18:56:03 +0000 (18:56 +0000)]
Remove __fe_nomask_env from powerpc-nofpu ABI.

12 years agoUpdate ARM hwcap code.
Joseph Myers [Mon, 21 May 2012 10:45:52 +0000 (10:45 +0000)]
Update ARM hwcap code.

12 years agoUpdate powerpc-nofpu ABI baselines for getauxval.
Joseph Myers [Mon, 21 May 2012 09:52:18 +0000 (09:52 +0000)]
Update powerpc-nofpu ABI baselines for getauxval.

12 years agoUpdate MIPS ABI baselines for getauxval.
Joseph Myers [Mon, 21 May 2012 09:51:58 +0000 (09:51 +0000)]
Update MIPS ABI baselines for getauxval.

12 years agoUpdate ARM ABI baseline for getauxval.
Joseph Myers [Mon, 21 May 2012 09:51:16 +0000 (09:51 +0000)]
Update ARM ABI baseline for getauxval.

12 years agoalpha: Rename *.s to *.S
Richard Henderson [Sun, 20 May 2012 17:45:51 +0000 (10:45 -0700)]
alpha: Rename *.s to *.S

12 years agoRemove more obsolete ARM code.
Joseph Myers [Sat, 19 May 2012 21:24:17 +0000 (21:24 +0000)]
Remove more obsolete ARM code.

12 years agoClean up MIPS ftruncate64/truncate64.
Joseph Myers [Sat, 19 May 2012 19:10:13 +0000 (19:10 +0000)]
Clean up MIPS ftruncate64/truncate64.

12 years agoRemove compatibility code for old ARM kernels.
Joseph Myers [Sat, 19 May 2012 17:56:01 +0000 (17:56 +0000)]
Remove compatibility code for old ARM kernels.

12 years agohppa: Rename all *.s to *.S.
Carlos O'Donell [Sat, 19 May 2012 16:53:28 +0000 (18:53 +0200)]
hppa: Rename all *.s to *.S.

Top-level is removing the rule for *.s, therefore
we change all of our files to *.S. There was no
reason not to use *.S.

12 years agohppa: Use new libgcc_so in shlib-versions.
Carlos O'Donell [Thu, 17 May 2012 03:50:08 +0000 (05:50 +0200)]
hppa: Use new libgcc_so in shlib-versions.

The version of libcc.so used is now controlled via
shlib-versions.

12 years agolinux-generic: add __FSWORD_T_TYPE to <bits/typesizes.h>
Chris Metcalf [Fri, 18 May 2012 17:15:53 +0000 (13:15 -0400)]
linux-generic: add __FSWORD_T_TYPE to <bits/typesizes.h>

12 years agoMerge branch 'master' of ssh://sourceware.org/git/glibc-ports
Richard Henderson [Fri, 18 May 2012 18:48:15 +0000 (11:48 -0700)]
Merge branch 'master' of ssh://sourceware.org/git/glibc-ports

12 years agoalpha: Add localplt data file
Richard Henderson [Fri, 18 May 2012 18:47:36 +0000 (11:47 -0700)]
alpha: Add localplt data file

12 years agoalpha: Add __SYSCALL_SLONG_TYPE, __SYSCALL_ULONG_TYPE, __FSWORD_T_TYPE
Richard Henderson [Fri, 18 May 2012 18:35:03 +0000 (11:35 -0700)]
alpha: Add __SYSCALL_SLONG_TYPE, __SYSCALL_ULONG_TYPE, __FSWORD_T_TYPE

12 years agotile: add proper versioning for fegetenv()
Chris Metcalf [Thu, 17 May 2012 19:18:45 +0000 (15:18 -0400)]
tile: add proper versioning for fegetenv()

12 years agotile: support tilegx32 in stackguard-macros.h
Chris Metcalf [Thu, 17 May 2012 18:51:36 +0000 (18:51 +0000)]
tile: support tilegx32 in stackguard-macros.h

12 years agotile: fork tilepro and tilegx copies of c++-types-tile-linux-gnu.data
Chris Metcalf [Thu, 17 May 2012 18:14:07 +0000 (14:14 -0400)]
tile: fork tilepro and tilegx copies of c++-types-tile-linux-gnu.data

12 years agotile: update libm-test-ulps for improved fma() and exp10()
Chris Metcalf [Thu, 17 May 2012 15:31:07 +0000 (11:31 -0400)]
tile: update libm-test-ulps for improved fma() and exp10()

12 years agotile: use ieee754/dbl-64 version of fma() and fmaf()
Chris Metcalf [Thu, 17 May 2012 15:27:36 +0000 (11:27 -0400)]
tile: use ieee754/dbl-64 version of fma() and fmaf()

It turns out that even if you stub out the rounding and exception
support and use the ieee754 version, it's still much better than
the generic version that just uses normal multiply and add.
The resulting functions have only 1 ULP of error according to the tests.

12 years agoChangelog.tile: fix up some formatting issues
Chris Metcalf [Thu, 17 May 2012 13:04:23 +0000 (09:04 -0400)]
Changelog.tile: fix up some formatting issues

Change leading spaces to tab, and merge runs of ChangeLog messages
that were from cmetcalf@tilera.com on the same date.

12 years agotilegx32: fix various bugs in setcontext/getcontext/swapcontext
Chris Metcalf [Wed, 16 May 2012 17:52:36 +0000 (13:52 -0400)]
tilegx32: fix various bugs in setcontext/getcontext/swapcontext

12 years agotile: provide a tile-specific sotruss-lib.c override
Chris Metcalf [Wed, 16 May 2012 13:39:28 +0000 (09:39 -0400)]
tile: provide a tile-specific sotruss-lib.c override

12 years agotile: avoid compiler warning in feraiseexcept() math_private override
Chris Metcalf [Wed, 16 May 2012 13:38:48 +0000 (09:38 -0400)]
tile: avoid compiler warning in feraiseexcept() math_private override

12 years agotile: add libm-test-ulps
Chris Metcalf [Wed, 16 May 2012 13:38:13 +0000 (09:38 -0400)]
tile: add libm-test-ulps

12 years agotile: provide __FE_UNDEFINED in <bits/fenv.h>
Chris Metcalf [Wed, 16 May 2012 13:37:21 +0000 (09:37 -0400)]
tile: provide __FE_UNDEFINED in <bits/fenv.h>

12 years agoAdd powerpc-nofpu ABI baselines.
Joseph Myers [Wed, 16 May 2012 21:19:06 +0000 (21:19 +0000)]
Add powerpc-nofpu ABI baselines.

12 years agolinux-generic: add header guard for <not-cancel.h>
Chris Metcalf [Wed, 16 May 2012 13:34:38 +0000 (09:34 -0400)]
linux-generic: add header guard for <not-cancel.h>

In general we just try to include <not-cancel.h> once, thus avoiding
any issues with multiple inclusion.

However, the getaddrinfo sources are somewhat tangled, and .c files
include each other to get the final result.  Each .c file currently has
its own include of <not-cancel.h>.  While you could properly re-factor
this for the case of gai.c, the posix/tst-rfc3484.c tests directly include
one of the sub-files (sysdeps/posix/getaddrinfo.c), and it starts to
feel fragile.

12 years agotile: add proper const qualifier for pltexit function pointer field
Chris Metcalf [Wed, 16 May 2012 13:32:04 +0000 (09:32 -0400)]
tile: add proper const qualifier for pltexit function pointer field

12 years agolinux-generic: fix typesizes.h to match recent core changes
Chris Metcalf [Wed, 16 May 2012 13:28:31 +0000 (09:28 -0400)]
linux-generic: fix typesizes.h to match recent core changes

Remove __SNSECONDS_T_TYPE; add __SYSCALL_{S,U}LONG_TYPE.

12 years agotile: delete now unused file
Chris Metcalf [Wed, 16 May 2012 13:24:31 +0000 (09:24 -0400)]
tile: delete now unused file

The latest main tree has split out stackguard-macros.h so we no
longer have to override it with a stub.

12 years agoDeclare MIPS stat nanoseconds fields similarly to other architectures.
Joseph Myers [Wed, 16 May 2012 10:53:31 +0000 (10:53 +0000)]
Declare MIPS stat nanoseconds fields similarly to other architectures.

12 years agoAssume accept4 on ARM for kernels 2.6.36 and later.
Joseph Myers [Wed, 16 May 2012 10:38:40 +0000 (10:38 +0000)]
Assume accept4 on ARM for kernels 2.6.36 and later.

12 years agoia64: delete now unused file
Mike Frysinger [Wed, 16 May 2012 03:55:46 +0000 (23:55 -0400)]
ia64: delete now unused file

The latest main tree has split out stackguard-macros.h so we no
longer have to override it with a stub.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: use __aligned__ inside of attributes
Mike Frysinger [Tue, 15 May 2012 00:39:30 +0000 (20:39 -0400)]
ia64: use __aligned__ inside of attributes

Installed headers should always use the forms of attributes with __
prefixes and suffixes, so __attribute__ ((__aligned__ (8))) instead of
the plain "aligned" form, to avoid taking identifiers from the user's
namespace.

URL: http://sourceware.org/bugzilla/show_bug.cgi?id=14109
Reported-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoMerge branch 'master' of git://sourceware.org/git/glibc-ports
Chris Metcalf [Mon, 14 May 2012 20:13:02 +0000 (16:13 -0400)]
Merge branch 'master' of git://sourceware.org/git/glibc-ports

12 years agolinux-generic: use "__aligned__", not "aligned", in public headers
Chris Metcalf [Mon, 14 May 2012 20:01:44 +0000 (16:01 -0400)]
linux-generic: use "__aligned__", not "aligned", in public headers

12 years agotile: add abilist files
Chris Metcalf [Mon, 14 May 2012 19:33:00 +0000 (15:33 -0400)]
tile: add abilist files

12 years agotile: align stack for tilegx32
Chris Metcalf [Mon, 14 May 2012 19:03:46 +0000 (15:03 -0400)]
tile: align stack for tilegx32

Previously we weren't re-aligning the stack pointer during the
call to _dl_init(), so for tilegx32 and an odd value in _dl_skip_args
and kernel unaligned access fixups disabled, we would die with SIGBUS.
We now handle this case properly by aligning before calling _dl_init().

12 years agotile: add include <features.h> to <sys/dataplane.h>
Chris Metcalf [Fri, 11 May 2012 22:10:00 +0000 (18:10 -0400)]
tile: add include <features.h> to <sys/dataplane.h>

We were using __BEGIN_DECLS without <features.h> and it just happened
to mostly work, but of course we should include it here.

12 years agotile: fix bug in CFI definitions for clone.S
Chris Metcalf [Fri, 11 May 2012 22:08:03 +0000 (18:08 -0400)]
tile: fix bug in CFI definitions for clone.S

We were missing a critical cfi_def_cfa_offset call in .Lthread_start
which caused backtracing to get badly confused for threads.

12 years agotile: fix broken TLS_GD macros
Chris Metcalf [Fri, 11 May 2012 22:06:42 +0000 (18:06 -0400)]
tile: fix broken TLS_GD macros

These still corresponded to an older version of the TLS code in
the compiler.  Now they match the code in gcc 4.7.

12 years agotilegx: small performance fix for string routines
Chris Metcalf [Fri, 11 May 2012 22:03:58 +0000 (18:03 -0400)]
tilegx: small performance fix for string routines

We were multiplying a byte by 0x0101010101010101ULL to create a
constant for SIMD ops, but the compiler isn't good at optimizing
this case (the fact that one operand is a byte is lost by the time
it would be possible to do the optimization).  So instead we add
a helper routine that explicitly uses SIMD ops to create the constant.

12 years agotile: allow memcpy(p, p, n) without corrupting memory at "p"
Chris Metcalf [Fri, 11 May 2012 21:59:23 +0000 (17:59 -0400)]
tile: allow memcpy(p, p, n) without corrupting memory at "p"

Although this is not required by the definition of memcpy(),
in practice this sort of thing does happen, and it's easy to make
the code robust by doing nothing in this case.  (Since structure
copy causes the compiler to emit a memcpy, in the case where the
target structure is the same as the destination, we were seeing
corruption.)

12 years agotile: avoid using _LP64
Chris Metcalf [Fri, 11 May 2012 20:53:19 +0000 (16:53 -0400)]
tile: avoid using _LP64

The convention is to use __WORDSIZE everywhere.  I happened to
notice that we weren't doing this in __tls_get_addr.S.

12 years agotile: support stackguard-macros.h header
Chris Metcalf [Fri, 11 May 2012 20:11:04 +0000 (16:11 -0400)]
tile: support stackguard-macros.h header

12 years agolinux-generic: add wordsize-32 version of prlimit64/fanotify syscalls
Chris Metcalf [Fri, 11 May 2012 19:57:05 +0000 (15:57 -0400)]
linux-generic: add wordsize-32 version of prlimit64/fanotify syscalls

12 years agotile: remove stale #define of ELF_MACHINE_PLTREL_OVERLAP
Chris Metcalf [Fri, 11 May 2012 19:42:04 +0000 (15:42 -0400)]
tile: remove stale #define of ELF_MACHINE_PLTREL_OVERLAP

12 years agotile: update pthread_attr_t and struct siginfo names
Chris Metcalf [Fri, 11 May 2012 18:42:46 +0000 (14:42 -0400)]
tile: update pthread_attr_t and struct siginfo names

This adds a tag to the pthread_attr_t underlying type so we can
forward-declare it, and removes the siginfo_t type, to match
changes in the main tree.

12 years agotile: Remove elf/ and create crti.S/crtn.S
Chris Metcalf [Fri, 11 May 2012 18:27:57 +0000 (14:27 -0400)]
tile: Remove elf/ and create crti.S/crtn.S

This patches fixes up the tile startup files, moving elf/start.S up a
directory level and implementing the required crti.S and crtn.S files
based on the old initfini.c compiler output (hand-optimized to bum a
couple of cycles).

12 years agom68k: remove duplicate __ASSUME_VFORK_SYSCALL
Andreas Schwab [Mon, 14 May 2012 15:06:47 +0000 (17:06 +0200)]
m68k: remove duplicate __ASSUME_VFORK_SYSCALL

12 years agom68k: use default minimum kernel version for m680x0
Andreas Schwab [Mon, 14 May 2012 15:02:00 +0000 (17:02 +0200)]
m68k: use default minimum kernel version for m680x0

12 years agoRemove pre-2.2 kernel support for MIPS.
Joseph Myers [Mon, 14 May 2012 14:17:16 +0000 (14:17 +0000)]
Remove pre-2.2 kernel support for MIPS.

12 years agoRemove pre-2.2 Linux kernel support for ARM.
Joseph Myers [Mon, 14 May 2012 14:16:40 +0000 (14:16 +0000)]
Remove pre-2.2 Linux kernel support for ARM.

12 years agoia64: delete __ELF__ check in libm-symbols.h
Mike Frysinger [Sun, 13 May 2012 19:09:05 +0000 (15:09 -0400)]
ia64: delete __ELF__ check in libm-symbols.h

We assume ELF everywhere now, so drop support for non-ELF.

Reported-by: Joseph S. Myers <joseph@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoAdd _SNSECONDS_T_TYPE for linux-generic
Chris Metcalf [Fri, 11 May 2012 18:03:30 +0000 (14:03 -0400)]
Add _SNSECONDS_T_TYPE for linux-generic

12 years agoUpdate sysdeps/mips/dl-lookup.c from generic version.
Joseph Myers [Fri, 11 May 2012 20:47:51 +0000 (20:47 +0000)]
Update sysdeps/mips/dl-lookup.c from generic version.

12 years agom68k: update libm test ULPs
Andreas Schwab [Thu, 10 May 2012 15:38:20 +0000 (17:38 +0200)]
m68k: update libm test ULPs

12 years agoUpdate Changelog.m68k
Andreas Schwab [Thu, 10 May 2012 15:37:38 +0000 (17:37 +0200)]
Update Changelog.m68k

12 years agoARM: Use /lib/ld-linux-armhf.so.3 for the hard-float ABI.
Carlos O'Donell [Tue, 8 May 2012 02:14:44 +0000 (22:14 -0400)]
ARM: Use /lib/ld-linux-armhf.so.3 for the hard-float ABI.

The hard-float ABI will now use /lib/ld-linux-armhf.so.3.
We detect the use of the hard-float ABI and select the
appropriate dynamic linker name. You must have a new or
patched compiler which also uses the new dynamic loader
name when the hard-float ABI is selected.

12 years agoRearrange MIPS libm-test-ulps files.
Joseph Myers [Tue, 8 May 2012 14:45:14 +0000 (14:45 +0000)]
Rearrange MIPS libm-test-ulps files.

12 years agoia64: include errno.h in sysdep.h
Mike Frysinger [Tue, 8 May 2012 03:17:48 +0000 (23:17 -0400)]
ia64: include errno.h in sysdep.h

This header uses __set_errno(), so make sure we include errno.h for it.
Otherwise, if INLINE_SYSCALL() is used and errno.h isn't included, we
hit warnings like so:
In file included from libc-start.c:36:0:
../sysdeps/unix/sysv/linux/dl-osinfo.h: In function '_dl_setup_stack_chk_guard':
../sysdeps/unix/sysv/linux/dl-osinfo.h:79:7: warning: implicit declaration of function '__set_errno'

Which culminate in errors like so:
libc-start.c:(.text+0x692): undefined reference to '__set_errno'
libc-start.c:(.text+0x752): undefined reference to '__set_errno'
collect2: ld returned 1 exit status

Reported-by: Dennis Schridde <devurandom@gmx.net>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: add matherr[fl] to libm.so plt whitelist
Mike Frysinger [Sun, 6 May 2012 22:24:32 +0000 (18:24 -0400)]
ia64: add matherr[fl] to libm.so plt whitelist

The ia64 math code has extra matherr functions (f and l variants),
so add them to the libm.so plt whitelist like the existing matherr
in the main code.

The check-localplt test now passes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: update abilist
Mike Frysinger [Sun, 6 May 2012 09:39:09 +0000 (05:39 -0400)]
ia64: update abilist

For the most part, these are adding symbols from newer glibc releases that
should have been added to ia64 in the first place, but no one noticed.

There were also adding symbols from older versions, but that appears to be
an oversight in the old abilist files where the ia64 tuple wasn't added to
the symbol block.

A few symbols did get deleted, but that looks normal as no other arch has
them, and comparing to an old glibc-2.7 build, things have been this way
for quite a while.

After this, `make check-abi` now passes for ia6.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: restore abilist files
Mike Frysinger [Sun, 6 May 2012 08:49:52 +0000 (04:49 -0400)]
ia64: restore abilist files

These are the abilists as ia64 had them before being removed from the
main tree.  Most libs pass, but a bunch need updating.  That'll be done
in a follow up commit.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoRestore MIPS n64 posix_fadvise64 export at GLIBC_2.3.3 (bug 14044).
Joseph Myers [Tue, 1 May 2012 15:48:54 +0000 (08:48 -0700)]
Restore MIPS n64 posix_fadvise64 export at GLIBC_2.3.3 (bug 14044).

12 years agoRestore ARM profil_counter export (bug 14043).
Joseph Myers [Tue, 1 May 2012 14:22:52 +0000 (07:22 -0700)]
Restore ARM profil_counter export (bug 14043).

12 years agom68k: add abilist files
Andreas Schwab [Sat, 28 Apr 2012 13:09:57 +0000 (15:09 +0200)]
m68k: add abilist files

12 years agoAdd abilist data for MIPS.
Joseph Myers [Sat, 28 Apr 2012 11:29:32 +0000 (04:29 -0700)]
Add abilist data for MIPS.

12 years agoAvoid endian.h include in MIPS64 string functions.
Joseph Myers [Sat, 28 Apr 2012 10:41:29 +0000 (03:41 -0700)]
Avoid endian.h include in MIPS64 string functions.

12 years agoAdd abilist data for ARM.
Joseph Myers [Sat, 28 Apr 2012 10:04:28 +0000 (03:04 -0700)]
Add abilist data for ARM.

12 years agoia64: math: rename s_ilogbl.S to e_ilogbl.S
Mike Frysinger [Wed, 18 Apr 2012 03:31:26 +0000 (23:31 -0400)]
ia64: math: rename s_ilogbl.S to e_ilogbl.S

The main tree renamed these files as well as the symbols.
Update ia64 accordingly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: define __ASSUME_ACCEPT4
Mike Frysinger [Tue, 17 Apr 2012 02:55:11 +0000 (22:55 -0400)]
ia64: define __ASSUME_ACCEPT4

The latest kernels finally added accept4() to the ia64 kernel.
Define __ASSUME_ACCEPT4 accordingly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: add new GET_ADDR_PARAM define
Mike Frysinger [Tue, 17 Apr 2012 02:51:44 +0000 (22:51 -0400)]
ia64: add new GET_ADDR_PARAM define

The main tree updated the dl-tls code to use a new GET_ADDR_PARAM macro.
We need to define that to fix a build error due to it missing.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: split 16bit funcs out of byteswap.h and into byteswap-16.h
Mike Frysinger [Tue, 17 Apr 2012 02:47:48 +0000 (22:47 -0400)]
ia64: split 16bit funcs out of byteswap.h and into byteswap-16.h

The main tree split the 16bit byteswap funcs out into a dedicated header.
Do the same for ia64.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: ucontext.h: drop __cplusplus
Mike Frysinger [Tue, 17 Apr 2012 02:45:14 +0000 (22:45 -0400)]
ia64: ucontext.h: drop __cplusplus

Building a lot of glibc files trigger warnings like so:
.../ucontext.h:52:25: warning: variably modified '_pad' at file scope

The ia64 header protects the use of __builtin_offsetof by a C++
compiler, but this builtin works just fine with C compilers, so
allow it to be used there too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: pthread_attr_t type mangling
Mike Frysinger [Tue, 17 Apr 2012 02:44:55 +0000 (22:44 -0400)]
ia64: pthread_attr_t type mangling

This applies the same updates that already exist in the main tree for
making the pthread_attr_t union more standards compliant.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: add MAP_{STACK,HUGETLB} to bits/mman.h
Mike Frysinger [Tue, 17 Apr 2012 02:44:23 +0000 (22:44 -0400)]
ia64: add MAP_{STACK,HUGETLB} to bits/mman.h

Just adding new bit flags that newer kernels define.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: math: add __scalbn* aliases
Mike Frysinger [Tue, 17 Apr 2012 02:43:09 +0000 (22:43 -0400)]
ia64: math: add __scalbn* aliases

All other ports have __scalbn* aliases pointing back to scalbn*, but
the ia64 code had omitted them.  This didn't really matter as none
of the common code called them, but after a recent update, that's no
longer true.  Add the aliases needed by some common code to fix link
errors with libm due to them missing.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: drop __STDC__ handlings
Mike Frysinger [Tue, 17 Apr 2012 02:39:07 +0000 (22:39 -0400)]
ia64: drop __STDC__ handlings

The main tree dropped support for !__STDC__ code, so drop it from the
few places in the ia64 code too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: math: stub out new e_rem_pio2l func
Mike Frysinger [Tue, 17 Apr 2012 02:36:02 +0000 (22:36 -0400)]
ia64: math: stub out new e_rem_pio2l func

The ia64 math code stubs out the existing [er]_rem_*.c files, but the
main tree has added a new one since its removal.  Stub out that new
file too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: convert __const to const
Mike Frysinger [Tue, 17 Apr 2012 02:21:32 +0000 (22:21 -0400)]
ia64: convert __const to const

The main tree decided to drop support for pre-ISO C code, so we
can use "const" instead of "__const".

Processed with a simple sed script:

find `find sysdeps/ -name ia64` -type f -exec sed -i \
's:\<__const\>:const:' {} +

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: convert "math{,_private}.h" to <math{,_private}.h>
Mike Frysinger [Tue, 17 Apr 2012 02:19:02 +0000 (22:19 -0400)]
ia64: convert "math{,_private}.h" to <math{,_private}.h>

The main tree decided to change all these includes to <...>, so update
the ia64 code accordingly.

Processed with a simple sed script:

find `find sysdeps/ -name ia64` -type f -exec sed -i \
-r '/include/s:"(math.h|math_private.h)":<\1>:' {} +

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: convert <stdio-common/_itoa.h> to <_itoa.h>
Mike Frysinger [Tue, 17 Apr 2012 02:16:47 +0000 (22:16 -0400)]
ia64: convert <stdio-common/_itoa.h> to <_itoa.h>

The main tree relocated the _itoa.h header, so update our include
paths to match.

Processed with a simple sed script:

find `find sysdeps/ -name ia64` -type f -exec sed -i \
'/<stdio-common._itoa.h>/s:<stdio-common/_itoa.h>:<_itoa.h>:' {} +

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: initfini.c -> crt{i,n}.S split
Mike Frysinger [Tue, 17 Apr 2012 02:28:03 +0000 (22:28 -0400)]
ia64: initfini.c -> crt{i,n}.S split

This was done mostly by looking at the processed crt{i,n}.S files in
glibc-2.15, and then added the required update for using in either
csu/ or nptl/.

Seems to work -- when an earlier version didn't call the initializers,
many tests (pthread related) failed.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: merge sysdeps/ia64/elf/ into sysdeps/ia64/
Mike Frysinger [Tue, 17 Apr 2012 02:30:43 +0000 (22:30 -0400)]
ia64: merge sysdeps/ia64/elf/ into sysdeps/ia64/

Moved the files, and then pasted the configure.in contents into the
parent file.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: add split-out settings into dedicated files
Mike Frysinger [Tue, 17 Apr 2012 02:52:56 +0000 (22:52 -0400)]
ia64: add split-out settings into dedicated files

Logic specific to ia64 used to live in the main tree in common files.
Now that we can't do that (with #ifdef and such), we need to add that
logic into dedicated overriding files.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoia64: update include paths
Mike Frysinger [Tue, 17 Apr 2012 02:46:52 +0000 (22:46 -0400)]
ia64: update include paths

We need to update the file paths after the ia64 code was moved from
the main tree to ports/.  In the case of backtrace.c, the main tree
actually copied the ia64 version to the x86_64 code, so we can go
ahead and drop the ia64 version.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoIncrease minimum MIPS kernel version to 2.6.12.
Joseph Myers [Fri, 27 Apr 2012 20:52:33 +0000 (20:52 +0000)]
Increase minimum MIPS kernel version to 2.6.12.

12 years agoalpha: Correct kernel version needed to define __ASSUME_ACCEPT4.
Matt Turner [Fri, 27 Apr 2012 02:40:14 +0000 (22:40 -0400)]
alpha: Correct kernel version needed to define __ASSUME_ACCEPT4.

12 years agoalpha: Use fopen "rce" in ioperm
Matt Turner [Fri, 27 Apr 2012 02:22:59 +0000 (22:22 -0400)]
alpha: Use fopen "rce" in ioperm