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 middle-end/31309] [4.1/4.2 regression] reads/writes past end of structure



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


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