diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-27 18:31:35 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-27 18:31:35 +0000 |
commit | bf307050129bbf6822c587772b7babc5c0d4ed0b (patch) | |
tree | 35b83f2ee2995721922dffbd7f63b483c4cec73b /gcc/config | |
parent | e75beec7f97ffc1bfc1dfd31b93c10e15881c932 (diff) | |
download | gcc-bf307050129bbf6822c587772b7babc5c0d4ed0b.tar.gz |
allow all arm targets to use -mstructure-size-boundary=XX
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30220 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arm/arm.h | 13 | ||||
-rw-r--r-- | gcc/config/arm/coff.h | 9 | ||||
-rw-r--r-- | gcc/config/arm/elf.h | 9 |
3 files changed, 8 insertions, 23 deletions
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 47df25d49e5..d64f5906260 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -615,12 +615,15 @@ extern int arm_is_6_or_7; (TREE_CODE (EXP) == STRING_CST \ && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN)) -/* Every structures size must be a multiple of 32 bits. */ -/* This is for compatibility with ARMCC. ARM SDT Reference Manual - (ARM DUI 0020D) page 2-20 says "Structures are aligned on word - boundaries". */ +/* Setting this to 32 produces more efficient code, but the value set in + previous versions of this toolchain was 8, which produces more compact + structures. The command line option -mstructure_size_boundary=<n> can + be used to change this value, for compatability with the ARM SDK however + the value should be left at 32. ARM SDT Reference Manual (ARM DUI 0020D) + page 2-20 says "Structures are aligned on word boundaries". */ #ifndef STRUCTURE_SIZE_BOUNDARY -#define STRUCTURE_SIZE_BOUNDARY 32 +#define STRUCTURE_SIZE_BOUNDARY arm_structure_size_boundary +extern int arm_structure_size_boundary; #endif /* Used when parsing command line option -mstructure_size_boundary. */ diff --git a/gcc/config/arm/coff.h b/gcc/config/arm/coff.h index 8d8f5605b65..4029eed0b13 100644 --- a/gcc/config/arm/coff.h +++ b/gcc/config/arm/coff.h @@ -37,15 +37,6 @@ Boston, MA 02111-1307, USA. */ #define MULTILIB_DEFAULTS { "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" } -/* Setting this to 32 produces more efficient code, but the value set in previous - versions of this toolchain was 8, which produces more compact structures. The - command line option -mstructure_size_boundary=<n> can be used to change this - value. */ -#undef STRUCTURE_SIZE_BOUNDARY -#define STRUCTURE_SIZE_BOUNDARY arm_structure_size_boundary - -extern int arm_structure_size_boundary; - /* A C expression whose value is nonzero if IDENTIFIER with arguments ARGS is a valid machine specific attribute for DECL. The attributes in ATTRIBUTES have previously been assigned to DECL. */ diff --git a/gcc/config/arm/elf.h b/gcc/config/arm/elf.h index 3b71229de74..3e068913485 100644 --- a/gcc/config/arm/elf.h +++ b/gcc/config/arm/elf.h @@ -172,15 +172,6 @@ Boston, MA 02111-1307, USA. */ #define MULTILIB_DEFAULTS { "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" } #endif -/* Setting this to 32 produces more efficient code, but the value set in previous - versions of this toolchain was 8, which produces more compact structures. The - command line option -mstructure_size_boundary=<n> can be used to change this - value. */ -#undef STRUCTURE_SIZE_BOUNDARY -#define STRUCTURE_SIZE_BOUNDARY arm_structure_size_boundary - -extern int arm_structure_size_boundary; - /* A C expression whose value is nonzero if IDENTIFIER with arguments ARGS is a valid machine specific attribute for DECL. The attributes in ATTRIBUTES have previously been assigned to DECL. */ |