[cfe-commits] [PATCH]: -mrtd implementation
Dimitry Andric
dim at FreeBSD.org
Tue Feb 22 10:53:41 PST 2011
On 2011-02-22 19:42, Douglas Gregor wrote:
> On Feb 22, 2011, at 10:34 AM, Roman Divacky wrote:
>> the attached patch implements -mrtd implementation. Ie. changing
>> the default calling convention to stdcall.
> This help text could be more helpful. What's RTD?
The option was called 'rtd', because that was the original m68k
instruction for popping the stack in the callee; see here:
http://gcc.gnu.org/onlinedocs/gcc/M680x0-Options.html#index-mrtd-1516
For x86, it's really just to force the "stdcall" calling convention, but
gcc apparently decided to recycle the already-existing option name.
So the help text could be changed to "Use the stdcall calling convention
for all functions", for example?
That is, unless somebody is secretly working on a m68k backend. ;)
More information about the cfe-commits
mailing list