aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 06472ea..6359ff9 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3312,7 +3312,10 @@ build_decl_stat (enum tree_code code, tree name, tree type MEM_STAT_DECL)
if (code == VAR_DECL || code == PARM_DECL || code == RESULT_DECL)
layout_decl (t, 0);
else if (code == FUNCTION_DECL)
- DECL_MODE (t) = FUNCTION_MODE;
+ {
+ DECL_MODE (t) = FUNCTION_MODE;
+ DECL_ALIGN (t) = FUNCTION_BOUNDARY;
+ }
return t;
}