rts: extend GCC function attributes usage
Some functions in the RTS are marked with appropriate GCC function attributes which may affect code generation, but also (more importantly) static analysis.
Some more attributes could be added though. Is there any interest in having these? If so, I can work on a patch.