Stealing ideas from the latest GCC release