[Issue 2385] spec says all structs are returned via hidden pointer on linux, but it uses registers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 12 12:30:04 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2385


Tomas Lindquist Olsen <tomas at famolsen.dk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #2 from Tomas Lindquist Olsen <tomas at famolsen.dk>  2009-05-12 12:30:04 PDT ---
the spec now says:

# For Windows, 1, 2 and 4 byte structs are returned in EAX.
# For Windows, 8 byte structs are returned in EDX,EAX, where EDX gets the most
significant half.
# For other struct sizes, the return value is stored through a hidden pointer
passed as an argument to the function.

I don't think just removing the info on linux is a satisfactory fix, the asm is
still the same!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list