diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2011-09-03 14:56:53 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-09-03 14:56:53 +0000 |
commit | 13868f4049616f5ac73bb89ce38474ada50ff28c (patch) | |
tree | cd3c3578717b3ddf37c3ceddfbcd16e8ecd43868 /gcc/cfgexpand.c | |
parent | 1822c31f05cbcece4d73aa95ec824bd0086af445 (diff) | |
download | gcc-13868f4049616f5ac73bb89ce38474ada50ff28c.zip gcc-13868f4049616f5ac73bb89ce38474ada50ff28c.tar.gz gcc-13868f4049616f5ac73bb89ce38474ada50ff28c.tar.bz2 |
cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
* 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.
From-SVN: r178499
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 03a4409..1495633 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; |