]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Allow netbsd target to also set structure size boundary
authorNick Clifton <nickc@cygnus.com>
Thu, 28 Oct 1999 09:28:04 +0000 (09:28 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 28 Oct 1999 09:28:04 +0000 (09:28 +0000)
From-SVN: r30234

gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.h
gcc/config/arm/netbsd.h

index fefd38df337fe7b94b59860be0bb63d042e44411..f0e27274e0384e81340930a3d6ee5d921111a879 100644 (file)
@@ -1,3 +1,12 @@
+Thu Oct 28 10:00:48 1999  Nick Clifton  <nickc@cygnus.com>
+
+       * config/arm/arm.c: Initialise arm_structure_size_boundary to
+       DEFAULT_STRUCTURE_SIZE_BOUNDARY.
+       * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
+       to the value 32 if it has not already been defined.
+       * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
+       Override definition in arm.h with a value of 8.
+
 Thu Oct 28 03:12:02 1999  David Starner  <dstarner98@aasaa.ofe.org>
 
        * c-pragma.c (push_alignment): Don't check the return value
index 01f4175c017b5b59d4172b9025ef650676db6122..1bc1c0cd43874ccdd81a5cfc1ef7656d149249fd 100644 (file)
@@ -96,7 +96,7 @@ const char * target_fp_name = NULL;
 
 /* Used to parse -mstructure_size_boundary command line option.  */
 const char * structure_size_string = NULL;
-int    arm_structure_size_boundary = 32; /* Used to be 8 */
+int    arm_structure_size_boundary = DEFAULT_STRUCTURE_SIZE_BOUNDARY;
 
 /* Bit values used to identify processor capabilities.  */
 #define FL_CO_PROC    (1 << 0)        /* Has external co-processor bus */
index d64f59062607818e1e19b8dd9b494a6cc049de1d..0c8c697bfbb3b0a28b70123f80a1edc0bff96987 100644 (file)
@@ -615,15 +615,21 @@ extern int arm_is_6_or_7;
   (TREE_CODE (EXP) == STRING_CST        \
    && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN))
 
-/* 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
+/* Setting STRUCTURE_SIZE_BOUNDARY 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".  */
 #define STRUCTURE_SIZE_BOUNDARY arm_structure_size_boundary
 extern int arm_structure_size_boundary;
+
+/* This is the value used to initialise arm_structure_size_boundary.  If a
+   particular arm target wants to change the default value it should change
+   the definition of this macro, not STRUCTRUE_SIZE_BOUNDARY.  See netbsd.h
+   for an example of this.  */
+#ifndef DEFAULT_STRUCTURE_SIZE_BOUNDARY
+#define DEFAULT_STRUCTURE_SIZE_BOUNDARY 32
 #endif
 
 /* Used when parsing command line option -mstructure_size_boundary.  */
index 7b03d4a90ffac0a49aaed41aa6f124b962b74e59..4c8ce4094fc092ad708599e2feed022cb3d52292 100644 (file)
@@ -157,5 +157,5 @@ Boston, MA 02111-1307, USA.  */
    This modification is not encouraged but with the present state of the
    NetBSD source tree it is currently the only solution that meets the
    requirements.  */
-#undef STRUCTURE_SIZE_BOUNDARY
-#define STRUCTURE_SIZE_BOUNDARY 8
+#undef  DEFAULT_STRUCTURE_SIZE_BOUNDARY
+#define DEFAULT_STRUCTURE_SIZE_BOUNDARY 8