public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/64384] New: mingw-w64: stdcall function returning an aggregate is incompatible with MS ABI
@ 2014-12-23 13:39 mity at morous dot org
  2014-12-23 13:55 ` [Bug target/64384] " jacek at codeweavers dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mity at morous dot org @ 2014-12-23 13:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64384

            Bug ID: 64384
           Summary: mingw-w64: stdcall function returning an aggregate is
                    incompatible with MS ABI
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mity at morous dot org

When using COM interface (i.e. calling stdcall function/method), aggregates are
returned through an implicit parameter after the this/interface pointer,
according to MS ABI. However it is not so when using gcc.

This issue manifests itself when e.g. calling ID2D1RenderTarget::GetSize() from
<d2d1.h> as discussed here:

https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/?style=threaded&viewmonth=201412&viewday=23


Wine team encountered the issue too, they seem to "solve" the issue on their
side by ugly hacks and changing prototypes of the relevant functions for now:

https://www.winehq.org/pipermail/wine-patches/2014-September/134351.html


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-28 10:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-23 13:39 [Bug target/64384] New: mingw-w64: stdcall function returning an aggregate is incompatible with MS ABI mity at morous dot org
2014-12-23 13:55 ` [Bug target/64384] " jacek at codeweavers dot com
2014-12-23 14:42 ` ktietz at gcc dot gnu.org
2014-12-30 23:09 ` daniel.c.klauer at web dot de
2014-12-30 23:45 ` mity at morous dot org
2014-12-31 16:25 ` daniel.c.klauer at web dot de
2020-06-15  2:20 ` mizvekov at gmail dot com
2022-12-28  9:50 ` alvinhochun at gmail dot com
2022-12-28 10:02 ` alvinhochun at gmail 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).