I can't believe this hasn't be fixed already. I'm tired of seeing these six functions reported as warnings while building GCC. Attached patch declares the functions before defining the function.
Your patch has been accepted and is now commited to CVS. You should expect to see it in the next release.