aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2005-08-04 18:36:26 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2005-08-04 14:36:26 -0400
commitd70eadf7badda66d552d4a68278c1d382e6e0a9b (patch)
treedba624a2afb154da41d1a55ee60bc0fc0561bb26 /gcc/function.c
parentc4f548b8c5bd9b7178466ec69433f652bdc7e7f6 (diff)
downloadgcc-d70eadf7badda66d552d4a68278c1d382e6e0a9b.zip
gcc-d70eadf7badda66d552d4a68278c1d382e6e0a9b.tar.gz
gcc-d70eadf7badda66d552d4a68278c1d382e6e0a9b.tar.bz2
function.c (assign_stack_local_1): Do not correct stack slot address if allocation size is smaller than mode size.
* function.c (assign_stack_local_1): Do not correct stack slot address if allocation size is smaller than mode size. From-SVN: r102742
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 225c2a9..3584099 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -454,7 +454,7 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align,
/* 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