re PR rtl-optimization/45678 (crash on vector code with -m32 -msse)

PR middle-end/45678
	* cfgexpand.c (expand_one_stack_var_at): Use
	crtl->max_used_stack_slot_alignment as max_align, instead
	of maximum of that and PREFERRED_STACK_BOUNDARY.
	Don't call update_stack_alignment.

From-SVN: r164454
This commit is contained in:
Jakub Jelinek 2010-09-20 22:37:10 +02:00 committed by Jakub Jelinek
parent 523e82a7a3
commit 0a7a6af67e
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2010-09-20 Jakub Jelinek <jakub@redhat.com>
PR middle-end/45678
* cfgexpand.c (expand_one_stack_var_at): Use
crtl->max_used_stack_slot_alignment as max_align, instead
of maximum of that and PREFERRED_STACK_BOUNDARY.
Don't call update_stack_alignment.
2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
* langhooks.h (struct lang_hooks_for_types): Remove hash_types field.

View File

@ -738,12 +738,10 @@ expand_one_stack_var_at (tree decl, HOST_WIDE_INT offset)
offset -= frame_phase;
align = offset & -offset;
align *= BITS_PER_UNIT;
max_align = MAX (crtl->max_used_stack_slot_alignment,
PREFERRED_STACK_BOUNDARY);
max_align = crtl->max_used_stack_slot_alignment;
if (align == 0 || align > max_align)
align = max_align;
update_stack_alignment (align);
DECL_ALIGN (decl) = align;
DECL_USER_ALIGN (decl) = 0;
}