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.

Reply via email to