builtins.c (expand_builtin_init_descriptor): Set memory alignment.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 14 Aug 2019 17:33:14 +0000 (17:33 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 14 Aug 2019 17:33:14 +0000 (17:33 +0000)
2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>

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

From-SVN: r274487

gcc/ChangeLog
gcc/builtins.c

index 7e2158be4a1813d9b08ed5c37ee782253b93fa1a..9f52514667c7739d84cf79af8a806954eeebc50d 100644 (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
index ece9f56e05208229d05bb8913d61b1bc811694b7..9a766e4ad63cdee7520def5e522bb937e418dbe8 100644 (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);