aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2001-11-30 22:22:24 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2001-11-30 22:22:24 +0000
commit7b094d6e801b0f790052bc0e1c3a9c242282cea8 (patch)
tree03ae71be61f5f559f8e8192ca520e2a4b0bd9735 /gcc
parentdd6bdc62bf46642625710880825385b3dda75778 (diff)
downloadgcc-7b094d6e801b0f790052bc0e1c3a9c242282cea8.zip
gcc-7b094d6e801b0f790052bc0e1c3a9c242282cea8.tar.gz
gcc-7b094d6e801b0f790052bc0e1c3a9c242282cea8.tar.bz2
rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
2001-11-30 Aldy Hernandez <aldyh@redhat.com> * rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec. (STACK_DYNAMIC_OFFSET): Same. From-SVN: r47495
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.h6
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5dbb18c..f44146d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-30 Aldy Hernandez <aldyh@redhat.com>
+
+ * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
+ (STACK_DYNAMIC_OFFSET): Same.
+
2001-11-30 Richard Henderson <rth@redhat.com>
* c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index 70a4ec9..11747ef 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -1371,7 +1371,8 @@ typedef struct rs6000_stack {
outgoing parameter area. */
#define STARTING_FRAME_OFFSET \
- (RS6000_ALIGN (current_function_outgoing_args_size, 8) \
+ (RS6000_ALIGN (current_function_outgoing_args_size, \
+ TARGET_ALTIVEC ? 16 : 8) \
+ RS6000_VARARGS_AREA \
+ RS6000_SAVE_AREA)
@@ -1382,7 +1383,8 @@ typedef struct rs6000_stack {
length of the outgoing arguments. The default is correct for most
machines. See `function.c' for details. */
#define STACK_DYNAMIC_OFFSET(FUNDECL) \
- (RS6000_ALIGN (current_function_outgoing_args_size, 8) \
+ (RS6000_ALIGN (current_function_outgoing_args_size, \
+ TARGET_ALTIVEC ? 16 : 8) \
+ (STACK_POINTER_OFFSET))
/* If we generate an insn to push BYTES bytes,