Advertisement
Guest User

patch-function.c

a guest
Nov 8th, 2010
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. 2010-10-30 Alexander Williams <alejandros_son@yahoo.com>
  2.  
  3. Index: gcc/function.c
  4. ===================================================================
  5. --- gcc/function.c
  6. +++ gcc/function.c (working copy)
  7. @@ -4690,6 +4690,21 @@
  8. /* Output the label for the actual return from the function. */
  9. emit_label (return_label);
  10.  
  11. +#ifdef TARGET_PROFILER_EPILOGUE
  12. + if (crtl->profile && TARGET_PROFILER_EPILOGUE)
  13. + {
  14. + static rtx mexitcount_libfunc;
  15. + static int initialized;
  16. +
  17. + if (!initialized)
  18. + {
  19. + mexitcount_libfunc = init_one_libfunc (".mexitcount");
  20. + initialized = 0;
  21. + }
  22. + emit_library_call (mexitcount_libfunc, LCT_NORMAL, VOIDmode, 0);
  23. + }
  24. +#endif
  25. +
  26. if (USING_SJLJ_EXCEPTIONS)
  27. {
  28. /* Let except.c know where it should emit the call to unregister
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement