summaryrefslogtreecommitdiff
path: root/gcc/timevar.c
Commit message (Collapse)AuthorAgeFilesLines
* * configure.in: Probe for times, clock, struct tms, and clock_t.zack2001-04-201-73/+87
| | | | | | | | | * configure, config.in: Regenerate. * timevar.c: Replace ifdef forest in get_time with (relatively) straightforward series of checks based on autoconf's probes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41471 138bc75d-0d04-0410-961f-82ee72b054a4
* * print-rtl.c (print_rtx): Cast enums to int for comparison.danglin2001-03-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-decl.c (grokdeclarator): Cast enums to int for comparison and shifts. * c-format.c (C_STD_VER): Cast to int for comparisons. (check_function_format): Cast various enums to int for &. (maybe_read_dollar_number): Likewise. (check_format_info): Likewise. (check_format_info_main): Likewise. * expr.c (emit_move_insn_1): Cast enums to unsigned int for comparison. (safe_from_p): Likewise. * varasm.c (const_hash): Cast enum to int for %. * emit-rtl.c (init_emit_once): Use int loop variable to work around pcc enum problems with < and ++ operators. * regclass.c (init_reg_sets_1): Cast enums for comparison. (choose_hard_reg_mode): Use unsigned int to iterate over CCmodes. (regclass_init): Change enum class to int to iterate over reg_classes. * genrecog.c (merge_trees): Cast enums for comparison. * rtl.h (GET_CODE): Cast to enum rtx_code. (PUT_CODE): Cast to ENUM_BITFIELD(rtx_code). (GET_MODE): Cast to enum machine_mode. (PUT_MODE): Cast to ENUM_BITFIELD(machine_mode). (GET_NOTE_INSN_NAME): Cast enum to int. * tree.h (TREE_CODE): Cast to enum tree_code. (TREE_SET_CODE): Cast VALUE to ENUM_BITFIELD(tree_code). * timevar.c (timevar_print): Change loop variable id from enum to unsigned int. * fixinc/fixincl.c (VLEVEL): Cast enums in comparison to unsigned int. * config/i386/i386.md: Use PUT_MODE for mode assignment. * toplev.c (compile_file): Cast enum DFI to int. (decode_d_option): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40193 138bc75d-0d04-0410-961f-82ee72b054a4
* * timevar.c (timevar_add): Delete.zack2000-09-061-22/+12
| | | | | | | | | (timevar_get): Also count time since the selected timer was last updated. Do not examine the timevar stack if the selected timer is standalone. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36184 138bc75d-0d04-0410-961f-82ee72b054a4
* * flags.h (time_report, mem_report): New global flags.zack2000-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * toplev.c: Define time_report and mem_report. (f_options): Add -ftime-report and -fmem-report. (compile_file): Turn on time_report if quiet_flag is off. Call ggc_print_statistics at very end if mem_report is on. * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag. * ggc-common.c (ggc_print_statistics): Rename to ggc_print_common_statistics; all callers changed. Scale quantities above 10K to kilobytes and above 10M to megabytes. * ggc-page.c (ggc_page_print_statistics): Rename to ggc_print_statistics. Report memory consumed by internal data structures for each allocation bucket. Scale quantities above 10K to kilobytes and above 10M to megabytes. * ggc-simple.c: Prototype debug_ggc_tree to avoid warning. Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning. Define tally_leaves always. (ggc_print_statistics): New function. * ggc.h: Adjust for renamed functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36049 138bc75d-0d04-0410-961f-82ee72b054a4
* * 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