This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH roland/arm] ARM: Use movw/movt more when available
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Wed, 22 Oct 2014 20:28:48 +0000
- Subject: Re: [PATCH roland/arm] ARM: Use movw/movt more when available
- Authentication-results: sourceware.org; auth=none
- References: <20141016223356 dot 845062C24CE at topped-with-meat dot com>
On Thu, 16 Oct 2014, Roland McGrath wrote:
> 2014-10-16 Roland McGrath <roland@hack.frob.com>
>
> * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
> macro to get at the _rt_local_ro field.
> [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
> ([PIC] case) or _dl_hwcap ([!PIC] case).
> * sysdeps/arm/setjmp.S: Likewise.
>
> * config.h.in (ARM_PCREL_MOVW_OK): New macro.
> * sysdeps/arm/configure.ac: New check to define it.
> * sysdeps/arm/configure: Regenerated.
> * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
> (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
> (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
> depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
> (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
> Use move/movt pair instead of a load.
> (LDST_GLOBAL): Macro removed.
> (LDR_GLOBAL): New macro replaces it.
> (LDR_HIDDEN): New macro.
> (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
> Use LDR_HIDDEN instead for __pointer_chk_guard_local.
>
> * setjmp/tst-setjmp-static.c: New file.
> * setjmp/Makefile (tests): Add it.
> (tests-static): New variable.
OK.
--
Joseph S. Myers
joseph@codesourcery.com