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 target/44575] [4.5/4.6 Regression] __builtin_va_arg overwrites into adjacent stack location



------- Comment #4 from jakub at gcc dot gnu dot org  2010-06-21 16:34 -------
Subject: Bug 44575

Author: jakub
Date: Mon Jun 21 16:33:49 2010
New Revision: 161097

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161097
Log:
        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.

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

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr44575.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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