This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/53708] [4.8 Regression] Many failures of the objc tests with -O3 -fnext-runtime and -m32
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Oct 2012 18:38:14 +0000
- Subject: [Bug middle-end/53708] [4.8 Regression] Many failures of the objc tests with -O3 -fnext-runtime and -m32
- Auto-submitted: auto-generated
- References: <bug-53708-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53708
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-30 18:38:14 UTC ---
I'm not sure if DECL_USER_ALIGN || DECL_P is the right test for this, I'd say
instead
if (DECL_SECTION_NAME (decl) != NULL_TREE
&& !DECL_HAS_IMPLICIT_SECTION_NAME_P (decl))
is what is the problem here, this is what I'm using in asan.c to find out
whether it is ok to increase alignment and/or add padding after the decl.
It is a common way of filling arrays to just put variables into user defined
sections, and expect the whole section to contain an array of those decls. Any
alignment increases there or additional paddings of course break that
assumption.