This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/81450] Typedef with assume aligned builtin yields segmentation fault in nested loop


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
>  typedef double __attribute__((aligned (32))) AlignedDouble;
>  AlignedDouble* A = aligned_doubles( size * size );
>      A[j + i * size] += alpha;

here you say that &A[j+i*size] is aligned to 32 bytes because you dereference
A + j + i*size which is still of type AlignedDouble.

Maybe surprising but this it is.

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