https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91043

Hanoch Haim <hhaim at cisco dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #25 from Hanoch Haim <hhaim at cisco dot com> ---
Hi Richard,

You were right all along. I've looked into the wrong place!
I understand it now and it is not a gcc issue. gcc7/8 are just better than gcc
6 with code generation.  

1. The alignment is contagious, gcc marks all the parent objects of such an
object as aligned.  

2. With static allocated object there is no issue. 

3. The issue in my case was a dynamic allocation of a different object that
includes the aligned object. The object(parent) is assumed to be aligned, but
was allocated dynamically (not aligned)  


Thank you for the explanation.

Reply via email to