tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Allow adjusting alignment of user-aligned decls again.

2012-06-20  Richard Guenther  <rguenther@suse.de>

	* tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
	Allow adjusting alignment of user-aligned decls again.

From-SVN: r188822
This commit is contained in:
Richard Guenther 2012-06-20 09:54:35 +00:00 committed by Richard Biener
parent 5a77294699
commit f89dcfd816
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2012-06-20 Richard Guenther <rguenther@suse.de>
* tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
Allow adjusting alignment of user-aligned decls again.
2012-06-20 Steven Bosscher <steven@gcc.gnu.org> 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
* config/rl78/rl78-c.c: Remove unnecessary includes. * config/rl78/rl78-c.c: Remove unnecessary includes.

View File

@ -4731,10 +4731,9 @@ vect_can_force_dr_alignment_p (const_tree decl, unsigned int alignment)
if (TREE_ASM_WRITTEN (decl)) if (TREE_ASM_WRITTEN (decl))
return false; return false;
/* Do not override explicit alignment set by the user or the alignment /* Do not override the alignment as specified by the ABI when the used
as specified by the ABI when the used attribute is set. */ attribute is set. */
if (DECL_USER_ALIGN (decl) if (DECL_PRESERVE_P (decl))
|| DECL_PRESERVE_P (decl))
return false; return false;
if (TREE_STATIC (decl)) if (TREE_STATIC (decl))