aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2006-07-13 22:49:34 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2006-07-13 20:49:34 +0000
commit88d03811f89e6e0b1f63bdc7f61d9380645b1adf (patch)
treedf24029698d70c331756451ec077b8551bb844f7 /gcc/cgraphunit.c
parent56dbe89df5a64529d4dffff48e2ed38d4c90aba7 (diff)
downloadgcc-88d03811f89e6e0b1f63bdc7f61d9380645b1adf.zip
gcc-88d03811f89e6e0b1f63bdc7f61d9380645b1adf.tar.gz
gcc-88d03811f89e6e0b1f63bdc7f61d9380645b1adf.tar.bz2
cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call align_variable.
* cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call align_variable. * output.h (align_variable): Declare. * varasm.c (align_variable): Export. * value-prof.c (tree_value_profile_transformations): Recompute iterator when basic block changed. From-SVN: r115421
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 33028b2..d02ead5 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -281,6 +281,10 @@ cgraph_varpool_analyze_pending_decls (void)
cgraph_varpool_first_unanalyzed_node = cgraph_varpool_first_unanalyzed_node->next_needed;
+ /* Compute the alignment early so function body expanders are
+ already informed about increased alignment. */
+ align_variable (decl, 0);
+
if (DECL_INITIAL (decl))
{
visited_nodes = pointer_set_create ();