Bug ID: 92769
Summary: No way to set CR0[SO] on function return
Assignee: unassigned at gcc dot gnu.org
Target Milestone: ---
Linux system calls and Linux VDSO calls require the error status to be
reflected through SO bit of CR0 register on function return.
There is no way to do that from C functions. This requires to add Assembly
trampoline functions just for that, with all associated drawbacks (adding a
stack frame to save LR, etc ...)
Would it be possible to add to builtin-functions which would set/clear SO on
function return ?