`this' pointer vs. return pointer
mendell at ca.ibm.com
mendell at ca.ibm.com
Tue Jan 23 18:14:58 UTC 2001
I believe that the latest C ABI passes the pointer to the struct return
value in r8, so this isn't a problem.
Mark Mendell
Please respond to Mark Mitchell <mark at codesourcery.com>
Sent by: owner-cxx-abi at corp.sgi.com
To: cxx-abi at corp.sgi.com
cc:
Subject: `this' pointer vs. return pointer
Does anyone remember what the resolution was on wehther the `this'
pointer comes before, or after, the pointer to structures returned by
value?
I don't think the document actually *says* at present.
I think the buffer pointer should come first, and the `this' pointer
should come afterwards.
This makes sense because then the rule is:
- As a result of this language being C++, you add a `this' pointer.
- In your back-end, you notice that you've got a return by value,
so you add another parameter.
Doing anything else is going to be next to impossible in GCC, I
suspect.
Thoughts?
--
Mark Mitchell mark at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20010123/69b20596/attachment.html>
More information about the cxx-abi-dev
mailing list