This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31309] [4.1/4.2 regression] reads/writes past end of structure
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2008 13:23:09 -0000
- Subject: [Bug middle-end/31309] [4.1/4.2 regression] reads/writes past end of structure
- References: <bug-31309-12838@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #24 from ebotcazou at gcc dot gnu dot org 2008-01-17 13:23 -------
Subject: Bug 31309
Author: ebotcazou
Date: Thu Jan 17 13:22:21 2008
New Revision: 131599
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131599
Log:
Backport from mainline:
2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/31309
* expr.c (copy_blkmode_from_reg): Use a mode suited to the size
when copying to memory.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/struct-ret-3.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/expr.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31309