diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-03 14:56:53 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-03 14:56:53 +0000 |
commit | 0a4cd568b37db01d1dc2c160935faee75561aa37 (patch) | |
tree | cd3c3578717b3ddf37c3ceddfbcd16e8ecd43868 /gcc/cfgexpand.c | |
parent | fb14449c7c426053a7909a94720c2499d80dc516 (diff) | |
download | gcc-0a4cd568b37db01d1dc2c160935faee75561aa37.tar.gz |
* cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
* tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
Force at least BITS_PER_UNIT alignment on the new variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178499 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 03a4409eeda..1495633840b 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -271,6 +271,8 @@ add_stack_var (tree decl) if (v->size == 0) v->size = 1; v->alignb = align_local_variable (SSAVAR (decl)); + /* An alignment of zero can mightily confuse us later. */ + gcc_assert (v->alignb != 0); /* All variables are initially in their own partition. */ v->representative = stack_vars_num; |