mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Fix -mprofiler-epilogue on i386. This should be extended to other
architectures in future. Submitted by: bde
This commit is contained in:
parent
21d20e72de
commit
973e839bed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124160
@ -19,6 +19,8 @@ along with GCC; see the file COPYING. If not, write to the Free
|
||||
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA. */
|
||||
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/* This file handles the generation of rtl code from tree structure
|
||||
at the level of the function as a whole.
|
||||
It creates the rtl expressions for parameters and auto variables
|
||||
@ -6995,6 +6997,19 @@ expand_function_end (filename, line, end_bindings)
|
||||
Pmode);
|
||||
}
|
||||
|
||||
if (current_function_profile && TARGET_PROFILER_EPILOGUE)
|
||||
{
|
||||
static rtx mexitcount_libfunc;
|
||||
static int initialized;
|
||||
|
||||
if (!initialized)
|
||||
{
|
||||
mexitcount_libfunc = init_one_libfunc (".mexitcount");
|
||||
initialized = 1;
|
||||
}
|
||||
emit_library_call (mexitcount_libfunc, LCT_NORMAL, VOIDmode, 0);
|
||||
}
|
||||
|
||||
/* Let except.c know where it should emit the call to unregister
|
||||
the function context for sjlj exceptions. */
|
||||
if (flag_exceptions && USING_SJLJ_EXCEPTIONS)
|
||||
|
Loading…
Reference in New Issue
Block a user