[Bug middle-end/36043] gcc reads 8 bytes for a struct of size 6 which leads to sigsegv
bergner at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 2 15:47:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36043
Peter Bergner <bergner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bergner at gcc dot gnu.org
--- Comment #19 from Peter Bergner <bergner at gcc dot gnu.org> 2012-02-02 15:46:09 UTC ---
>From PR50499, we have this similar test case that fails on powerpc64-linux:
struct S50 { char i[9]; };
extern void bar (struct S50);
void
foo (struct S50 *p)
{
bar (*p);
}
Gives (using -m64 -O1):
...
ld 3,0(3)
ld 4,8(9)
bl bar
More information about the Gcc-bugs
mailing list