This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libffi/45677] Bad stack allocation for ffi function calls on x86-64
- From: "dwitte at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2010 21:01:55 -0000
- Subject: [Bug libffi/45677] Bad stack allocation for ffi function calls on x86-64
- References: <bug-45677-16100@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from dwitte at gmail dot com 2010-09-15 21:01 -------
Created an attachment (id=21806)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21806&action=view)
testcase
Here you go. This passes at -O0 but fails at -O2. Note that the testcase
requires >= 7 args to the test function, to force the last arg to spill onto
the stack; also an inner (non-inlined) function call, to force that single
stack arg to be zero-extended to word size and overwrite the flags.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45677