toplev.c (compile_file): Move call to output_func_start_profiler to after the loop to emit deferred...

* toplev.c (compile_file): Move call to output_func_start_profiler
        to after the loop to emit deferred functions.

From-SVN: r24567
This commit is contained in:
Jeffrey A Law 1999-01-08 00:46:25 +00:00 committed by Jeff Law
parent 621f5a0fd8
commit 2668793e69
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Fri Jan 8 01:43:53 1999 Jeffrey A Law (law@cygnus.com)
* toplev.c (compile_file): Move call to output_func_start_profiler
to after the loop to emit deferred functions.
Thu Jan 7 11:26:17 1999 Mark Mitchell <mark@markmitchell.com>
* calls.c (store_unaligned_arguments_into_pseudos): Use xmalloc to

View File

@ -2907,8 +2907,6 @@ compile_file (name)
poplevel (0, 0, 0);
}
output_func_start_profiler ();
/* Compilation is now finished except for writing
what's left of the symbol table output. */
@ -3014,6 +3012,15 @@ compile_file (name)
}
}
/* This must occur after the loop to output deferred functions. Else
the profiler initializer would not be emitted if all the functions
in this compilation unit were deferred.
output_func_start_profiler can not cause any additional functions or
data to need to be output, so it need not be in the deferred function
loop above. */
output_func_start_profiler ();
/* Now that all possible functions have been output, we can dump
the exception table. */