public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53037] New: warn_if_not_aligned(X)
@ 2012-04-18 22:59 hjl.tools at gmail dot com
  2012-04-19  0:35 ` [Bug c/53037] warn_if_not_aligned(X) hjl.tools at gmail dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: hjl.tools at gmail dot com @ 2012-04-18 22:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53037

             Bug #: 53037
           Summary: warn_if_not_aligned(X)
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


What I'd like to have is an __attribute__((warn_if_not_aligned(X)))
which issues a warning if the object/type/field in question is not
aligned to X.  In particular, I'd like to build with:

typedef unsigned long long __u64
       __attribute__((aligned(4),warn_if_not_aligned(8)));

... in order to get a list of the places where we have misaligned 64-bit
data pieces in x86.  Then we can do Linus' requested cleanups which
ultimately aims to getting __u64 to be __attribute__((aligned(8))) even
on i386, with an explicit __compat_u64 for the places where we need to
be misaligned for legacy reasons.


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

end of thread, other threads:[~2022-03-29  8:16 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-18 22:59 [Bug c/53037] New: warn_if_not_aligned(X) hjl.tools at gmail dot com
2012-04-19  0:35 ` [Bug c/53037] warn_if_not_aligned(X) hjl.tools at gmail dot com
2012-04-19 15:48 ` hjl.tools at gmail dot com
2012-04-19 15:53 ` hpa at zytor dot com
2012-04-19 16:02 ` hjl.tools at gmail dot com
2012-04-19 16:07 ` hpa at zytor dot com
2012-04-19 16:54 ` hjl.tools at gmail dot com
2012-04-19 16:59 ` hpa at zytor dot com
2012-04-19 17:09 ` hjl.tools at gmail dot com
2012-04-19 17:12 ` hpa at zytor dot com
2012-04-19 17:22 ` hjl.tools at gmail dot com
2012-04-19 17:42 ` hpa at zytor dot com
2012-04-19 20:16 ` hjl.tools at gmail dot com
2012-04-19 20:19 ` hjl.tools at gmail dot com
2012-04-19 20:24 ` hpa at zytor dot com
2012-04-19 20:42 ` hjl.tools at gmail dot com
2012-04-19 21:07 ` hjl.tools at gmail dot com
2013-02-13 10:39 ` paolo.carlini at oracle dot com
2022-03-29  8:16 ` vries 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).