summaryrefslogtreecommitdiff
path: root/gcc/timevar.c
Commit message (Collapse)AuthorAgeFilesLines
* * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.hp2000-07-061-0/+7
| | | | | | | [NEED_DECLARATION_GETRUSAGE]: Declare getrusage. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34884 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-decl.c, timevar.c, tlink.c: Include intl.h.zack2000-06-291-0/+1
| | | | | | | * Makefile.in: Update deps. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34785 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-06-28 Philipp Thomas <pthomas@suse.de>pthomas2000-06-281-3/+3
| | | | | | | | | | | | | | | | | | * c-decl.c : Mark strings for translation. (parmlist_tags_warning): Use distinct messages instead of conditional expressions. * diagnostic.c (v_message_with_decl): Mark string for translation. * gcc.c: Mark messages for translation. (display_help): Combine messages into one string where necessary. * mips-tfile.c: Add intl.h. Mark messages for translation. * rtl.c (fatal_with_file_and_line): Modify function for NLS. Mark messages for translation. * timevar.c: Mark messages for translation. * tlink.c: Likewise. * toplev.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34773 138bc75d-0d04-0410-961f-82ee72b054a4
* * timevar.def: Add TV_EXPAND.jason2000-06-091-0/+18
| | | | | | | | | | | | | | | | | * timevar.c (timevar_print): Update timing information. * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining. * stmt.c (expand_return): Check for error_mark_node. cp/: * semantics.c (expand_body): Push to TV_EXPAND. * optimize.c (optimize_function): Push to TV_INTEGRATION. * decl.c (start_function): Always call announce_function. * tinfo2.cc: Just declare abort. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34470 138bc75d-0d04-0410-961f-82ee72b054a4
* Undo my accidental checkin.hubicka2000-05-041-1/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33663 138bc75d-0d04-0410-961f-82ee72b054a4
* * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thesthubicka2000-05-031-0/+1
| | | | | | | whether address may trap. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33627 138bc75d-0d04-0410-961f-82ee72b054a4
* * timevar.c (init_timevar): DeANSIfy function definition.ghazi2000-04-281-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33509 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (timevar.o): Depend on flags.h.samuel2000-04-281-29/+84
| | | | | | | | | | | | | | | | | | | | | | * timevar.c (unused_stack_instances): New variable. (timevar_push): Take a timevar_stack_def from unused_stack_instances if available. (timevar_pop): Push the popped timevar_stack_def onto unused_stack_instances. (TIMEVAR_ENABLE): New macro. (timevar_def): Make standalone a 1-bit field. Add field used. (get_time): Rename parameter to now. Return after clearing it if not TIMEVAR_ENABLE. (init_timevar): Do nothing if not TIMEVAR_ENABLE. (timevar_pop): Likewise. (timevar_stop): Likewise. (timevar_push): Likewise. Mark the timing variable as used. (timevar_start): Likewise. (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print timevars that were never used. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33504 138bc75d-0d04-0410-961f-82ee72b054a4
* hangeLog:samuel2000-04-281-0/+448
* Makefile.in (OBJS): Add timevar.o. (toplev.o): Depend on timevar.h. (ggc-simple.o): Likewise. (ggc-page.o): Likewise. (timevar.o): New rule. (timevar.h): New rule. * timevar.h: New file. * timevar.c: Likewise. * timevar.def: Likewise. * toplev.h (gc_time, parse_time, varconst_time): Remove. * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR throughout. (TIMEVAR): Remove macro. (gc_time, parse_time, varconst_time, integration_time, jump_time, cse_time, gcse_time, loop_time, cse2_time, branch_prob_time, flow_time, combine_time, regmove_time, sched_time, local_alloc_time, global_alloc_time, flow2_time, peephole2_time, sched2_time, dbr_sched_time, reorder_blocks_time, rename_registers_time, shorten_branch_time, stack_reg_time, to_ssa_time, from_ssa_time, final_time, symout_time, dump_time, all_time): Remove. (compile_file): Don't initialize time variables. Call init_timevar and start TV_TOTAL timer. Call timevar_print instead of many calls to print_time. (rest_of_compilation): Add timing for reload_cse_regs. (get_run_time): Removed to timevar.c. (print_time): Likewise. (get_run_time): Implement using TV_TOTAL time variable. (print_time): Get total run time from get_run_time. * ggc-page.c (ggc_collect): Push and pop TV_GC instead of computing elapsed time explicitly. * ggc-simple.c (ggc_collect): Likewise. (gc_time): Remove declaration. cp/ChangeLog: * lex.c (my_get_run_time): Remove. (init_filename_times): Use get_run_time instead of my_get_run_time. (check_newline): Likewise. (dump_time_statistics): Likewise. * decl2.c (finish_file): Push and pop timevar TV_VARCONST instead of computing elapsed time explicitly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33496 138bc75d-0d04-0410-961f-82ee72b054a4