[Bug middle-end/39954] [4.5 Regression] Revision 146817 caused unaligned access in gcc.dg/torture/pr26565.c
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue May 5 15:59:00 GMT 2009
------- Comment #13 from hjl dot tools at gmail dot com 2009-05-05 15:59 -------
(In reply to comment #12)
> Michael, unfortunately, if it was your change that introduced this regression,
> you are responsible for solving the problem. The Right Answer, as you suggest,
> is to include the packed attribute in the type system, but I suspect that will
> be a major effort. Unfortunately, I don't know what else to suggest...
>
We have the aligned attribute in the type system. Can't we implement
typedef struct timeval packed __attribute__((packed));
as
typedef struct timeval packed __attribute__((aligned(1)));
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39954
More information about the Gcc-bugs
mailing list