diff gcc/cfgexpand.c @ 19:58ad6c70ea60

update gcc from 4.4.0 to 4.4.1.
author kent@firefly.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 13:21:57 +0900
parents a06113de4d67
children 9de9dad105d4 3bfb6c00c1e0
line wrap: on
line diff
--- a/gcc/cfgexpand.c	Thu Sep 24 13:06:16 2009 +0900
+++ b/gcc/cfgexpand.c	Thu Sep 24 13:21:57 2009 +0900
@@ -1076,9 +1076,11 @@
 	 variables, which won't be on stack, we collect alignment of
 	 type and ignore user specified alignment.  */
       if (TREE_STATIC (var) || DECL_EXTERNAL (var))
-	align = TYPE_ALIGN (TREE_TYPE (var));
+	align = MINIMUM_ALIGNMENT (TREE_TYPE (var),
+				   TYPE_MODE (TREE_TYPE (var)),
+				   TYPE_ALIGN (TREE_TYPE (var)));
       else
-	align = DECL_ALIGN (var);
+	align = MINIMUM_ALIGNMENT (var, DECL_MODE (var), DECL_ALIGN (var));
 
       if (crtl->stack_alignment_estimated < align)
         {