[Bug target/44575] [4.5 Regression] __builtin_va_arg overwrites into adjacent stack location

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 1 13:13:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44575

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-10-01 13:13:36 UTC ---
Author: jakub
Date: Fri Oct  1 13:13:31 2010
New Revision: 164884

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164884
Log:
    Backport from mainline
    2010-09-30  Jakub Jelinek  <jakub@redhat.com>

    PR target/45843
    * config/i386/i386.c (ix86_gimplify_va_arg): Use
    INTVAL (XEXP (slot, 1)) as prev_size.

    2010-06-21  Jakub Jelinek  <jakub@redhat.com>

    PR target/44575
    * config/i386/i386.c (ix86_gimplify_va_arg): When copying
    va_arg from a set of register save slots into a temporary,
    if the container is bigger than type size, do the copying
    using smaller mode or using memcpy.

    Backport from mainline
    2010-09-30  Jakub Jelinek  <jakub@redhat.com>

    * g++.dg/torture/pr45843.C: New test.

    2010-06-21  Jakub Jelinek  <jakub@redhat.com>

    PR target/44575
    * gcc.c-torture/execute/pr44575.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr45843.C
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr44575.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/config/i386/i386.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list