re PR middle-end/53708 (Many failures of the objc tests with -O3 -fnext-runtime and -m32)

2012-10-31  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/53708
	* tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
	user-supplied alignment when used with an explicit section name.

From-SVN: r193058
This commit is contained in:
Jakub Jelinek 2012-11-01 03:48:07 +01:00 committed by Peter Bergner
parent 362261e71f
commit 79e0221796
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2012-10-31 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/53708
* tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
user-supplied alignment when used with an explicit section name.
2012-10-31 Dehao Chen <dehao@google.com> 2012-10-31 Dehao Chen <dehao@google.com>
* tree-eh.c (do_return_redirection): Set location for jump statement. * tree-eh.c (do_return_redirection): Set location for jump statement.

View File

@ -4858,6 +4858,13 @@ vect_can_force_dr_alignment_p (const_tree decl, unsigned int alignment)
if (DECL_PRESERVE_P (decl)) if (DECL_PRESERVE_P (decl))
return false; return false;
/* Do not override explicit alignment set by the user when an explicit
section name is also used. This is a common idiom used by many
software projects. */
if (DECL_SECTION_NAME (decl) != NULL_TREE
&& !DECL_HAS_IMPLICIT_SECTION_NAME_P (decl))
return false;
if (TREE_STATIC (decl)) if (TREE_STATIC (decl))
return (alignment <= MAX_OFILE_ALIGNMENT); return (alignment <= MAX_OFILE_ALIGNMENT);
else else