public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/36834]  New: structure return ABI for windows targets differs from nbative MSVC
@ 2008-07-15  9:28 dannysmith at users dot sourceforge dot net
  2008-07-15  9:30 ` [Bug target/36834] " dannysmith at users dot sourceforge dot net
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2008-07-15  9:28 UTC (permalink / raw)
  To: gcc-bugs

Like i386-netware, the native MS Windows compiler assumes that the CALLER pops
the stack for the implicit arguments pointing to aggregate return value.  This
differs from the default i386 ABI which assumes the CALLEE pops the stack.

This is documented at http://www.angelcode.com/dev/callconv/callconv.html in
the section  on __cdecl calling convention.

The bug was reported to mingw users list by Magnus Christensson at:
http://www.nabble.com/Problem-returning-C-struct-from-MinGW-to-MSVC-td18444899.html
This report contains a testcase demostrating the problem.

Danny


-- 
           Summary: structure return ABI for windows targets differs from
                    nbative MSVC
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dannysmith at users dot sourceforge dot net
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32


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


^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <bug-36834-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-02-16 13:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-15  9:28 [Bug target/36834] New: structure return ABI for windows targets differs from nbative MSVC dannysmith at users dot sourceforge dot net
2008-07-15  9:30 ` [Bug target/36834] " dannysmith at users dot sourceforge dot net
2008-07-17  8:16 ` [Bug target/36834] structure return ABI for windows targets differs from native MSVC dannysmith at users dot sourceforge dot net
2008-07-18  9:44 ` mattias at virtutech dot se
2009-03-11 11:35 ` rogerpack2005 at gmail dot com
2009-03-11 12:43 ` mattias at virtutech dot se
2009-03-14 21:14 ` rogerpack2005 at gmail dot com
2009-03-20 17:17 ` mattias at virtutech dot se
2009-03-21  1:04 ` dannysmith at users dot sourceforge dot net
2009-03-21 16:46 ` mattias at virtutech dot se
2009-03-21 21:49 ` mattias at virtutech dot se
2009-03-23 22:10 ` dannysmith at users dot sourceforge dot net
2009-06-24 12:05 ` ktietz at gcc dot gnu dot org
     [not found] <bug-36834-4@http.gcc.gnu.org/bugzilla/>
2010-12-18 10:16 ` ktietz at gcc dot gnu.org
2010-12-18 10:38 ` ktietz at gcc dot gnu.org
2014-02-16 13:13 ` jackie.rosen at hushmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).