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]

Re: c++/8706: gcc cannot generate __cdel functions that can be called by Visual C if that function returns >8 byte strucutres by value


Synopsis: gcc cannot generate __cdel functions that can be called by Visual C if that function returns >8 byte strucutres by value

Responsible-Changed-From-To: unassigned->cgf
Responsible-Changed-By: cgf
Responsible-Changed-When: Wed Nov 27 21:24:26 2002
Responsible-Changed-Why:
    investigated the problem
State-Changed-From-To: open->feedback
State-Changed-By: cgf
State-Changed-When: Wed Nov 27 21:24:26 2002
State-Changed-Why:
    I don't see any obvious evidence of stack corruption in the assembly that you produced.  It seems like gcc and msvc produce the same structure layout and return the address of the structure in the EAX register.
    
    I tried compiling your test case with one function in MSVC and another in gcc and the structure was always correctly initialized and reported.
    
    So, unless you can provide further details, I will close this PR.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8706


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