This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]