diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-01-11 09:51:17 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2005-01-11 20:21:17 +1030 |
commit | bfc45551d5ace42f4b6133c05f010cf5eb5cb9f3 (patch) | |
tree | 8327d7ab80bc3b691512853606494ea8aaaa0ae4 /gcc/expr.h | |
parent | d3f6e07b9a129f1f090e4290c54448cacc0e0eb1 (diff) | |
download | gcc-bfc45551d5ace42f4b6133c05f010cf5eb5cb9f3.zip gcc-bfc45551d5ace42f4b6133c05f010cf5eb5cb9f3.tar.gz gcc-bfc45551d5ace42f4b6133c05f010cf5eb5cb9f3.tar.bz2 |
re PR target/18916 (mis-aligned vector code with copy memory (-maltivec))
PR target/18916
* builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
* expr.h (struct locate_and_pad_arg_data): Add "boundary".
* function.c (locate_and_pad_parm): Set new field.
(assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
Tweak where_pad test to include "none". Always set mem align for
stack_parm.
(assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
not sufficient for type.
(assign_parm_setup_block): If stack_parm is zero on entry, always
make a new stack local. Block move old stack parm if necessary
to new aligned stack local.
(assign_parm_setup_stack): Use a block move to handle
potentially misaligned entry_parm.
(assign_parms_unsplit_complex): Specify required alignment when
creating stack local.
* calls.c (compute_argument_addresses): Override alignment of stack
arg calculated from its type with the alignment given by
FUNCTION_ARG_BOUNDARY.
(store_one_arg): Likewise.
From-SVN: r93179
Diffstat (limited to 'gcc/expr.h')
-rw-r--r-- | gcc/expr.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,7 @@ /* Definitions for code generation pass of GNU compiler. Copyright (C) 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003, 2004, 2005 + Free Software Foundation, Inc. This file is part of GCC. @@ -116,6 +117,8 @@ struct locate_and_pad_arg_data struct args_size alignment_pad; /* Which way we should pad this arg. */ enum direction where_pad; + /* slot_offset is at least this aligned. */ + unsigned int boundary; }; /* Add the value of the tree INC to the `struct args_size' TO. */ |