address if allocation size is smaller than mode size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102742
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-08-04 David Edelsohn <edelsohn@gnu.org>
+
+ * function.c (assign_stack_local_1): Do not correct stack slot
+ address if allocation size is smaller than mode size.
+
2005-08-04 Diego Novillo <dnovillo@redhat.com>
PR 22037
/* On a big-endian machine, if we are allocating more space than we will use,
use the least significant bytes of those that are allocated. */
- if (BYTES_BIG_ENDIAN && mode != BLKmode)
+ if (BYTES_BIG_ENDIAN && mode != BLKmode && GET_MODE_SIZE (mode) < size)
bigend_correction = size - GET_MODE_SIZE (mode);
/* If we have already instantiated virtual registers, return the actual