aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-02-02 16:05:07 +0000
committerDoug Evans <dje@gnu.org>1996-02-02 16:05:07 +0000
commit20d1e66677c3ed2a2e99067e55c92a6a9b866ab3 (patch)
treeeb8f077bfb7b0f298820752334c8b7ecf1165c38
parentfa5b42083093cb056cb0d118f4357e0cae8eff08 (diff)
downloadgcc-20d1e66677c3ed2a2e99067e55c92a6a9b866ab3.zip
gcc-20d1e66677c3ed2a2e99067e55c92a6a9b866ab3.tar.gz
gcc-20d1e66677c3ed2a2e99067e55c92a6a9b866ab3.tar.bz2
(TARGET_ALIGN_300): Renamed from TARGET_ALIGN_STRUCT_300.
(TARGET_SWITCHES): Rename -malign-struct-300 to -malign-300. (BIGGEST_ALIGNMENT): Use TARGET_ALIGN_300. From-SVN: r11159
-rw-r--r--gcc/config/h8300/h8300.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index 9011f5f..a43b41bd 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -80,12 +80,12 @@ extern int target_flags;
#define TARGET_H8300 (! TARGET_H8300H)
#define TARGET_H8300H (target_flags & 4096)
-/* Align structures on the h8/300h the same way as the h8/300. Specifically,
- 32 bit and larger values in structures are aligned on 16 bit boundaries.
+/* Align all values on the h8/300h the same way as the h8/300. Specifically,
+ 32 bit and larger values are aligned on 16 bit boundaries.
This is all the hardware requires, but the default is 32 bits for the 300h.
??? Now watch someone add hardware floating point requiring 32 bit
alignment. */
-#define TARGET_ALIGN_STRUCT_300 (target_flags & 8192)
+#define TARGET_ALIGN_300 (target_flags & 8192)
/* Macro to define tables used to set the flags.
This is a list in braces of pairs in braces,
@@ -103,7 +103,7 @@ extern int target_flags;
{"rtl-dump",2048}, \
{"h",4096}, \
{"no-h",-4096}, \
- {"align-struct-300",8192}, \
+ {"align-300",8192}, \
{ "", TARGET_DEFAULT}}
/* Do things that must be done once at start up. */
@@ -194,7 +194,8 @@ do { \
/* No data type wants to be aligned rounder than this.
32 bit values are aligned as such on the 300h for speed. */
-#define BIGGEST_ALIGNMENT (TARGET_H8300H ? 32 : 16)
+#define BIGGEST_ALIGNMENT \
+((TARGET_H8300H && ! TARGET_ALIGN_STRUCT_300) ? 32 : 16)
/* No structure field wants to be aligned rounder than this. */
#define BIGGEST_FIELD_ALIGNMENT \