OSDN Git Service

* expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
authorshebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Nov 2001 04:40:11 +0000 (04:40 +0000)
committershebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Nov 2001 04:40:11 +0000 (04:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47081 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index e3bc0b5..2671505 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-15  Stan Shebs  <shebs@apple.com>
+
+       * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
+       
 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
        * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns 
index a06011b..bce6ba0 100644 (file)
@@ -7117,7 +7117,7 @@ expand_expr (exp, target, tmode, modifier)
            /* If the field isn't aligned enough to fetch as a memref,
               fetch it as a bit field.  */
            || (mode1 != BLKmode
-               && SLOW_UNALIGNED_ACCESS (mode1, MEM_ALIGN (op))
+               && SLOW_UNALIGNED_ACCESS (mode1, MEM_ALIGN (op0))
                && ((TYPE_ALIGN (TREE_TYPE (tem))
                     < GET_MODE_ALIGNMENT (mode))
                    || (bitpos % GET_MODE_ALIGNMENT (mode) != 0)))