[Bug c/53037] warn_if_not_aligned(X)

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Apr 19 16:02:00 GMT 2012


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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2012-04-19 16:00:41 UTC ---
(In reply to comment #3)
> Logically, about half of u64's will be properly aligned at the moment... Linus'

No necessarily. For

u64 x;
int y;
u64 z;

both x and z may be 4 byte aligned.

> request is that we flag the currently misaligned __[su]64's as __compat_[su]64
> and make __[su]64 aligned, so at least *new* interfaces will be properly
> aligned.

Is this feature only used for function parameters?



More information about the Gcc-bugs mailing list