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 libffi/45677] Bad stack allocation for ffi function calls on x86-64



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


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