* expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
authorStan Shebs <shebs@apple.com>
Fri, 16 Nov 2001 04:40:11 +0000 (04:40 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Fri, 16 Nov 2001 04:40:11 +0000 (04:40 +0000)
From-SVN: r47081

gcc/ChangeLog
gcc/expr.c

index e3bc0b55dc2322945d528aba5911580a94e729d3..2671505d4736ea78ee97c2d0bb47e04a991f0ecb 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 a06011ba9ed8bd00a42836351cda8e77704c0992..bce6ba0bfdc4c4a5767e50f3075306e3437d6e8f 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)))