]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/45843 (__builtin_va_arg overwrites into adjacent stack location)
authorJakub Jelinek <jakub@redhat.com>
Thu, 30 Sep 2010 20:21:28 +0000 (22:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 30 Sep 2010 20:21:28 +0000 (22:21 +0200)
commit45c13d4cec5c33c3971a42d673503e93c2fbb424
tree86af552168cf72dd7edf9f4c4c6f9ecd2893d26c
parent03d79dc39456d034c9b789d520c4f6161b0ecde6
re PR target/45843 (__builtin_va_arg overwrites into adjacent stack location)

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

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

From-SVN: r164766
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr45843.C [new file with mode: 0644]