diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-26 12:36:09 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-26 12:36:09 +0000 |
commit | d04de46179d2d86330a4e08fec23eafcb344b026 (patch) | |
tree | 22f6da9ee7ac2c7d608990842049011d926676f9 /gcc/varasm.c | |
parent | d5720b0c143a166029a97908c8f4dc0b1a105b1f (diff) | |
download | gcc-d04de46179d2d86330a4e08fec23eafcb344b026.tar.gz |
* varasm.c (output_constant_pool): For pool constants in mergeable
section ensure each constant is padded to multiple of entity size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59508 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index a3d283a8b56..db7599e7212 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3499,6 +3499,13 @@ output_constant_pool (fnname, fndecl) abort (); } + /* Make sure all constants in SECTION_MERGE and not SECTION_STRINGS + sections have proper size. */ + if (pool->align > GET_MODE_BITSIZE (pool->mode) + && in_section == in_named + && get_named_section_flags (in_named_name) & SECTION_MERGE) + assemble_align (pool->align); + #ifdef ASM_OUTPUT_SPECIAL_POOL_ENTRY done: ; #endif |