From: Ramana Radhakrishnan Date: Thu, 30 Apr 2009 10:04:52 +0000 (+0000) Subject: Fix PR target/38571 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f711a87a64fb1c46e076f065d3b94b528432242a;p=gcc.git Fix PR target/38571 From-SVN: r147000 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a17306fdd3a..ec683ac4ce1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-04-30 Ramana Radhakrishnan + + PR target/38571 + * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb + when optimizing for size. + 2009-04-30 Hans-Peter Nilsson * gcse.c (gcse_constant_p): Fix typo in last change. diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 93d75bb74a3..8d97864861e 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -537,7 +537,7 @@ extern int arm_arch_hwdiv; #define PREFERRED_STACK_BOUNDARY \ (arm_abi == ARM_ABI_ATPCS ? 64 : STACK_BOUNDARY) -#define FUNCTION_BOUNDARY 32 +#define FUNCTION_BOUNDARY ((TARGET_THUMB && optimize_size) ? 16 : 32) /* The lowest bit is used to indicate Thumb-mode functions, so the vbit must go into the delta field of pointers to member