This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36043] gcc reads 8 bytes for a struct of size 6 which leads to sigsegv
- From: "bergner at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Feb 2012 15:46:09 +0000
- Subject: [Bug middle-end/36043] gcc reads 8 bytes for a struct of size 6 which leads to sigsegv
- Auto-submitted: auto-generated
- References: <bug-36043-4@http.gcc.gnu.org/bugzilla/>
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