From: Jakub Jelinek Date: Tue, 26 Nov 2002 12:36:09 +0000 (+0100) Subject: varasm.c (output_constant_pool): For pool constants in mergeable section ensure each... X-Git-Tag: releases/gcc-3.3.0~1620 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=r0-46282-gf41115930523b3;p=thirdparty%2Fgcc.git varasm.c (output_constant_pool): For pool constants in mergeable section ensure each constant is padded to... * varasm.c (output_constant_pool): For pool constants in mergeable section ensure each constant is padded to multiple of entity size. From-SVN: r59508 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5884c5fb0e68..6a3858c1de98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-11-26 Jakub Jelinek + + * varasm.c (output_constant_pool): For pool constants in mergeable + section ensure each constant is padded to multiple of entity size. + 2002-11-26 Jakub Jelinek * varasm.c (default_exception_section): Move to... diff --git a/gcc/varasm.c b/gcc/varasm.c index a3d283a8b562..db7599e72128 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