Commit d1271ded by J"orn Rennecke Committed by Joern Rennecke

profile.c (output_func_start_profiler): Clear flag_inline_functions for the…

profile.c (output_func_start_profiler): Clear flag_inline_functions for the duration of the call to rest_of_compilation.

	* profile.c (output_func_start_profiler): Clear flag_inline_functions
	for the duration of the call to rest_of_compilation.

From-SVN: r16246
parent c0498f43
Fri Oct 31 00:16:55 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* profile.c (output_func_start_profiler): Clear flag_inline_functions
for the duration of the call to rest_of_compilation.
Thu Oct 30 14:40:10 1997 Doug Evans <devans@canuck.cygnus.com>
* configure.in (sparc-*-elf*): Use sparc/elf.h, sparc/t-elf.
......
......@@ -1584,6 +1584,7 @@ output_func_start_profiler ()
char *name, *cfnname;
rtx table_address;
enum machine_mode mode = mode_for_size (LONG_TYPE_SIZE, MODE_INT, 0);
int save_flag_inline_functions = flag_inline_functions;
/* It's either already been output, or we don't need it because we're
not doing profile-arcs. */
......@@ -1628,7 +1629,17 @@ output_func_start_profiler ()
expand_function_end (input_filename, lineno, 0);
poplevel (1, 0, 1);
/* Since fndecl isn't in the list of globals, it would never be emitted
when it's considered to be 'safe' for inlining, so turn off
flag_inline_functions. */
flag_inline_functions = 0;
rest_of_compilation (fndecl);
/* Reset flag_inline_functions to its original value. */
flag_inline_functions = save_flag_inline_functions;
fflush (asm_out_file);
current_function_decl = NULL_TREE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment