Commit 0a7a6af6 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 523e82a7
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> 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
* langhooks.h (struct lang_hooks_for_types): Remove hash_types field. * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
......
...@@ -738,12 +738,10 @@ expand_one_stack_var_at (tree decl, HOST_WIDE_INT offset) ...@@ -738,12 +738,10 @@ expand_one_stack_var_at (tree decl, HOST_WIDE_INT offset)
offset -= frame_phase; offset -= frame_phase;
align = offset & -offset; align = offset & -offset;
align *= BITS_PER_UNIT; align *= BITS_PER_UNIT;
max_align = MAX (crtl->max_used_stack_slot_alignment, max_align = crtl->max_used_stack_slot_alignment;
PREFERRED_STACK_BOUNDARY);
if (align == 0 || align > max_align) if (align == 0 || align > max_align)
align = max_align; align = max_align;
update_stack_alignment (align);
DECL_ALIGN (decl) = align; DECL_ALIGN (decl) = align;
DECL_USER_ALIGN (decl) = 0; DECL_USER_ALIGN (decl) = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment