save and restore TOC in function calls