+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
poplevel (0, 0, 0);
}
- output_func_start_profiler ();
-
/* Compilation is now finished except for writing
what's left of the symbol table output. */
}
}
+ /* 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. */