[COMMITTED] Set memory alignment in expand_builtin_init_descriptor
diff mbox series

Message ID AM6PR10MB25668A0283DE8BF41A96863FE4AD0@AM6PR10MB2566.EURPRD10.PROD.OUTLOOK.COM
State New
Headers show
Series
  • [COMMITTED] Set memory alignment in expand_builtin_init_descriptor
Related show

Commit Message

Bernd Edlinger Aug. 14, 2019, 5:40 p.m. UTC
Committed as r274487 with approval in https://gcc.gnu.org/ml/gcc-patches/2019-08/msg00974.html




Thanks
Bernd.

Patch
diff mbox series

Index: gcc/builtins.c
===================================================================
--- gcc/builtins.c	(revision 274486)
+++ gcc/builtins.c	(revision 274487)
@@ -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);
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 274486)
+++ gcc/ChangeLog	(revision 274487)
@@ -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