From: Ulrich Drepper Date: Tue, 18 Nov 1997 02:39:35 +0000 (+0000) Subject: Use __APCS_32__ to decide whether or not to preserve condition codes X-Git-Tag: glibc-2.16-ports-before-merge~3371 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c48d19d0d5cdd38636e701fdd74e72edbc8b5c7b;p=thirdparty%2Fglibc.git Use __APCS_32__ to decide whether or not to preserve condition codes on function call. --- diff --git a/sysdeps/arm/sysdep.h b/sysdeps/arm/sysdep.h index b7964a35b13..8d1e2972df6 100644 --- a/sysdeps/arm/sysdep.h +++ b/sysdeps/arm/sysdep.h @@ -43,13 +43,13 @@ #endif -/* ARM 6 needs slightly different handling */ -#ifdef __arm6__ +/* APCS-32 doesn't preserve the condition codes across function call. */ +#ifdef __APCS_32__ #define LOADREGS(cond, base, reglist...)\ ldm##cond base,reglist #define RETINSTR(instr, regs...)\ instr regs -#else /* arm 3 */ +#else /* APCS-26 */ #define LOADREGS(cond, base, reglist...)\ ldm##cond base,reglist^ #define RETINSTR(instr, regs...)\