aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-27 15:22:26 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-27 15:22:26 -0500
commit6c6166bdcb941475a5767e7af35bf871045111f6 (patch)
treef070122ca58e41740c85cbf74975fb3b4bc58aba /gcc/function.c
parentf30d95d264ad9f748875ae590b7954986e31c5f0 (diff)
downloadgcc-6c6166bdcb941475a5767e7af35bf871045111f6.zip
gcc-6c6166bdcb941475a5767e7af35bf871045111f6.tar.gz
gcc-6c6166bdcb941475a5767e7af35bf871045111f6.tar.bz2
(assign_parms): Set REGNO_POINTER_ALIGN for parms that are pointers.
From-SVN: r10868
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index b62a284..d1e2859 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3848,7 +3848,9 @@ assign_parms (fndecl, second_time)
/* For pointer data type, suggest pointer register. */
if (TREE_CODE (TREE_TYPE (parm)) == POINTER_TYPE)
- mark_reg_pointer (parmreg);
+ mark_reg_pointer (parmreg,
+ (TYPE_ALIGN (TREE_TYPE (TREE_TYPE (parm)))
+ / BITS_PER_UNIT));
}
else
{