1. 09 Nov, 2004 1 commit
    • builtins.c, [...]: Avoid "`" as left quote, using "'" or %q, %< and %> as appropriate. · 9e637a26
      	* builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
      	c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
      	gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
      	tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
      	config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
      	config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
      	config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
      	config/iq2000/iq2000.c, config/m32r/m32r.c,
      	config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
      	config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
      	config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
      	config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
      	config/sh/symbian.c, config/stormy16/stormy16.c,
      	config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
      	and %> as appropriate.  Use %' as apostrophe in diagnostics where
      	applicable.  Use %< and %> in place of '' quotes where applicable.
      	Use %qs in place of %<%s%>.  Consistently quote __builtin function
      	names.
      
      ada:
      	* misc.c (gnat_handle_option): Use %< and %> for quoting in
      	warning message.
      
      cp:
      	* call.c, class.c, decl.c, decl2.c, error.c, mangle.c, parser.c,
      	pt.c, search.c, semantics.c, typeck.c: Use %q, %< and %> for
      	quoting in diagnostics.
      	* parser.c (cp_parser_sizeof_operand): Use '' instead of `' for
      	quoting in printf format.
      	* decl.c (duplicate_decls, start_decl): Use %qD instead of
      	unquoted %D.
      
      objc:
      	* objc-act.c: Use %q, %< and %> for quoting in diagnostics.
      
      testsuite:
      	* gcc.dg/builtin-prefetch-1.c: Adjust expected messages.
      
      From-SVN: r90337
      Joseph Myers committed
  2. 30 Aug, 2004 1 commit
  3. 23 Aug, 2004 1 commit
    • Makefile.in (BUILD_ERRORS): Set to build-errors. · b3d1f5b4
      	* Makefile.in (BUILD_ERRORS): Set to build-errors.
      	(errors.o): New target for host.
      	(build-errors.o): New target for build.
      	(genobjs): Replace errors.o with build-errors.
      	(gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
      	(GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
      	(fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
      	(fix-header.o): Add errors.h
      	* collect2.c (fancy_abort): Add parameters.
      	* collect2.h (fancy_abort): Don't declare.
      	* errors.h (fancy_abort): Don't declare.
      	* errors.c: Include either bconfig.h or config.h.
      	(fancy_abort): Trim filename.
      	* fix-header.c (v_fatal, fatal): Remove.
      	(progname): Remove definition.
      	(main): Set progname here.
      	* gcc.c (fancy_abort): Add parameters.
      	* gcc.h (fancy_abort): Remove declaration.
      	* gcov.c (fancy_abort): Remove.
      	* rtl.h (fancy_abort): Don't declare.
      	(abort): Don't define.
      	* tree.h (fancy_abort): Don't declare.
      	(abort): Don't define.
      	* system.h (fancy_abort): Declare.
      	(abort): Define to fancy_abort.
      	* fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
      	* java/jv-scan.c (fancy_abort): Add.
      
      From-SVN: r86424
      Nathan Sidwell committed
  4. 29 Jul, 2004 1 commit
    • gcov-io.h: Allow zero tag as EOF indicator. · 00cf2913
      	* gcov-io.h: Allow zero tag as EOF indicator.
      	(gcov_is_eof): Remove.
      	(gcov_truncate): Remove.
      	* gcov-io.c (gcov_seek): Always SEEK_SET.
      	* libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
      	EOF tag.
      	* coverage.c (read_counts_file): Don't use gcov_is_eof.
      	* gcov-dump.c (dump_file): Likewise.
      	* gcov.c (read_graph_file, read_count_file): Likewise.
      
      From-SVN: r85291
      Nathan Sidwell committed
  5. 28 Jul, 2004 1 commit
  6. 26 Jun, 2004 1 commit
    • c-typeck.c, [...]: Fix comment typos. · 61ada8ae
      	* c-typeck.c, cfgexpand.c, ddg.c, ddg.h, df.c, fold-const.c,
      	gcov.c, gimplify.c, modulo-sched.c, passes.c, tree-cfg.c,
      	tree-mudflap.c, tree-nrv.c, tree-outof-ssa.c, tree-ssa-dom.c,
      	tree-ssa-dse.c, tree-ssa-operands.c, tree-ssa-pre.c,
      	tree-tailcall.c: Fix comment typos.  Follow spelling
      	conventions.
      
      From-SVN: r83703
      Kazu Hirata committed
  7. 20 Feb, 2004 1 commit
    • gcc.c (process_command): Allow translation of the copyright symbol but not the… · 9f76f909
      gcc.c (process_command): Allow translation of the copyright symbol but not the rest of the copyright message.
      
      gcc/
      	* gcc.c (process_command): Allow translation of the copyright
      	symbol but not the rest of the copyright message.
      	* gcov.c (print_version): Likewise.  Allow translation of the
      	message about warranty.
      
      gcc/f/
      	* Make-lang.in (g77spec.o): Depend on intl.h.
      	* g77spec.c: Include intl.h.
      	(lang_specific_driver): Allow translation of the copyright
      	symbol but not the rest of the copyright message.  Allow
      	translation of the message about warranty.
      
      From-SVN: r78152
      Kazu Hirata committed
  8. 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
  9. 27 Aug, 2003 1 commit
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 21 Apr, 2003 1 commit
  26. 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
  27. 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
  28. 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
  29. 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
  30. 04 Apr, 2003 1 commit
  31. 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
  32. 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
  33. 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
  34. 16 Dec, 2002 1 commit
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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