Earlier quoted context omitted.
Doesn't GCC inline assembly actually track that info, with the "clobber" section?
Yes, but it's not a property of the assembly (or assembler), it's a necessity for the compiler to correctly codegen around the inline assembly. Historically, assemblers have been really dumb, so ABI is not a thing they'd track, especially as... I don't think they know what functions are? So while they can notice call/ret, they have no knowledge of a label being a jump or call target per-se, do they? So you'd need an…
It's interesting how blurry the line is between a good, full-featured assembler and a crappy compiler!