Fix PR target/38571
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Thu, 30 Apr 2009 10:04:52 +0000 (10:04 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Thu, 30 Apr 2009 10:04:52 +0000 (10:04 +0000)
From-SVN: r147000

gcc/ChangeLog
gcc/config/arm/arm.h

index a17306f..ec683ac 100644 (file)
@@ -1,3 +1,9 @@
+2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       PR target/38571
+       * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
+       when optimizing for size.
+
 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
 
        * gcse.c (gcse_constant_p): Fix typo in last change.
index 93d75bb..8d97864 100644 (file)
@@ -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