This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/55940] Incorrect code for accessing parameters with 32-bit Intel hosts
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Jan 2013 11:23:02 +0000
- Subject: [Bug target/55940] Incorrect code for accessing parameters with 32-bit Intel hosts
- Auto-submitted: auto-generated
- References: <bug-55940-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-11 11:23:02 UTC ---
Your assumptions are wrong according to documentation:
@item cdecl
@cindex functions that do pop the argument stack on the 386
@opindex mrtd
On the Intel 386, the @code{cdecl} attribute causes the compiler to
assume that the calling function pops off the stack space used to
pass arguments. This is
useful to override the effects of the @option{-mrtd} switch.
which doesn't say that all arguments will be passed on the stack.