summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-17 23:00:05 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-17 23:00:05 +0000
commitf7d6703c5d83fc9fb06246d6eb49e9b61098045c (patch)
tree57adeaca11a81e869dded7cdb7caaa2c7bfb2115 /gcc/varasm.c
parent4899654eef097d074b37a9a07098c66ad2e59800 (diff)
downloadgcc-f7d6703c5d83fc9fb06246d6eb49e9b61098045c.tar.gz
* i386.h (ALIGN_DFmode): Delete.
(CONSTANT_ALIGNMENT): Define. * varasm.c (force_const_mem): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19823 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 867ae1f1713..9951a50d31e 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -3417,6 +3417,10 @@ force_const_mem (mode, x)
align = (mode == VOIDmode) ? UNITS_PER_WORD : GET_MODE_SIZE (mode);
if (align > BIGGEST_ALIGNMENT / BITS_PER_UNIT)
align = BIGGEST_ALIGNMENT / BITS_PER_UNIT;
+#ifdef CONSTANT_ALIGNMENT
+ align = CONSTANT_ALIGNMENT (make_tree (type_for_mode (mode, 0), x),
+ align * BITS_PER_UNIT) / BITS_PER_UNIT;
+#endif
pool_offset += align - 1;
pool_offset &= ~ (align - 1);