This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

record alignment of constant pool entries


For non-strict-alignment targets, this isn't the same as the
set_mem_attributes call above.


r~


        * varasm.c (force_const_mem): Call set_mem_align.

Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.470
diff -c -p -d -u -r1.470 varasm.c
--- varasm.c	20 Dec 2004 02:08:53 -0000	1.470
+++ varasm.c	23 Dec 2004 07:11:33 -0000
@@ -3021,6 +3021,7 @@ force_const_mem (enum machine_mode mode,
   /* Construct the MEM.  */
   desc->mem = def = gen_const_mem (mode, symbol);
   set_mem_attributes (def, lang_hooks.types.type_for_mode (mode, 0), 1);
+  set_mem_align (def, align);
 
   /* If we're dropping a label to the constant pool, make sure we
      don't delete it.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]