1. 21 Dec, 2003 1 commit
    • alias.c: Fix comment formatting. · 6614fd40
      	* alias.c: Fix comment formatting.
      	* alloc-pool.c: Likewise.
      	* bitmap.c: Likewise.
      	* bitmap.h: Likewise.
      	* bt-load.c: Likewise.
      	* c-common.c: Likewise.
      	* c-common.h: Likewise.
      	* c-decl.c: Likewise.
      	* c-opts.c: Likewise.
      	* c-pretty-print.c: Likewise.
      	* caller-save.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cgraph.c: Likewise.
      	* collect2.c: Likewise.
      	* cppfiles.c: Likewise.
      	* cpplib.h: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* final.c: Likewise.
      	* function.c: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genemit.c: Likewise.
      	* ggc.h: Likewise.
      	* haifa-sched.c: Likewise.
      	* ifcvt.c: Likewise.
      	* libgcc2.h: Likewise.
      	* loop.c: Likewise.
      	* predict.h: Likewise.
      	* unwind-libunwind.c: Likewise.
      	* varasm.c: Likewise.
      
      From-SVN: r74907
      Kazu Hirata committed
  2. 27 Aug, 2003 1 commit
  3. 22 Aug, 2003 1 commit
    • c-decl.c: Fix comment formatting. · beb235f8
      	* c-decl.c: Fix comment formatting.
      	* cfgrtl.c: Likewise.
      	* combine.c: Likewise.
      	* convert.c: Likewise.
      	* dominance.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* expmed.c: Likewise.
      	* fold-const.c: Likewise.
      	* gcov.c: Likewise.
      	* genattrtab.c: Likewise.
      	* ggc-common.c: Likewise.
      	* mips-tfile.c: Likewise.
      	* regmove.c: Likewise.
      
      From-SVN: r70677
      Kazu Hirata committed
  4. 19 Jul, 2003 1 commit
    • alias.c [...]: Remove unnecessary casts. · 703ad42b
      	* alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
      	c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
      	c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
      	collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
      	cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
      	cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
      	dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
      	fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
      	gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
      	genemit.c genextract.c genoutput.c genrecog.c gensupport.c
      	ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
      	integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
      	loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
      	postreload.c prefix.c print-tree.c protoize.c ra-build.c
      	ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
      	regmove.c regrename.c reload.c reload1.c reorg.c resource.c
      	sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
      	simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
      	tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
      	varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
      	casts.
      
      From-SVN: r69587
      Kaveh R. Ghazi committed
  5. 10 Jul, 2003 1 commit
    • gcov-io.h: Update documentation. · 330d2e2a
      	* gcov-io.h: Update documentation.
      	(GCOV_UNSIGNED2STRING): New.
      	(GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
      	GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
      	GCOV_TAG_SUMMARY_LENGTH): Adjust.
      	(GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
      	GCOV_TAG_COUNTER_NUM): New.
      	(GCOV_BLOCK_SIZE): Number of words.
      	(gcov_var): Adjust buffer type.
      	* gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
      	(gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
      	count, not byte count.
      	(gcov_open): Adjust overread init.
      	(gcov_allocate, gcov_write_unsigned, gcov_write_counter,
      	gcov_write_string, gcov_write_tag, gcov_write_length,
      	gcov_write_tag_length): Adjust.
      	(gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
      	(gcov_sync, gcov_seek): Adjust.
      	* gcov-dump.c (print_usage): Show gcc version only.
      	(dump_file): Use GCOV_UNSIGNED2STRING.
      	(tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
      	* gcov.c (print_version): Show gcc version only.
      	(read_graph_file): Use GCOV_UNSIGNED2STRING. Use
      	GCOV_TAG_*_NUM macros.
      	(read_count_file): Use GCOV_UNSIGNED2STRING. Use
      	GCOV_TAG_COUNTER_LENGTH.
      	* coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
      	Use GCOV_TAG_COUNTER_NUM.
      	* libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
      	(__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
      
      From-SVN: r69188
      Nathan Sidwell committed
  6. 09 Jul, 2003 1 commit
    • gcov-io.h: Update documentation. · 160e2e4f
      	* gcov-io.h: Update documentation.
      	(GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
      	GCOV_NOTE_MAGIC.
      	(GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
      	(GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
      	(struct gcov_var): Change buffer's type. Add endian flag.
      	(gcov_open): Remove mode in libgcov.
      	(gcov_magic): Prototype.
      	* gcov-io.c (from_file): New.
      	(gcov_open): Clear endian flag.
      	(gcov_magic): New.
      	(gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
      	pointers.
      	(gcov_write_unsigned, gcov_write_counter, gcov_write_string,
      	gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
      	(gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
      	* gcov-iov.c (main): Correct cast.
      	* coverage.c (read_counts_file): Use gcov_magic. Remove endianness
      	conversion.
      	(gcov_begin_output): Use GCOV_NOTE_MAGIC.
      	(coverage_init): Use GCOV_NOTE_SUFFIX.
      	* libgcov.c (gcov_version_mismatch): Remove endianness conversion.
      	Rename to gcov_version, and return flag.
      	(gcov_exit): Use gcov_version.
      	(__gcov_init): Use gcov_version.
      	* Makefile.in (coverageexts): Update.
      	* gcov.c (print_version): Remove endianness conversion.
      	(create_file_names): Use GCOV_NOTE_SUFFIX.
      	(read_graph_file): Use gcov_magic.
      	(read_count_file): Likewise.
      	* gcov-dump.c (dump_file): Remove endianness conversion, use
      	gcov_magic.
      
      From-SVN: r69137
      Nathan Sidwell committed
  7. 06 Jul, 2003 2 commits
    • basic-block.h: Convert prototypes to ISO C90. · f55ade6e
      	* basic-block.h: Convert prototypes to ISO C90.
      	* c-parse.in: Likewise.
      	* c-pragma.h: Likewise.
      	* c-typeck.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cfgloopanal.c: Likewise.
      	* dbxout.h: Likewise.
      	* debug.h: Likewise.
      	* dwarf2asm.h: Likewise.
      	* gcov.c: Likewise.
      	* gengtype-lex.l: Likewise.
      	* sched-int.h: Likewise.
      	* timevar.c: Likewise.
      
      From-SVN: r69010
      Andreas Jaeger committed
    • gcov-io.h: Add a local time stamp. · dd486eb2
      	* gcov-io.h: Add a local time stamp.
      	(struct gcov_info): Add stamp field.
      	(gcov_truncate): New.
      	* coverage.c (read_counts_file): Skip the stamp.
      	(coverage_begin_output): Write the stamp.
      	(build_gcov_info): Declare and init the stamp.
      	(coverage_finish): Only unlink data file, if stamp is zero.
      	* gcov-dump.c (dump_file): Dump the stamp.
      	* gcov.c (bbg_stamp): New.
      	(release_structures): Clear bbg_stamp.
      	(read_graph_file): Read stamp.
      	(read_count_file): Check stamp.
      	* libgcov.c (gcov_exit): Check stamp and truncate if needed.
      
      From-SVN: r69006
      Nathan Sidwell committed
  8. 01 Jul, 2003 1 commit
    • basic-block.h: Fix comment typos. · e0bb17a8
      	* basic-block.h: Fix comment typos.
      	* bb-reorder.c: Likewise.
      	* c-format.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* cgraph.h: Likewise.
      	* cgraphunit.c: Likewise.
      	* combine.c: Likewise.
      	* convert.c: Likewise.
      	* dbxout.c: Likewise.
      	* df.c: Likewise.
      	* df.h: Likewise.
      	* diagnostic.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* et-forest.h: Likewise.
      	* flow.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.h: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genautomata.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* loop-unswitch.c: Likewise.
      	* loop.c: Likewise.
      	* mips-tfile.c: Likewise.
      	* optabs.c: Likewise.
      	* ra-build.c: Likewise.
      	* ra-colorize.c: Likewise.
      	* ra-rewrite.c: Likewise.
      	* ra.h: Likewise.
      	* regmove.c: Likewise.
      	* reload.c: Likewise.
      	* rtlanal.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-int.h: Likewise.
      	* sched-vis.c: Likewise.
      	* sreal.c: Likewise.
      	* ssa-ccp.c: Likewise.
      	* ssa.c: Likewise.
      	* toplev.c: Likewise.
      	* tree-inline.c: Likewise.
      	* value-prof.c: Likewise.
      	* value-prof.h: Likewise.
      
      From-SVN: r68770
      Kazu Hirata committed
  9. 29 Jun, 2003 1 commit
    • alloc-pool.c: Fix comment formatting. · f9da5064
      	* alloc-pool.c: Fix comment formatting.
      	* bitmap.c: Likewise.
      	* bitmap.h: Likewise.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* caller-save.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* collect2.c: Likewise.
      	* cse.c: Likewise.
      	* df.c: Likewise.
      	* diagnostic.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* expmed.c: Likewise.
      	* final.c: Likewise.
      	* flags.h: Likewise.
      	* fold-const.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* libgcov.c: Likewise.
      	* mips-tfile.c: Likewise.
      	* optabs.c: Likewise.
      	* prefix.c: Likewise.
      	* rtlanal.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* toplev.c: Likewise.
      	* varasm.c: Likewise.
      	* vmsdbgout.c: Likewise.
      
      From-SVN: r68672
      Kazu Hirata committed
  10. 23 Jun, 2003 1 commit
    • basic-block.h: Fix comment formatting. · 71c0e7fc
      	* basic-block.h: Fix comment formatting.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* c-common.c: Likewise.
      	* c-common.h: Likewise.
      	* c-format.c: Likewise.
      	* coverage.c: Likewise.
      	* cpplib.h: Likewise.
      	* cpppch.c: Likewise.
      	* dbxout.c: Likewise.
      	* diagnostic.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* expr.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* profile.c: Likewise.
      	* real.h: Likewise.
      	* sched-deps.c: Likewise.
      
      From-SVN: r68369
      Kazu Hirata committed
  11. 12 Jun, 2003 1 commit
    • ChangeLog: Follow spelling conventions. · 6356f892
      	* ChangeLog: Follow spelling conventions.
      	* ChangeLog.2: Likewise.
      	* c-decl.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cgraph.c: Likewise.
      	* coverage.c: Likewise.
      	* cppcharset.c: Likewise.
      	* cpphash.h: Likewise.
      	* cpplex.c: Likewise.
      	* cpplib.c: Likewise.
      	* dbxout.c: Likewise.
      	* df.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* explow.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gengtype.c: Likewise.
      	* ggc.h: Likewise.
      	* opts.c: Likewise.
      	* real.c: Likewise.
      	* reload.c: Likewise.
      	* stmt.c: Likewise.
      
      From-SVN: r67849
      Kazu Hirata committed
  12. 29 May, 2003 1 commit
    • re PR bootstrap/10169 (Bootstrap fails on mainline with Tru64 5.1B) · d90f9882
      	PR bootstrap/10169
      	* mips-tfile.c (main): Use getopt_long instead of getopt.
      	Add new command line option --version to display version.
      	Treat --verbose like -v to report a single line version.
      	(options): New global variable for getopt_long.
      	* mips-tdump.c (main): Use getopt_long instead of getopt.
      	New command line options -v, --version and -verbose to display
      	the program version number (to match mips-tfile's behavior).
      	(options): New global variable for getopt_long.
      
      	* gcov.c (options): Zero-terminate getopt_long array.
      	* gcov-dump.c (options): Likewise.
      
      	* Makefile.in (mips-tdump.o): Add dependency on version.h.
      
      Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
      
      From-SVN: r67230
      Roger Sayle committed
  13. 17 May, 2003 1 commit
    • builtins.c (validate_arglist): Eliminate libiberty VA_ macros, always use stdarg. · e34d07f2
      gcc:
      	* builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
      	always use stdarg.
      	* c-errors.c (pedwarn_c99): Likewise.
      	* c-format.c (status_warning): Likewise.
      	* c-semantics.c (build_stmt): Likewise.
      	* calls.c (emit_library_call, emit_library_call_value): Likewise.
      	* collect2.c (notice, fatal_perror, fatal, error): Likewise.
      	* cpperror.c (cpp_error, cpp_error_with_line): Likewise.
      	* diagnostic.c (build_message_string, output_printf,
      	output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
      	fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
      	error_with_decl, fnotice): Likewise.
      	* dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
      	dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
      	dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
      	dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
      	dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
      	dw2_asm_output_encoded_addr_rtx): Likewise.
      	* emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
      	* errors.c (warning, error, fatal, internal_error): Likewise.
      	* final.c (output_operand_lossage, asm_fprintf): Likewise.
      	* fix-header.c (fatal): Likewise.
      	* gcc.c (fatal, error, notice): Likewise.
      	* gcov.c (fnotice): Likewise.
      	* genattrtab.c (attr_rtx, attr_printf): Likewise.
      	* gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
      	* gensupport.c (message_with_line): Likewise.
      	* mips-tfile.c (fatal, error): Likewise.
      	* protoize.c (notice): Likewise.
      	* ra-debug.c (ra_debug_msg): Likewise.
      	* read-rtl.c (fatal_with_file_and_line): Likewise.
      	* rtl-error.c (error_for_asm, warning_for_asm): Likewise.
      	* tree.c (build, build_nt, build_function_type_list): Likewise.
      
      cp:
      	* error.c (cp_error_at, cp_warning_at, cp_pedwarn_at): Eliminate
      	libiberty VA_ macros, always use stdarg.
      	* rtti.c (create_pseudo_type_info): Likewise.
      	* tree.c (build_min_nt, build_min): Likewise.
      
      From-SVN: r66919
      Kaveh R. Ghazi committed
  14. 14 May, 2003 1 commit
    • gcov-io.h (gcov_write_bytes, [...]): Remove here. · 7d63a2fa
      	* gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
      	(GCOV_TAG_*) Force type to gcov_unsigned_t.
      	(GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
      	(struct gcov_var): Remove modified. Add start, length, offset,
      	overread. Have buffer array for libgcov.
      	(gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
      	(gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
      	* gcov-io.c (gcov_open): Set mode, do not read anything.
      	(gcov_close): Write final block.
      	 (gcov_write_block, gcov_allocate): New.
      	(gcov_write_bytes): Make static. Write or allocate buffer.
      	(gcov_write_unsigned, gcov_write_counter): Buffer can never be
      	null.
      	(gcov_write_string): Adjust.
      	(gcov_write_tag)
      	(gcov_write_length): Adjust. Flush the block.
      	(gcov_write_tag_length): Buffer can never be null.
      	(gcov_read_bytes): Make static. Read in block.
      	(gcov_sync): Moved here. Adjust.
      	(gcov_seek): Moved here. Adjust.
      	* coverage.c (read_counts_file): Adjust.
      	* gcov-dump.c (print_prefix): Add position parameter.
      	(flag_dump_positions): New flag.
      	(options, main, print_usage): Add it.
      	(dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
      	tag_summary): Adjust.
      	* gcov.c (read_graph_file, read_count_file): Adjust.
      	* libgcov.c (gcov_exit): Adjust.
      
      From-SVN: r66805
      Nathan Sidwell committed
  15. 07 May, 2003 1 commit
    • gcov-io.h (GCOV_LOCKED): New #define. · 474f141e
      	* gcov-io.h (GCOV_LOCKED): New #define.
      	(GCOV_LINKAGE): Make sure it is #defined.
      	(gcov_write_string, gcov_write_tag, gcov_write_length,
      	gcov_read_string, gcov_time): Poison in libgcov.
      	(gcov_seek_end): Remove.
      	(gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
      	(GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
      	GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
      	GCOV_TAG_SUMMARY_LENGTH): New #defines.
      	(gcov_write_tag, gcov_write_length): Not in libgcov.
      	* gcov-io.c (gcov_open): Use GCOV_LOCKED.
      	(gcov_write_tag, gcov_write_length): Not in libgcov.
      	(gcov_write_tag_length): New.
      	(gcov_write_summary): Use gcov_write_tag_length.
      	* libgcov.c: Always #include gcov-io.h.
      	(IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
      	(GCOV_LINKAGE): Define to nothing for L_gcov.
      	(gcov_exit): Replace gcov_write_tag, gcov_write_length with
      	gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
      	* gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
      	(read_count_file): Likewise.
      	* gcov-dump.c (dump_file): Likewise.
      	* coverag.c (read_counts_file): Likewise.
      
      From-SVN: r66555
      Nathan Sidwell committed
  16. 24 Apr, 2003 1 commit
    • New GCOV_TAG_FUNCTION layout · 796621e8
      	New GCOV_TAG_FUNCTION layout
      	* coverage.c (struct function_list): Replace name with ident.
      	(struct counts_entry): Likewise.
      	(fn_ident): New.
      	(htab_counts_entry_hash, htab_counts_entry_eq,
      	htab_counts_entry_del): Adjust.
      	(reads_count_file, get_coverage_counts,
      	coverage_begin_output, coverage_end_function): Adjust.
      	(build_fn_info_type, build_fn_info_value): Likewise.
      	* gcov-dump.c (tag_function): Adjust.
      	* gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
      	* gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
      	* gcov.c (struct function_info): Add ident.
      	(read_graph_file, read_count_file): Adjust.
      	* libgcov.c (gcov_exit): Adjust.
      
      From-SVN: r66035
      Nathan Sidwell committed
  17. 23 Apr, 2003 1 commit
    • Makefile.in (LIBGCC_DEPS): Add gcov headers. · cdb23767
      	* Makefile.in (LIBGCC_DEPS): Add gcov headers.
      	(libgcov.a): Depends on LIBGCC_DEPS.
      	* basic-block.h (profile_info): Moved here from coverage.h. Made
      	a pointer.
      	* coverage.c (struct function_list): Fixed array of counter types.
      	(struct counts_entry): Keyed by counter type, contains summary.
      	(profile_info): Moved to profile.c.
      	(prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
      	vars.
      	(profiler_label): Remove.
      	(ctr_labels): New.
      	(set_purpose, label_for_tag, build_counter_section_fields,
      	build_counter_section_value, build_counter_section_data_fields,
      	build_counter_section_data_values, build_function_info_fields,
      	build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
      	(build_fn_info_type, build_fn_info_value, build_ctr_info_type,
      	build_ctr_info_value, build_gcov_info): New.
      	(htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
      	(reads_counts_file): Adjust.
      	(get_coverage_counts): Takes counter number. Add summary
      	parameter. Adjust.
      	(coverage_counter_ref): Tkaes counter number. Adjust. Lazily
      	create counter array labels.
      	(coverage_end_function): Adjust.
      	(create_coverage): Adjust.
      	(find_counters_section): Remove.
      	* coverage.h (MAX_COUNTER_SECTIONS): Remove.
      	(struct section_info, struct profile_info): Remove.
      	(profile_info): Moved to basic-block.h.
      	(coverage_counter_ref): Takes a counter number.
      	(get_coverage_counts): Takes a counter number. Added summary
      	parameter.
      	(find_counters_section): Remove.
      	* gcov-dump.c (tag_arc_counts): Rename to ...
      	(tag_counters): ... here. Adjust.
      	(tag_table): Move tag_counters to 3rd entry. Remove
      	PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
      	(dump_file): Check for counter tag values here.
      	(tag_summary): Adjust.
      	* gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
      	* gcov-io.h (GCOV_LOCKED): New.
      	(GCOV_TAG_ARC_COUNTS): Rename to ...
      	(GCOV_TAG_COUNTS_BASE): ... here.
      	(GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
      	Remove.
      	(GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
      	(GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
      	GCOV_TAG_IS_COUNTER): New.
      	(struct gcov_ctr_summary): New.
      	(struct gcov_summary): Adjust.
      	(struct gcov_counter_section): Remove.
      	struct gcov_counter_section_data): Remove.
      	(struct gcov_function_info): Rename to ...
      	(struct gcov_fn_info): ... here. Adjust.
      	(struct gcov_ctr_info): New.
      	(struct gcov_info): Adjust.
      	* gcov.c (read_count_file): Adjust.
      	(output_lines): Adjust.
      	* libgcov.c (gcov_exit): Adjust.
      	(__gcov_flush): Adjust.
      	* mklibgcc.in (libgcc2_c_dep): Add gcov headers.
      	* predict.c (maybe_hot_bb_p, probably_cold_bb_p,
      	probably_never_executed_bb_p, compute_frequency_function): Adjust
      	profile_info use.
      	* profile.c (struct counts_entry): Remove.
      	(profile_info): Define here.
      	(get_exec_counts): Adjust get_coverage_counts call.
      	(compute_branch_probablilities): Remove find_counters_section
      	call.
      	(gen_edge_profiler): Adjust coverage_counter_ref call.
      	* tracer.c (tail_duplicate): Adjust profile_info use.
      
      From-SVN: r65990
      Nathan Sidwell committed
  18. 21 Apr, 2003 1 commit
  19. 20 Apr, 2003 1 commit
    • cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens. · 299f79b5
      .:	* cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
      	* gcov.c (output_lines): Don't be so fussy about going past EOF.
      cp:
      	* cp/decl2.c (start_static_storage_duration_function): Take count
      	arg, don't check if it wraps round.
      	(generate_ctor_or_dtor_function): Add locus arg, use it.
      	(generate_ctor_and_dtor_functions_for_priority): Data arg is a
      	locus.
      	(finish_file): Set line numbers to past EOF for synthesized
      	functions.
      
      From-SVN: r65847
      Nathan Sidwell committed
  20. 11 Apr, 2003 1 commit
    • Makefile.in (loop-init.o): Do not depend on gcov-io.h, gcov-iov.h. · 94de45d9
      	* Makefile.in (loop-init.o): Do not depend on gcov-io.h,
      	gcov-iov.h.
      
      	Simplify interface to gcov reading and writing.
      	* gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
      	gcov_alloc, gcov_modified, gcov_errored): Move into ...
      	(struct gcov_var gcov_var): ... this static structure.
      	(gcov_write_unsigned, gcov_write_counter, gcov_write_string):
      	Return void.
      	(gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
      	read object.
      	(gcov_read_bytes, gcov_write_bytes): Set error flag on error.
      	(gcov_reserve_length): Remove.
      	(gcov_write_tag): New.
      	(gcov_write_length): Adjust.
      	(gcov_read_summary, gcov_write_summary): Adjust.
      	(gcov_eof, gcov_ok): Rename to ...
      	(gcov_is_eof, gcov_is_error): ... here. Return error code.
      	(gcov_save_position, gcov_resync): Rename to ...
      	(gcov_position, gcov_seek): ... here.
      	(gcov_skip, gcov_skip_string): Remove.
      	(gcov_error): Remove.
      	(gcov_open, gcov_close): Adjust.
      	* gcov.c (find_source): Take const char *, copy it on allocation.
      	(read_graph_file): Adjust.
      	(read_count_file): Adjust.
      	* libgcov.c (gcov_exit): Adjust.
      	* gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
      	tag_arc_counts, tag_summary): Return void. Adjust.
      	(struct tag_format): Adjust proc member.
      	(dump_file): Adjust gcov calls.
      
      From-SVN: r65464
      Nathan Sidwell committed
  21. 07 Apr, 2003 1 commit
    • Change gcov file interface to single file at a time. · 546d2adb
      	* gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
      	Convert to C89 prototypes.
      	(gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
      	gcov_error, gcov_modified): New static variables.
      	(gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
      	functions.
      	(gcov_write_unsigned, gcov_write_counter, gcov_write_string,
      	gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
      	(gcov_read_summary, gcov_write_summary): Adjust.
      	(gcov_save_position, gcov_reserve_length, gcov_write_length):
      	Adjust.
      	(gcov_resync, gcov_skip, gcov_skip_string): Adjust.
      	(da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
      	(da_file_position, da_file_seek, da_file_write, da_file_read):
      	Remove.
      	(gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
      	* gcov.c (gcov_type): Don't typedef here.
      	(IN_GCOV): #define
      	(read_graph_file, read_count_file): Adjust.
      	* gcov-dump.c (gcov_type): Don't typedef here.
      	(IN_GCOV): #define.
      	(tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
      	Remove FILE parameter, adjust.
      	(struct tag_format): Adjust proc member.
      	(dump_file): Adjust.
      	* libgcov.c (IN_LIBGCOV): #define.
      	(gcov_exit): Adjust.
      	* loop-init.c: Don't #include gcov-io.h
      	* profile.c (struct counts_entry): New structure to hold counter
      	values.
      	(struct section_reference, struct da_index_entry): Remove.
      	(bbg_file, da_file): Remove.
      	(htab_counts_index_hash, htab_counts_index_eq,
      	htab_counts_index_del): Replace with ...
      	(htab_counts_entry_hash, htab_counts_entry_eq,
      	htab_counts_entry_del): ... these.
      	(cleanup_counts_index, index_counts_file): Remove.
      	(read_counts_file): New function.
      	(get_exec_counts): Adjust.
      	(compute_branch_probabilities): Don't free the exec counts here.
      	(branch_prob): Adjust.
      	(init_branch_prob): Adjust.
      	(end_branch_prob): Adjust.
      
      From-SVN: r65338
      Nathan Sidwell committed
  22. 06 Apr, 2003 1 commit
    • gcov.c (struct arc_info): Replace local_span with cycle. · 10b7602f
      .	* gcov.c (struct arc_info): Replace local_span with cycle.
      	(struct block_info): Replace u.span with u.cycle. Add is_call_return.
      	(solve_flow_graph): Set is_call_return.
      	(add_line_counts): Adjust. In block mode, blocks attach to last line.
      	(accumulate_line_counts): Find graph cycles, not spanning tree.
      	(output_branch_count): Adjust.
      	(output_lines): Adjust.
      	* doc/gcov.texi: Update.
      testsuite:
      	* gcc.misc-test/gcov-9.c: New test.
      	* gcc.misc-test/gcov-10.c: New test
      	* gcc.misc-test/gcov-11.c: New test.
      
      From-SVN: r65299
      Nathan Sidwell committed
  23. 04 Apr, 2003 1 commit
  24. 31 Mar, 2003 1 commit
    • gcov.c: Add -a & -u options. · 27283c73
      	* gcov.c: Add -a & -u options.
      	(struct arc_info): Add local_span, is_call_non_return,
      	is_nonlocal_return, is_unconditional flags, remove is_call flag.
      	(struct block_info): Add flags, is_call_site, is_nonlocal_return
      	members. Make encodings a union with span member.
      	(struct function_info): Add blocks_executed, line, src, line_next
      	members.
      	(struct coverage_info): Make branches a union with blocks member.
      	(struct source_info): Add functions member.
      	(object_summary, program_count): New global variables.
      	(flag_all_blocks, flag_unconditional): New flags.
      	(find_source, output_branch_count): New functions.
      	(print_usage): Adjust.
      	(options): Adjust.
      	(process_args): Adjust.
      	(read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
      	<GCOV_TAG_BLOCKS>: Read flags.
      	<GCOV_TAG_LINES>: Adjust.
      	(read_count_file): Process SUMMARY tags.
      	(solve_flow_graph): Set is_unconditional and clear is_call_site
      	appropriately.
      	(add_branch_counts): Adjust. Don't count unconditional branches.
      	(add_line_counts): Deal with all-blocks mode, accumulate block
      	coverage.
      	(accumulate_line_counts): Adjust, generate local spanning tree for
      	all-blocks mode.
      	(output_lines): Adjust.
      	* profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
      	* doc/gcov.texi: Document.
      testsuite:
      	* lib/gcov.exp: Adjust call return testing strings.
      	* g77.dg/gcov/gcov-1.f: Don't expect unconditional branches.
      
      From-SVN: r65090
      Nathan Sidwell committed
  25. 18 Jan, 2003 1 commit
    • basic-block.h: Fix comment formatting. · 32dd366d
      	* basic-block.h: Fix comment formatting.
      	* calls.c: Likewise.
      	* combine.c: Likewise.
      	* convert.c: Likewise.
      	* gcov.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* libgcc2.c: Likewise.
      	* loop.c: Likewise.
      	* profile.c: Likewise.
      	* system.h: Likewise.
      
      From-SVN: r61478
      Kazu Hirata committed
  26. 19 Dec, 2002 1 commit
    • ChangeLog: Follow spelling conventions. · 272d0bee
      	* ChangeLog: Follow spelling conventions.
      	* ChangeLog.2: Likewise.
      	* ChangeLog.4: Likewise.
      	* ChangeLog.5: Likewise.
      	* cppexp.c: Likewise.
      	* df.c: Likewise.
      	* gcov.c: Likewise.
      	* gengtype.c: Likewise.
      	* reload1.c: Likewise.
      	* sched-rgn.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* timevar.c: Likewise.
      	* toplev.c: Likewise.
      	* tree.h: Likewise.
      	* varasm.c: Likewise.
      	* config/fr30/fr30.md: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/pa/pa.c: Likewise.
      
      From-SVN: r60281
      Kazu Hirata committed
  27. 16 Dec, 2002 1 commit
  28. 08 Oct, 2002 1 commit
    • system.h (GCCBUGURL): Delete. · a976603e
      	* system.h (GCCBUGURL): Delete.
      	* version.c (bug_report_url): New.  Add commentary about
      	modifying both these strings in modified distributions.
      	* version.h: Declare bug_report_url.
      
      	* diagnostic.c, gcc.c, gcov.c, java/gjavah.c, java/jcf-dump.c,
      	java/jv-scan.c: Globally replace GCCBUGURL with bug_report_url.
      
      From-SVN: r57940
      Zack Weinberg committed
  29. 22 Sep, 2002 1 commit
    • dbxout.c: Follow spelling conventions. · cc2902df
      	* dbxout.c: Follow spelling conventions.
      	* defaults.h: Likewise.
      	* df.c: Likewise.
      	* diagnostic.h: Likewise.
      	* doloop.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* except.c: Likewise.
      	* explow.c: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* flags.h: Likewise.
      	* flow.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genconfig.c: Likewise.
      	* genrecog.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc.h: Likewise.
      	* global.c: Likewise.
      	* gthr-win32.h: Likewise.
      	* integrate.c: Likewise.
      	* jump.c: Likewise.
      	* langhooks.c: Likewise.
      	* langhooks.h: Likewise.
      	* line-map.h: Likewise.
      	* local-alloc.c: Likewise.
      	* longlong.h: Likewise.
      	* loop.c: Likewise.
      	* loop.h: Likewise.
      
      From-SVN: r57406
      Kazu Hirata committed
  30. 08 Sep, 2002 1 commit
    • basic-block.h: Fix comment formatting. · 4b7e68e7
      	* basic-block.h: Fix comment formatting.
      	* c-common.c: Likewise.
      	* c-common.h: Likewise.
      	* c-lex.c: Likewise.
      	* c-pretty-print.c: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgloop.c: Likewise.
      	* defaults.h: Likewise.
      	* et-forest.c: Likewise.
      	* explow.c: Likewise.
      	* function.h: Likewise.
      	* gcov.c: Likewise.
      	* genattrtab.c: Likewise.
      	* gengtype.c: Likewise.
      	* ifcvt.c: Likewise.
      	* libgcc2.c: Likewise.
      	* loop.c: Likewise.
      	* profile.c: Likewise.
      	* ra-build.c: Likewise.
      	* real.c: Likewise.
      	* rtl.h: Likewise.
      	* tracer.c: Likewise.
      	* tree-inline.c: Likewise.
      	* varasm.c: Likewise.
      
      From-SVN: r56952
      Kazu Hirata committed
  31. 10 Aug, 2002 1 commit
    • emit-rtl.c (emit_jump_insn_before, [...]): Fix uninitialized variable. · d950dee3
      	* emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
      	emit_jump_insn): Fix uninitialized variable.
      	* gcov.c (init_line_info): Likewise.
      	* genautomata.c (transform_3): Add braces around ambiguous
      	else.
      	* ifcvt.c (cond_exec_process_insns): Mark parameter with
      	ATTRIBUTE_UNUSED.
      	* ra-build.c (parts_to_webs_1): Fix uninitialized variable.
      	* regrename.c (copyprop_hardreg_forward): Fix uninitialized
      	variable.
      
      From-SVN: r56182
      Kaveh R. Ghazi committed
  32. 06 Aug, 2002 1 commit
    • gcov.c: Tidy. · 8b219a76
      	* gcov.c: Tidy.
      	(struct line_info, struct coverage): New structures.
      	(gcov_file_name, gcov_file): Remove globals.
      	(output_data): Take source file parameter. Fix memory leak. Break
      	up into ...
      	(init_line_info, output_line_info, make_gcov_file_name,
      	accumulate_branch_counts): ... here.
      	(calculate_branch_probs, function_summary): Adjust.
      	(main): Adjust.
      	(function_*): Remove global variables.
      
      From-SVN: r56080
      Nathan Sidwell committed
  33. 05 Aug, 2002 1 commit
  34. 04 Aug, 2002 1 commit
    • gcov.c (bb_file_time): New static variable. · 37b8715b
      	* gcov.c (bb_file_time): New static variable.
      	(object_directory): May also be object file.
      	(preserve_paths): New static variable.
      	(print_usage): Adjust.
      	(options): Adjust.
      	(process_args): Adjust.
      	(open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
      	file. Find modification date on bb file.
      	(read_profile): Don't rewind a NULL file.
      	(format_hwint): New static function.
      	(function_summary): Use format_hwint.
      	(output_data): SOURCE_FILE_NAME is never relative to
      	OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
      	mangling. Adjust output format to make it more machine readable.
      	* doc/gcov.texi: Document & clarify semantics.
      
      From-SVN: r56028
      Nathan Sidwell committed
  35. 04 Jun, 2002 1 commit
    • gbl-ctors.h: Fix formatting. · 589005ff
      	* gbl-ctors.h: Fix formatting.
      	* gcc.c: Likewise.
      	* gccspec.c: Likewise.
      	* gcov.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcse.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc.h: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc-simple.c: Likewise.
      	* global.c: Likewise.
      	* graph.h: Likewise.
      	* gthr-dce.h: Likewise.
      	* gthr.h: Likewise.
      	* gthr-posix.h: Likewise.
      	* gthr-rtems.h: Likewise.
      	* gthr-solaris.h: Likewise.
      	* gthr-win32.h: Likewise.
      
      From-SVN: r54240
      Kazu Hirata committed
  36. 09 May, 2002 1 commit
    • final.c (end_final): Use C trees to output data structures for profiling. · b7c9bf28
      	* final.c (end_final): Use C trees to output data structures for profiling.
      
      	* Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
              (profile.o): New dependency profile.h
              (final.o): New dependency profile.h
              * profile.h: New file. New global structure profile_info.
              * final.h (count_edges_instrumented_now): Declare.
              (current_function_cfg_checksum): Declare.
              (function_list): New structure.
              (functions_head, functions_tail): New static variables.
              (end_final): Emits more data, removed some -ax stuff.
              (final): Stores function names and chcksums.
              * gcov-io.h (__write_gcov_string): New function.
              (__read_gcov_string): New function.
              * gcov.c (read_profile): New function.
              (create_program_flow_graph): Uses read_profile instead of reading
      	da_file.
              (read_files): Removed da_file checking, it's done by read_profile now.
              * libgcc2.c (bb_function_info): New structure.
              (bb): New field in structure, removed some -ax stuff.
              (__bb_exit_func): Changed structure of da_file.
              * profile.c (count_edges_instrumented_now): New global variable.
              (current_function_cfg_checksum): New global variable.
              (max_counter_in_program): New global variable.
              (get_exec_counts): New function.
              (compute_checksum): New function.
              (instrument_edges): Sets count_edges_instrumented_now.
              (compute_branch_probabilities): Uses get_exec_counts instead of
      	reading da_file.
              (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
              (init_branch_prob): Removed da_file checking, done in get_exec_counts
      	now.
              (end_branch_prob): Removed da_file checking, done in get_exec_counts
      	now.
              * gcov.texi: Updated information about gcov file format.
      
      Co-Authored-By: Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
      
      From-SVN: r53326
      Jan Hubicka committed
  37. 05 Jan, 2002 1 commit
    • cse.c: Fix formatting. · c4f2c499
      	* cse.c: Fix formatting.
      	* dwarf2asm.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* explow.c: Likewise.
      	* expmed.c: Likewise.
      	* function.c: Likewise.
      	* gcov.c: Likewise.
      	* gencheck.c: Likewise.
      	* genrecog.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* global.c: Likewise.
      
      From-SVN: r48570
      Kazu Hirata committed
  38. 07 Nov, 2001 1 commit
  39. 01 Nov, 2001 1 commit
    • re PR other/704 (--help and --version) · 5735c3ea
      	* Makefile.in (GCOV_OBJS): Add version.o.
      	* gcov.c: Include "version.h" and <getopt.h>.
      	(gcov_version_string): Remove.
      	(print_usage): Take a parameter to determine whether this is a
      	call from --help or an error message.  Give fuller output that
      	follows the GNU Coding Standards for --help.
      	(print_version): New function.
      	(options): New.
      	(process_args): Use getopt_long.  Support long options.  Follow
      	GNU Coding Standards for --help and --version.
      	* doc/gcov.texi: Document long options.
      	Addresses part of PR other/704.
      
      From-SVN: r46703
      Joseph Myers committed