aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-11-26 13:36:09 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2002-11-26 13:36:09 +0100
commitf41115930523b329a72f15cac484434e1b66033b (patch)
tree22f6da9ee7ac2c7d608990842049011d926676f9
parent96d0f4dc5c9293d5c61fbc60f0966766db4d99e4 (diff)
downloadgcc-f41115930523b329a72f15cac484434e1b66033b.zip
gcc-f41115930523b329a72f15cac484434e1b66033b.tar.gz
gcc-f41115930523b329a72f15cac484434e1b66033b.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/varasm.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5884c5f..6a3858c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2002-11-26 Jakub Jelinek <jakub@redhat.com>
+ * 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 <jakub@redhat.com>
+
* varasm.c (default_exception_section): Move to...
* except.c (default_exception_section): ... here. Make
.gcc_except_table read-only if it is not expected to have any
diff --git a/gcc/varasm.c b/gcc/varasm.c
index a3d283a..db7599e 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