Michael Karcher wine@mkarcher.dialup.fu-berlin.de writes:
OK. Thanks for the pointer. I have a configure test ready that checks whether the global -fno-builtin is really needed., and uses separate flags otherwise. I am planning to submit it in series with a second patch that checks for whether -fno-builtin-scanf is needed (check for warning on "%P").
I don't think there's any reason to make it that complex. You can just use -fno-builtin in all cases.