builtins.c (expand_builtin_init_descriptor): Set memory alignment.

2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * builtins.c (expand_builtin_init_descriptor): Set memory alignment.

From-SVN: r274487
This commit is contained in:
Bernd Edlinger 2019-08-14 17:33:14 +00:00 committed by Bernd Edlinger
parent 34fcf41e30
commit 0bdf9f9253
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
* builtins.c (expand_builtin_init_descriptor): Set memory alignment.
2019-08-14 Martin Sebor <msebor@redhat.com>
PR tree-optimization/91294

View File

@ -5756,6 +5756,7 @@ expand_builtin_init_descriptor (tree exp)
r_descr = expand_normal (t_descr);
m_descr = gen_rtx_MEM (BLKmode, r_descr);
MEM_NOTRAP_P (m_descr) = 1;
set_mem_align (m_descr, GET_MODE_ALIGNMENT (ptr_mode));
r_func = expand_normal (t_func);
r_chain = expand_normal (t_chain);