This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regression/28373] C code gives "unaligned access"



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]