diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index d817067adf7..c21a25fcd25 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3639,8 +3639,7 @@ force_const_mem (enum machine_mode mode, rtx x) *slot = desc; /* Align the location counter as required by EXP's data type. */ - gcc_checking_assert (mode != VOIDmode && mode != BLKmode); - align = GET_MODE_ALIGNMENT (mode); + align = GET_MODE_ALIGNMENT (mode == VOIDmode ? word_mode : mode); #ifdef CONSTANT_ALIGNMENT { tree type = lang_hooks.types.type_for_mode (mode, 0); |