This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: Remove pre-2.6.0 Linux kernel support
- From: Carlos O'Donell <carlos_odonell at mentor dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>, <libc-ports at sourceware dot org>
- Date: Thu, 2 Aug 2012 23:33:44 -0400
- Subject: Re: Remove pre-2.6.0 Linux kernel support
- References: <Pine.LNX.4.64.1208022323170.28917@digraph.polyomino.org.uk>
On 8/2/2012 7:26 PM, Joseph S. Myers wrote:
> This patch increases the minimum Linux kernel version from 2.4.21 to
> 2.6.0 (generally meaning 2.6.0-test1 - the existing
> --enable-kernel=2.6.0 meaning).
>
> Because there are quite a lot of __ASSUME_* macros this affects, some
> of which are used in a lot of places, it seemed best to keep the patch
> size down by separating the increase of minimum kernel version from
> the cleanups to remove tests of __ASSUME_* macros, leaving the removal
> of compatibility code to a separate patch for each macro or group of
> related macros. Thus this patch does not remove any compatibility
> code, though it does remove two __ASSUME_* macros that are not used
> anywhere, __ASSUME_SET_THREAD_AREA_SYSCALL and __ASSUME_FUTEX_REQUEUE.
> (nptl/sysdeps/i386/tls.h tests a differently spelt macro,
> __ASSUME_SET_THREAD_AREA, that is nowhere defined, but the test is
> inside #if 0 and only affects a #error directive.) The patch does
> update README and NEWS for the new version requirement (future
> patches, moving the requirement to 2.6.16 as previously discussed,
> will of course update the version numbers there again).
>
> Tested x86_64.
>
> 2012-08-02 Joseph Myers <joseph@codesourcery.com>
>
> [BZ #13717]
> * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
> Change to 2.6.0 everywhere.
> * sysdeps/unix/sysv/linux/configure: Regenerated.
> * sysdeps/unix/sysv/linux/kernel-features.h
> (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
> (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
> kernel versions.
> (__ASSUME_POSIX_TIMERS): Define unconditionally.
> (__ASSUME_FUTEX_REQUEUE): Remove.
> (__ASSUME_STATFS64): Define unconditionally.
> (__ASSUME_AT_SECURE): Likewise.
> (__ASSUME_CORRECT_SI_PID): Likewise.
> (__ASSUME_TGKILL): Define without depending on kernel version for
> i386.
> (__ASSUME_UTIMES): Likewise.
> (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
> kernel version.
> (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
> (__ASSUME_TMPFS_NAME): Likewise.
> * README: Update reference to Linux kernel versions.
Looks good to me.
Cheers,
Carlos.
--
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026