This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/28373] C code gives "unaligned access"
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2006 22:44:56 -0000
- Subject: [Bug regression/28373] C code gives "unaligned access"
- References: <bug-28373-6067@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-07-13 22:44 -------
More than that:
int cc[1];
foo(cc); /* says "unaligned access" */
int foo(v)
aa *v;
You are also violating C aliasing rules and also violating an even more
fundental problem in that the struct aa will not fit in cc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28373