public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/61296] New: Excessive alignment in ix86_data_alignment
@ 2014-05-23 16:49 hjl.tools at gmail dot com
  2014-05-27 18:23 ` [Bug target/61296] " hjl.tools at gmail dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: hjl.tools at gmail dot com @ 2014-05-23 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61296
           Summary: Excessive alignment in ix86_data_alignment
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
            Target: x86

ix86_data_alignment was introduced by

https://gcc.gnu.org/ml/gcc-patches/2000-06/msg00871.html

It aligns struct larger than 32 bytes to 32 bytes. This change

https://gcc.gnu.org/ml/gcc-patches/2001-03/msg01356.html

aligns struct/union/array bigger than 16 bytes to 16 bytes, which
causes PR 56564 and leads to DATA_ABI_ALIGNMENT.  When OPT is false,
ix86_data_alignment may return alignment bigger than ABI required.
It happens when the references is bound to the current definition.
It improves the performance when data can be accessed with the biggest
alignment.  If data is aligned bigger than the biggest alignment, we
may not get performance benefit while wasting alignment padding.


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2021-09-12  7:47 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-23 16:49 [Bug target/61296] New: Excessive alignment in ix86_data_alignment hjl.tools at gmail dot com
2014-05-27 18:23 ` [Bug target/61296] " hjl.tools at gmail dot com
2014-05-30 16:52 ` hjl.tools at gmail dot com
2014-06-11 16:38 ` hjl.tools at gmail dot com
2014-12-11 17:21 ` hubicka at gcc dot gnu.org
2014-12-11 17:33 ` jakub at gcc dot gnu.org
2014-12-11 17:38 ` hjl.tools at gmail dot com
2014-12-11 23:25 ` jakub at gcc dot gnu.org
2014-12-16 13:21 ` hjl.tools at gmail dot com
2014-12-16 13:31 ` jakub at gcc dot gnu.org
2014-12-16 13:41 ` hjl.tools at gmail dot com
2014-12-16 13:47 ` jakub at gcc dot gnu.org
2014-12-16 13:53 ` hjl.tools at gmail dot com
2014-12-16 13:58 ` jakub at gcc dot gnu.org
2014-12-16 15:51 ` hjl.tools at gmail dot com
2014-12-16 19:24 ` hjl.tools at gmail dot com
2014-12-17 14:23 ` hjl at gcc dot gnu.org
2014-12-17 14:50 ` hjl.tools at gmail dot com
2021-09-12  7:47 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).