From f711a87a64fb1c46e076f065d3b94b528432242a Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Thu, 30 Apr 2009 10:04:52 +0000 Subject: [PATCH] Fix PR target/38571 From-SVN: r147000 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a17306f..ec683ac 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 93d75bb..8d97864 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 -- 2.7.4