[cfe-commits] [PATCH]: -mrtd implementation

Douglas Gregor dgregor at apple.com
Tue Feb 22 10:54:26 PST 2011


On Feb 22, 2011, at 10:53 AM, Dimitry Andric wrote:

> 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 works for me!

> That is, unless somebody is secretly working on a m68k backend. ;)


:)

	- Doug



More information about the cfe-commits mailing list