diff options
author | Olivier Hainque <hainque@act-europe.fr> | 2003-04-05 00:44:02 +0200 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2003-04-04 17:44:02 -0500 |
commit | bb056a77f345caff9802848ed9bc459055a3a9ea (patch) | |
tree | 9d8eeb3110a4fafa855c76608180345189b7b597 /gcc | |
parent | da247cccbc27c6c1f78c15fe4922c8f806c5369a (diff) | |
download | gcc-bb056a77f345caff9802848ed9bc459055a3a9ea.zip gcc-bb056a77f345caff9802848ed9bc459055a3a9ea.tar.gz gcc-bb056a77f345caff9802848ed9bc459055a3a9ea.tar.bz2 |
emit-rtl.c (get_mem_attrs): Adjust alignment tests determining use of default attributes to agree MEM_ALIGN...
* emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
use of default attributes to agree MEM_ALIGN macro.
From-SVN: r65254
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 544f911..6dba145 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr> + + * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining + use of default attributes to agree MEM_ALIGN macro. + Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com> * dbxout.c (dbxout_type): When printing type index of range type diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 4aab674..96903a3 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -312,13 +312,14 @@ get_mem_attrs (alias, expr, offset, size, align, mode) mem_attrs attrs; void **slot; - /* If everything is the default, we can just return zero. */ + /* If everything is the default, we can just return zero. + This must match what the corresponding MEM_* macros return when the + field is not present. */ if (alias == 0 && expr == 0 && offset == 0 && (size == 0 || (mode != BLKmode && GET_MODE_SIZE (mode) == INTVAL (size))) - && (align == BITS_PER_UNIT - || (STRICT_ALIGNMENT - && mode != BLKmode && align == GET_MODE_ALIGNMENT (mode)))) + && (STRICT_ALIGNMENT && mode != BLKmode + ? align == GET_MODE_ALIGNMENT (mode) : align == BITS_PER_UNIT)) return 0; attrs.alias = alias; |