From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14925 invoked by alias); 9 Aug 2012 23:37:16 -0000 Received: (qmail 14916 invoked by uid 22791); 9 Aug 2012 23:37:16 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Aug 2012 23:37:03 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1SzcHm-0003gj-R2 from joseph_myers@mentor.com ; Thu, 09 Aug 2012 16:37:02 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 9 Aug 2012 16:37:02 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Fri, 10 Aug 2012 00:37:00 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1SzcHk-0007gE-7S; Thu, 09 Aug 2012 23:37:00 +0000 Date: Thu, 09 Aug 2012 23:37:00 -0000 From: "Joseph S. Myers" To: CC: Mike Frysinger Subject: Ping ia64 Re: Move Linux kernel version conditionals to kernel-features.h In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00090.txt.bz2 On Fri, 3 Aug 2012, Joseph S. Myers wrote: > Generally conditions on the compile-time minimum Linux kernel version > go via __ASSUME_* macros defined in kernel-features.h. However, > sysdeps/unix/sysv/linux/sysconf.c and > ports/sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h have such > conditions directly using __LINUX_KERNEL_VERSION. > > This patch fixes those conditions to follow the kernel-features.h > convention instead. For sysconf.c, a new macro > __ASSUME_ARG_MAX_STACK_BASED is defined and used. Because the #if > condition was a condition on an if () condition using the same > version, the same version number was previously repeated in both > conditions in close proximity; to avoid those copies (that should be > in sync) now being widely separated, I defined a macro > __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL for the version number in > question. For ports/sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h, I > removed the condition; this is in line with commit > de7f5ce7c595f4741029f7e63429826f8e82b340 which removed such a > condition from nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h a > few months ago. > > Tested x86_64. (This should be reviewed for ia64.) Ping. This patch is pending ia64 review. -- Joseph S. Myers joseph@codesourcery.com