diff options
author | Geoffrey Keating <geoffk@apple.com> | 2007-07-12 13:43:33 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2007-07-12 13:43:33 +0000 |
commit | d872ada0175de73128885455c0ea198dfff236e8 (patch) | |
tree | 1768a9d093d8c397f3d10649233aaf7917fff2df /gcc/builtins.c | |
parent | 0f3943ec666c162d7e2881aacafa8159bee1fe8f (diff) | |
download | gcc-d872ada0175de73128885455c0ea198dfff236e8.zip gcc-d872ada0175de73128885455c0ea198dfff236e8.tar.gz gcc-d872ada0175de73128885455c0ea198dfff236e8.tar.bz2 |
builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a FUNCTION_DECL.
* builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
FUNCTION_DECL.
* tree.c (build_decl_stat): Move code from here...
(make_node_stat): ... to here. Don't uselessly clear DECL_USER_ALIGN.
(expr_align): Honor DECL_ALIGN on a FUNCTION_DECL. Add comment
about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
* tree.h (DECL_USER_ALIGN): Fix misplaced comment.
* varasm.c (assemble_start_function): Use DECL_ALIGN instead of
FUNCTION_BOUNDARY.
From-SVN: r126588
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index da76f61..44cfc0d 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -355,9 +355,7 @@ get_pointer_alignment (tree exp, unsigned int max_align) else if (offset) inner = MIN (inner, BITS_PER_UNIT); } - if (TREE_CODE (exp) == FUNCTION_DECL) - align = FUNCTION_BOUNDARY; - else if (DECL_P (exp)) + if (DECL_P (exp)) align = MIN (inner, DECL_ALIGN (exp)); #ifdef CONSTANT_ALIGNMENT else if (CONSTANT_CLASS_P (exp)) |