https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71876
--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- I'm unsure, if ECF_LEAF is also unsafe: /* The function does not lead to calls within current function unit. */ #define ECF_LEAF (1 << 10) I couldn't guarantee for that in a freestanding environmnent.