Sujet : Re: Calling conventions (particularly 32-bit ARM)
De : tkoenig (at) *nospam* netcologne.de (Thomas Koenig)
Groupes : comp.archDate : 09. Jan 2025, 11:07:36
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlo758$3a54k$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : slrn/1.0.3 (Linux)
Anton Ertl <
anton@mips.complang.tuwien.ac.at> schrieb:
That would mean that you find it ok that existing programs that use
vararg functions like printf but do not declare them before use don't
work on your newfangled architecture.
Interestingly, tail call optimization (which I believe you like)
can cause bugs with mismatched arguments when different functions
disagree abuout the stack size. Here is a nasty case with sibling
calls:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90329So, if you want to allow mismatched declarations, better
disable tail calls, to be on the safe side.