aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2002-01-27 18:29:33 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2002-01-27 13:29:33 -0500
commit917afb0c3fa15b32383bdfbc13a481012c42fcb4 (patch)
tree4c36f941d21f80038408fabd59032302b6791807 /gcc/emit-rtl.c
parentf70a54cb876ecdde60b6ea9caa1e730b360f3272 (diff)
downloadgcc-917afb0c3fa15b32383bdfbc13a481012c42fcb4.zip
gcc-917afb0c3fa15b32383bdfbc13a481012c42fcb4.tar.gz
gcc-917afb0c3fa15b32383bdfbc13a481012c42fcb4.tar.bz2
emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode if not STRICT_ALIGNMENT.
* emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode if not STRICT_ALIGNMENT. * rtl.h (MEM_ALIGN): Likewise. From-SVN: r49268
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 37f0d9f..2f3e100 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -292,7 +292,8 @@ get_mem_attrs (alias, expr, offset, size, align, mode)
&& (size == 0
|| (mode != BLKmode && GET_MODE_SIZE (mode) == INTVAL (size)))
&& (align == BITS_PER_UNIT
- || (mode != BLKmode && align == GET_MODE_ALIGNMENT (mode))))
+ || (STRICT_ALIGNMENT
+ && mode != BLKmode && align == GET_MODE_ALIGNMENT (mode))))
return 0;
attrs.alias = alias;