Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The tale of -mrtd in GCC and Clang

2 views
Skip to first unread message

John Paul Adrian Glaubitz

unread,
May 7, 2023, 5:10:04 AM5/7/23
to
Good Morning!

While working on the RTD issue in the M68k backend in LLVM, Min dug a bit into
the hisstory of the "-mrtd" flag in GCC and Clang and turns out it's actually
much more interesting than we first thought.

See: https://m680x0.github.io/blog/2023/05/the-tale-of-mrtd.html

Adrian

--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Richard Z

unread,
May 10, 2023, 11:00:05 AM5/10/23
to
Hi,

very interesting. Somewhere deep in my memory I have the idea that the mrtd option or rtd instruction was designed for Modula 2 which was modern at that time. It was probably pretty useless for a classical K&R c compiler that didn't even understand prototypes until 1989 or so... I assume GCC -mrtd predated c prototypes.

Richard
0 new messages