record alignment of constant pool entries
Richard Henderson
rth@redhat.com
Thu Dec 23 07:13:00 GMT 2004
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. */
More information about the Gcc-patches
mailing list