This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR40392, zlib confused by padded sections
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Diego Novillo <dnovillo at google dot com>
- Date: Tue, 29 Sep 2009 14:25:43 +0200 (CEST)
- Subject: [PATCH] Fix PR40392, zlib confused by padded sections
This fixes PR40392 which shows up on at least arm, alpha and s390(x).
Bootstrapped and tested on x86_64-unknown-linux-gnu, lightly tested
on ia64 with --lto-compression-level=0 to look for misaligned accesses.
Test on s390 running.
Richard.
2009-09-29 Richard Guenther <rguenther@suse.de>
PR lto/40392
* langhooks.c (lhd_begin_section): Do not align the section.
Index: gcc/langhooks.c
===================================================================
*** gcc/langhooks.c (revision 152269)
--- gcc/langhooks.c (working copy)
*************** lhd_begin_section (const char *name)
*** 608,614 ****
/* Create a new section and switch to it. */
section = get_section (name, SECTION_DEBUG, NULL);
switch_to_section (section);
- assemble_align (POINTER_SIZE);
}
--- 608,613 ----