From patchwork Fri Nov 14 18:40:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 3745 Received: (qmail 28415 invoked by alias); 14 Nov 2014 18:40:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 28404 invoked by uid 89); 14 Nov 2014 18:40:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Fri, 14 Nov 2014 18:40:28 +0000 From: Joseph Myers To: Subject: Remove ARM __GNUC_PREREQ(4,4) conditionals Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 This patch removes conditionals in ARM code on __GNUC_PREREQ(4,4), which were already obsolete even before the move from 4.4 to 4.6 as minimum GCC version for building glibc. Tested for ARM that installed shared libraries are unchanged by this patch. Committed. 2014-11-14 Joseph Myers * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT): Make definition conditional only on [PROF]. [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional definition. [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional. [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition. diff --git a/sysdeps/arm/sysdep.h b/sysdeps/arm/sysdep.h index 8614b4a..9225293 100644 --- a/sysdeps/arm/sysdep.h +++ b/sysdeps/arm/sysdep.h @@ -109,8 +109,7 @@ /* If compiled for profiling, call `mcount' at the start of each function. */ #ifdef PROF -/* Call __gnu_mcount_nc if GCC >= 4.4. */ -#if __GNUC_PREREQ(4,4) +/* Call __gnu_mcount_nc (GCC >= 4.4). */ #define CALL_MCOUNT \ push {lr}; \ cfi_adjust_cfa_offset (4); \ @@ -118,16 +117,6 @@ bl PLTJMP(mcount); \ cfi_adjust_cfa_offset (-4); \ cfi_restore (lr) -#else /* else call _mcount */ -#define CALL_MCOUNT \ - push {lr}; \ - cfi_adjust_cfa_offset (4); \ - cfi_rel_offset (lr, 0); \ - bl PLTJMP(mcount); \ - pops {lr}; \ - cfi_adjust_cfa_offset (-4); \ - cfi_restore (lr) -#endif #else #define CALL_MCOUNT /* Do nothing. */ #endif @@ -136,11 +125,7 @@ on this system, the asm identifier `syscall_error' intrudes on the C name space. Make sure we use an innocuous name. */ #define syscall_error __syscall_error -#if __GNUC_PREREQ(4,4) #define mcount __gnu_mcount_nc -#else -#define mcount _mcount -#endif /* Tag_ABI_align8_preserved: This code preserves 8-byte alignment in any callee. */