1. 09 May, 2015 1 commit
    • bitmap.c, [...]: Add space between string literal and macro name. · 16998094
      	* bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
      	config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
      	config/darwin.h, config/darwin9.h, config/elfos.h,
      	config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
      	config/microblaze/microblaze.h, config/mips/mips.h,
      	config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
      	config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
      	config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
      	config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
      	config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
      	cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
      	dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
      	ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
      	ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
      	modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
      	tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
      	between string literal and macro name.
      
      From-SVN: r222960
      Jason Merrill committed
  2. 11 Apr, 2015 1 commit
  3. 05 Jan, 2015 1 commit
    • gcc.c (process_command): Update copyright notice dates. · b67cd4e3
      gcc/
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov-dump.c: Ditto.
      	* gcov.c: Ditto.
      	* doc/cpp.texi: Bump @copying's copyright year.
      	* doc/cppinternals.texi: Ditto.
      	* doc/gcc.texi: Ditto.
      	* doc/gccint.texi: Ditto.
      	* doc/gcov.texi: Ditto.
      	* doc/install.texi: Ditto.
      	* doc/invoke.texi: Ditto.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      	* gfc-internals.texi: Bump @copying's copyright year.
      	* gfortran.texi: Ditto.
      	* intrinsic.texi: Ditto.
      	* invoke.texi: Ditto.
      gcc/go/
      	* gccgo.texi: Bump @copyrights-go year.
      gcc/java/
      	* jcf-dump.c (version): Update copyright notice dates.
      libgomp/
      	* libgomp.texi: Bump @copying's copyright year.
      libquadmath/
      	* libquadmath.texi: Bump @copying's copyright year.
      libitm/
      	* libitm.texi: Bump @copying's copyright year.
      gcc/ada/
      	* gnat_ugn.texi: Bump @copying's copyright year.
      libjava/
      	* classpath/gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* classpath/tools/gnu/classpath/tools/orbd/Main.java (run): Ditto.
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Ditto.
      
      From-SVN: r219187
      Jakub Jelinek committed
  4. 26 May, 2014 1 commit
    • system.h: Define __STDC_FORMAT_MACROS before including inttypes.h. · a9243bfc
      2014-05-23  Richard Biener  <rguenther@suse.de>
      
      	* system.h: Define __STDC_FORMAT_MACROS before
      	including inttypes.h.
      	* hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
      	HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
      	HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
      	HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
      	HOST_WIDEST_INT_C): Remove.
      	(PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
      	if C99 inttypes.h is not available.
      
      	* coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
      	* gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
      	* gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
      	* cfgloop.h (struct niter_desc): Use uint64_t for niter field.
      	* bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
      	(struct output_info): Likewise.
      	(print_statistics): Adjust.
      	(dump_bitmap_statistics): Likewise.
      	* bt-load.c (migrate_btr_defs): Print with PRId64.
      	* cfg.c (dump_edge_info, dump_bb_info): Likewise.
      	(MAX_SAFE_MULTIPLIER): Adjust.
      	* cfghooks.c (dump_bb_for_graph): Print with PRId64.
      	* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
      	dump_cgraph_node): Likewise.
      	* final.c (dump_basic_block_info): Likewise.
      	* gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
      	* gcov.c (format_gcov): Likewise.
      	* ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
      	for calculation.
      	(get_clone_agg_value): Use HOST_WIDE_INT for offset.
      	* ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
      	(inline_small_functions, dump_overall_stats, dump_inline_stats):
      	Use PRId64 for dumping.
      	* ipa-profile.c (dump_histogram, ipa_profile): Likewise.
      	* ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
      	(add_allocno_hard_regs): Adjust.
      	* loop-doloop.c (doloop_modify): Print using PRId64.
      	* loop-iv.c (inverse): Compute in uint64_t.
      	(determine_max_iter, iv_number_of_iterations): Likewise.
      	* loop-unroll.c (decide_peel_completely, decide_peel_simple):
      	Print using PRId64.
      	* lto-streamer-out.c (write_symbol): Use uint64_t.
      	* mcf.c (CAP_INFINITY): Use int64_t maximum.
      	(dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
      	find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
      	* modulo-sched.c (const_iteration_count): Use int64_t.
      	(sms_schedule): Dump using PRId64.
      	* predict.c (dump_prediction): Likewise.
      	* pretty-print.h (pp_widest_integer): Remove.
      	* profile.c (get_working_sets, is_edge_inconsistent,
      	is_inconsistent, read_profile_edge_counts): Dump using PRId64.
      	* tree-pretty-print.c (pp_double_int): Remove case handling
      	HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
      	* tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
      	and adjust users.
      	(pass_optimize_bswap::execute): Remove restriction on hosts.
      	* tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
      	* tree-streamer-out.c (streamer_write_tree_header): Likewise.
      	* tree.c (widest_int_cst_value): Remove.
      	* tree.h (widest_int_cst_value): Likewise.
      	* value-prof.c (dump_histogram_value): Print using PRId64.
      	* gengtype.c (main): Also inject int64_t.
      	* ggc-page.c (struct max_alignment): Use int64_t.
      	* alloc-pool.c (struct allocation_object_def): Likewise.
      	* ira-conflicts.c (build_conflict_bit_table): Use uint64_t
      	for computation.
      	* doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
      	* doc/tm.texi: Regenerated.
      	* gengtype-lex.l (IWORD): Handle [u]int64_t.
      	* config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
      	* config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
      	mmix_output_register_setting): Use [u]int64_t in prototypes.
      	* config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
      	mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
      	mmix_output_octa, mmix_output_shifted_value): Adjust.
      	(mmix_intval): Adjust.  Remove unreachable case.
      	* config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use
      	int64_t.
      
      	lto/
      	* lto.c (lto_parse_hex): Use int64_t.
      	(lto_resolution_read): Likewise.
      
      From-SVN: r210931
      Richard Biener committed
  5. 02 Jan, 2014 1 commit
    • gnat_ugn.texi: Bump @copying's copyright year. · 98db73df
      2014-01-02  Tobias Burnus  <burnus@net-b.de>
      
      gcc/ada/
              * gnat_ugn.texi: Bump @copying's copyright year.
      
      gcc/
              * gcc.c (process_command): Update copyright notice dates.
              * gcov-dump.c: Ditto.
              * gcov.c: Ditto.
              * doc/cpp.texi: Bump @copying's copyright year.
              * doc/cppinternals.texi: Ditto.
              * doc/gcc.texi: Ditto.
              * doc/gccint.texi: Ditto.
              * doc/gcov.texi: Ditto.
              * doc/install.texi: Ditto.
              * doc/invoke.texi: Ditto.
      
      gcc/fortran/
              * gfortranspec.c (lang_specific_driver): Update copyright notice
              dates.
              * gfc-internals.texi: Bump @copying's copyright year.
              * gfortran.texi: Ditto.
              * intrinsic.texi: Ditto.
              * invoke.texi: Ditto.
      
      gcc/go/
              * gcc/go/gccgo.texi: Ditto.
      
      gcc/java/
              * jcf-dump.c (version): Update copyright notice dates.
              * gcj.texi: Bump @copying's copyright year.
      
      libgomp/
              * libgomp.texi: Bump @copying's copyright year.
      
      libitm/
              * libitm.texi: Bump @copying's copyright year.
      
      libjava/
              * classpath/gnu/java/rmi/registry/RegistryImpl.java (version):
              * Update
              copyright notice dates.
              * classpath/tools/gnu/classpath/tools/orbd/Main.java (run):
              * Ditto.
              * gnu/gcj/convert/Convert.java (version): Update copyright
              * notice
              dates.
              * gnu/gcj/tools/gcj_dbtool/Main.java (main): Ditto.
      
      libquadmath/
              * libquadmath.texi: Bump @copying's copyright year.
      
      From-SVN: r206286
      Tobias Burnus committed
  6. 28 Sep, 2013 1 commit
    • alloc-pool.c, [...]: Add missing whitespace before "(". · c3284718
      gcc/
      	* alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
      	bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
      	cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
      	cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
      	combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
      	cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
      	df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
      	dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
      	errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
      	fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
      	gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
      	genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
      	genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
      	genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
      	gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
      	gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
      	gimple.h, godump.c, graphite-clast-to-gimple.c,
      	graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
      	graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
      	hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
      	ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
      	ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
      	ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
      	loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
      	lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
      	mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
      	pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
      	predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
      	profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
      	regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
      	reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
      	sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
      	statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
      	system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
      	tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
      	tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
      	tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
      	tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
      	tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
      	tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
      	tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
      	tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
      	tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
      	tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
      	tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
      	tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
      	tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
      	tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
      	tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
      	tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
      	tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
      	tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
      	tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
      	tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
      	varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
      	whitespace before "(".
      
      From-SVN: r203004
      Richard Sandiford committed
  7. 20 Jun, 2013 1 commit
    • gcov.c (print_usage): Handle new option. · fc8a650e
      2013-06-19    <singhai@google.com>
      
      	* gcov.c (print_usage): Handle new option.
      	(process_args): Ditto.
      	(get_gcov_intermediate_filename): New function.
      	(output_intermediate_file): New function.
      	(output_gcov_file): New function
      	(generate_results): Handle new option.
      	(release_function): Relase demangled name.
      	(read_graph_file): Handle demangled name.
      	(output_lines): Ditto.
      	* doc/gcov.texi: Document gcov intermediate format.
      
      testsuite/ChangeLog:
      
      	* g++.dg/gcov/gcov-8.C: New testcase.
      	* lib/gcov.exp: Handle intermediate format.
      
      From-SVN: r200232
      Sharad Singhai committed
  8. 10 Jan, 2013 1 commit
  9. 03 Jan, 2013 1 commit
    • gcc.c (process_command): Update copyright notice dates. · df8e2b4f
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov.c (print_version): Likewise.
      	* gcov-dump.c (print_version): Likewise.
      
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      
      	* jcf-dump.c (version): Update copyright notice dates.
      
      	* mf-runtime.c (__mf_usage): Update copyright notice dates.
      
      	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.
      
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
      
      From-SVN: r194838
      Jakub Jelinek committed
  10. 13 Oct, 2012 1 commit
  11. 23 Jul, 2012 2 commits
    • coverage.c: Refer to "notes file" instead of "graph file" in all comments. · efbb59b2
      gcc/
      	* coverage.c: Refer to "notes file" instead of "graph file"
      	in all comments.  Explain history of bbg prefix.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	(find_source): Likewise in fnotice.
      	(read_graph_file): Likewise.
      	(read_count_file): Likewise.
      	* doc/gcov.texi: Document -fprofile-dir flag.  Add "notes file"
      	and "data file" explicitly in the explanation of the files.
      
      libgcc/
      	* libgcov.c (__gcov_ior_profiler): Benign comment fix.
      
      From-SVN: r189781
      Steven Bosscher committed
    • opts.c (common_handle_option): Do not set flag_value_profile_transformations for… · 9696c529
      opts.c (common_handle_option): Do not set flag_value_profile_transformations for -fprofile-generate.
      
      	* opts.c (common_handle_option): Do not set 
      	flag_value_profile_transformations for -fprofile-generate.
      	* profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
      	(BB_TO_GCOV_INDEX): Remove.
      	(output_location): Don't use it.
      	(branch_prob): Likewise.  Don't fiddle with the index of
      	ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.  Use clear_aux_for_blocks.
      	(find_spanning_tree):
      	* gcov.c (struct function_info): Document that blocks 0 and 1
      	are the entry resp. exit blocks in gcov, too, like in GCC itself.
      	(solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
      	blocks identification.
      	(output_lines): Likewise.
      	* value-prof.c (gimple_value_profile_transformations): Do not
      	test flag_value_profile_transformations again.
      	(gimple_ic_transform): Take a gimple_stmt_iterator like all other
      	transformation functions.
      	(gimple_values_to_profile):
      	Don't test flag_value_profile_transformations
      	* tree-profile.c (tree_profiling): Assert that the cgraph is in
      	the CGRAPH_STATE_IPA_SSA state.
      	Do not set, or look at, after_tree_profile.
      	* function.h (struct function): Remove after_tree_profile bit.
      	* omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
      	* tree-inline.c (initialize_cfun): Don't copy it.
      	* lto-streamer-out.c (output_struct_function_base): Don't stream it.
      	* lto-streamer-in.c (input_struct_function_base): Likewise.
      
      From-SVN: r189778
      Steven Bosscher committed
  12. 29 May, 2012 1 commit
  13. 11 Jan, 2012 1 commit
  14. 01 Jan, 2012 1 commit
    • gcc.c (process_command): Update copyright notice dates. · 66f1b195
      gcc/
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov.c (print_version): Likewise.
      	* gcov-dump.c (print_version): Likewise.
      	* mips-tfile.c (main): Likewise.
      	* mips-tdump.c (main): Likewise.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      gcc/java/
      	* jcf-dump.c (version): Update copyright notice dates.
      libmudflap/
      	* mf-runtime.c (__mf_usage): Update copyright notice dates.
      libjava/
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
      libjava/classpath/
      	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.
      
      From-SVN: r182773
      Jakub Jelinek committed
  15. 30 Dec, 2011 1 commit
    • gcov.c (total_lines, [...]): New global vars. · bdbdc4e1
      	* gcov.c (total_lines, total_executed): New global vars.
      	(generate_results): Call executed_summary.
      	(executed_summary): New function, broken out of ...
      	(function_summary): ... here.  Call it.
      	* coverage.c (coverage_finish): Also check for local_tick == -1.
      	* gcov-dump (tag_function): Correct labelling typo.
      
      From-SVN: r182744
      Nathan Sidwell committed
  16. 02 Dec, 2011 1 commit
    • gcov.c (struct arc_info): Add is_throw field. · 8919c0d9
      	* gcov.c (struct arc_info): Add is_throw field.
      	(struct (block_info): Add exceptional field, reduce flags size to
      	account for it.
      	(struct function_info): Add has_catch field.
      	(struct line_info): Add unexceptional field.
      	(process_file): Call find_exception_blocks if necessary.
      	(read_graph_file): Adjust.  Note if an exceptional edge is seen.
      	(find_exception_blocks): New.
      	(add_line_counts): Set line's unexceptional flag if not
      	exceptional.
      	(output_branch_count): Note exceptional arcs, lines and blocks.
      	* gcov-dump.c (tag_arcs): Decode arc flags.
      	* doc/gcov.texi: Document '=====' lines.
      
      	testsuite/
      	* lib/gcov.exp (verify-lines): Allow = as a count char.
      	* g++.dg/gcov/gcov-13.C: New.
      
      From-SVN: r181949
      Nathan Sidwell committed
  17. 26 Nov, 2011 1 commit
  18. 14 Nov, 2011 2 commits
  19. 13 Nov, 2011 1 commit
    • gcov.c (source_prefix, [...]): New globals. · 1bec9caa
      	* gcov.c (source_prefix, source_length): New globals.
      	(flag_relative_only): Likewise.
      	(print_usage, options, process_args): Update.
      	(generate_results): Use coverage.name, check
      	flag_relative_only. Adjust messages.
      	(find_source): Check source_prefix.
      	(output_lines): Use coverage.name, adjust messages.
      	* doc/gcov.texi (Invoking Gcov): Document new options.
      
      From-SVN: r181335
      Nathan Sidwell committed
  20. 12 Nov, 2011 1 commit
    • gcov.c (struct name_map): New. · eeabee0a
      	* gcov.c (struct name_map): New.
      	(names, n_names, a_names): New global vars.
      	(print_usage): Adjust usage.
      	(generate_results): Canonicalize main file name.
      	(release_structures): Adjust.
      	(name_search, name_sort): New callbacks.
      	(find_source): Look for and create a canonical name.
      	(canonicalize_name): New.
      	(make_gcov_file_name): Reimplement and fix mangling.
      	(mangle_name): New.
      	* doc/gcov.texi: Update documentation about path preservation.
      
      	testsuite/
      	* gcc.misc-tests/gcov-15.c: New.
      
      From-SVN: r181309
      Nathan Sidwell committed
  21. 10 Nov, 2011 1 commit
    • gcov.c (struct function_info): Make src an index, not a pointer. · 1ce1b792
      	* gcov.c (struct function_info): Make src an index, not a pointer.
      	(struct source_info): Remove index and next source fields.
      	(fn_end): New static var.
      	(sources_index): Remove.
      	(sources): Now a pointer to an array, not a list.
      	(n_sources, a_sources): New.
      	(process_file): Adjust for changes to read_graph_file. Insert
      	functions into source lists and check line numbers here.
      	(generate_results): Only allocate lines for sources with
      	contents.  Adjust for source array.
      	(release_structures): Likewise.
      	(find_source): Return source index, adjust for source array.
      	(read_graph_file): Return function list.  Don't insert into source
      	lists here.
      	(read_count_file): Take list of functions.
      	(solve_flow_graph): Reverse the arc lists here.
      	(add_line_counts): Adjust for source array.
      
      From-SVN: r181265
      Nathan Sidwell committed
  22. 07 Nov, 2011 1 commit
    • libgcov.c (struct gcov_fn_buffer): New struct. · 5366b186
      	libgcc/
      	* libgcov.c (struct gcov_fn_buffer): New struct.
      	(buffer_fn_data): New helper.
      	(gcov_exit): Rework for new gcov data structures.
      
      	gcc/
      	* gcov.c (object_summary): Replace with ...
      	(object_runs): ... this.
      	(process_file): Remove functions with no data.
      	(generate_results): Ignore files with no lines.
      	(release_function): New helper, broken out of ...
      	(release_structures): ... here.  Use it.
      	(read_count_file): Adjust for new data file format.
      	(output_lines): Use object_runs.
      	* gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
      	(struct gcov_ctr_info): Move definition.
      	(struct gcov_fn_info): Add key field, use gcov_ctr_info for
      	trailing array.
      	(struct gcov_info): Add merge function array, remove mask and
      	counts.  Trailing array is array of pointers to function info.
      	* coverage.c (struct function_list): Replace counter numbers with
      	counter arrays.  Add fndecl field.  GTYify.
      	(counts_entry): Remove chain workspace.
      	(functions_head): GTYify.
      	(prg_n_ctrs): Remove.
      	(fn_v_ctrs): New.
      	(tree_ctr_tables): Remove.
      	(read_counts_file): Cope with blank entries and expect program
      	summaries before functions.  Don't warn on missing entries.
      	(coverage_counter_alloc): Allocate individual function arrays.
      	(tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
      	for individual function arrays.
      	(coverage_end_function): GTYify function list object. Finalize
      	function's counter arrays.
      	(build_var): New.  Create a counter-related variable with
      	appropriate linkage.
      	(build_fn_info_type): Adjust for new runtime structure.
      	(build_fn_info_value): Rename to ...
      	(build_fn_info): ... here.  Build new format data.
      	(build_ctr_info_type, build_ctr_info_value): Remove.
      	(build_info_type): New. Build new format data structure.
      	(build_info): Adjust for new format data.
      	(create_coverage): Likewise.
      	* gcov-dump.c (tag_function): Recognize placeholders.
      
      	gcc/testsuite/
      	* gcc.dg/profile-dir-1.c: Adjust final scan.
      	* gcc.dg/profile-dir-2.c: Adjust final scan.
      	* gcc.dg/profile-dir-3.c: Adjust final scan.
      	* gcc.misc-tests/gcov.exp: Adjust regexp.
      	* gcc.misc-tests/gcov-12.c: New.
      	* gcc.misc-tests/gcov-13.c: New.
      	* gcc.misc-tests/gcovpart-13b.c: New.
      	* gcc.misc-tests/gcov-14.c: New.
      
      From-SVN: r181105
      Nathan Sidwell committed
  23. 23 May, 2011 1 commit
  24. 20 May, 2011 1 commit
    • Makefile.in (LIBDEPS): Add libcommon.a. · 2691e6d7
      	* Makefile.in (LIBDEPS): Add libcommon.a.
      	(LIBS): Likewise.
      	(GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
      	(OBJS-common): Remove diagnostic.o, input.o, intl.o,
      	pretty-print.o and version.o.
      	(OBJS-libcommon): New.
      	(ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
      	(BACKEND): Add libcommon.a.
      	(MOSTLYCLEANFILES): Likewise.
      	(libcommon.a): New.
      	(xgcc$(exeext)): Don't explicitly use version.o and intl.o.
      	(cpp$(exeext)): Likewise.
      	(COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
      	pretty-print.o and input.o.
      	(lto-wrapper$(exeext)): Don't explicitly use intl.o.
      	(lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
      	(errors.o): Remove.
      	(mips-tfile): Don't explicitly use version.o.
      	(mips-tdump): Likewise.
      	(gcov.o): Depend on $(DIAGNOSTIC_H).
      	(gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
      	(GCOV_OBJS): Remove intl.o, version.o and errors.o.
      	(GCOV_DUMP_OBJS): Remove version.o and errors.o.
      	* gcov-dump.c: Include intl.h and diagnostic.h.
      	(main): Initialize diagnostics.
      	* gcov.c: Include diagnostic.h.
      	(fnotice): Remove.
      	(main): Initialize diagnostics.
      	* lto-wrapper.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      
      ada:
      	* gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove
      	version.o.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
      	libcommon.a instead of version.o.
      
      cp:
      	* Make-lang.in (GXX_OBJS): Remove intl.o and version.o.
      
      fortran:
      	* Make-lang.in (GFORTRAN_D_OBJS): Remove version.o and intl.o.
      
      go:
      	* Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
      
      java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Don't explicitly use intl.o and
      	version.o.
      	(JCFDUMP_OBJS): Remove errors.o, version.o and intl.o.
      	(JVGENMAIN_OBJS): Remove errors.o and intl.o.
      	(java/jcf-dump.o, java/jvgenmain.o): Depend in $(DIAGNOSTIC_H).
      	* jcf-dump.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      	* jvgenmain.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      
      From-SVN: r173958
      Joseph Myers committed
  25. 29 Apr, 2011 1 commit
  26. 20 Apr, 2011 1 commit
    • remove useless if-before-free tests · 04695783
      Change "if (E) free (E);" to "free (E);" everywhere except in the
      libgo/, intl/, zlib/ and classpath/ directories.
      Also transform equivalent variants like
      "if (E != NULL) free (E);" and allow an extra cast on the
      argument to free.  Otherwise, the tested and freed "E"
      expressions must be identical, modulo white space.
      
      From-SVN: r172785
      Jim Meyering committed
  27. 25 Mar, 2011 1 commit
    • Changelog c-family/ · ba78087b
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* c-ada-spec.c (compare_comment): Use filename_cmp
      	instead of strcmp for filename.
      
      
      Changelog fortran/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* scanner.c (preprocessor_line): Use filename_cmp
      	instead of strcmp.
      
      Changelog gcc/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* collect2.c (write_c_file_stat): Handle backslash
      	as right-hand directory separator.
      	(resolve_lib_name): Use IS_DIR_SEPARATOR instead of
      	checking just for slash.
      	* coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
      	instead of checking for trailing slash.
      	* gcc.c (record_temp_file): Use filename_cmp instead
      	of strcmp.
      	(do_spec_1): Likewise.
      	(replace_outfile_spec_function): Likewise.
      	(is_directory): Use filename_ncmp instead of strncmp.
      	(print_multilib_info): Likewise.
      	* gcov.c (find_source): Use filename_cmp instead
      	instead of strcmp.
      	(make_gcov_file_name): Fix order of slash/backslash
      	checks.
      	* incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
      	(add_standard_paths): Likewise.
      	* mips-tfile.c (saber_stop): Handle backslash.
      	* prefix.c (update_path): Use filename_ncmp instead of
      	strncmp.
      	* profile.c (output_location): Use filename_cmp instead
      	of strcmp.
      	* read-md.c (handle_toplevel_file): Handle backslash.
      	* tlink.c (frob_extension):  Likewise.
      	* tree-cfg.c (same_line_p): Use filename_cmp instead of
      	strcmp.
      	* tree-dump.c (dequeue_and_dump): Handle backslash.
      	* tree.c (get_file_function_name): Likewise.
      	* gengtype.c (read_input_list): Likewise.
      	(get_file_realbasename): Likewise.
      	(get_output_file_with_visibility): Use filename_cmp
      	instead of strcmp.
      
      ChangeLog java/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* jcf-parse.c (java_read_sourcefilenames): Use filename_cmp
      	instead of strcmp.
      	(set_source_filename): Likewise.
      	* win32-host.c (jcf_open_exact_case): Likewise.
      
      ChangeLog lto/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* lto.c (lto_resolution_read): Use filename_cmp instead
      	of strcmp.
      	(lto_read_section_data): Likewise.
      
      
      ChangeLog cp/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* lex.c (interface_strcmp): Handle dos-paths.
      	(handle_pragma_implementation): Use filename_cmp instead of
      	strcmp.
      	(in_main_input_context): Likewise.
      
      From-SVN: r171522
      Kai Tietz committed
  28. 03 Jan, 2011 1 commit
    • gcc.c (process_command): Update copyright notice dates. · 9f8e43c0
      gcc/
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov.c (print_version): Likewise.
      	* gcov-dump.c (print_version): Likewise.
      	* mips-tfile.c (main): Likewise.
      	* mips-tdump.c (main): Likewise.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      gcc/java/
      	* jcf-dump.c (version): Update copyright notice dates.
      libmudflap/
      	* mf-runtime.c (__mf_usage): Update copyright notice dates.
      libjava/
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
      libjava/classpath/
      	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.
      
      From-SVN: r168432
      Jakub Jelinek committed
  29. 05 Aug, 2010 1 commit
  30. 09 Jan, 2010 1 commit
    • gcc.c (process_command): Update copyright notice dates. · bd5c3aa5
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov.c (print_version): Likewise.
      	* gcov-dump.c (print_version): Likewise.
      	* mips-tfile.c (main): Likewise.
      	* mips-tdump.c (main): Likewise.
      
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      
      	* jcf-dump.c (version): Update copyright notice dates.
      
      	* mf-runtime.c (__mf_usage): Update copyright notice dates.
      
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
      
      	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.
      
      From-SVN: r155749
      Jakub Jelinek committed
  31. 25 Nov, 2009 1 commit
    • Remove trailing white spaces. · b8698a0f
      2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* alias.c: Remove trailing white spaces.
      	* alloc-pool.c: Likewise.
      	* alloc-pool.h: Likewise.
      	* attribs.c: Likewise.
      	* auto-inc-dec.c: Likewise.
      	* basic-block.h: Likewise.
      	* bb-reorder.c: Likewise.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* builtins.def: Likewise.
      	* c-common.c: Likewise.
      	* c-common.h: Likewise.
      	* c-cppbuiltin.c: Likewise.
      	* c-decl.c: Likewise.
      	* c-format.c: Likewise.
      	* c-lex.c: Likewise.
      	* c-omp.c: Likewise.
      	* c-opts.c: Likewise.
      	* c-parser.c: Likewise.
      	* c-pretty-print.c: Likewise.
      	* c-tree.h: Likewise.
      	* c-typeck.c: Likewise.
      	* caller-save.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraph.h: Likewise.
      	* cgraphbuild.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* cif-code.def: Likewise.
      	* collect2.c: Likewise.
      	* combine.c: Likewise.
      	* convert.c: Likewise.
      	* coverage.c: Likewise.
      	* crtstuff.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* dbgcnt.c: Likewise.
      	* dbgcnt.def: Likewise.
      	* dbgcnt.h: Likewise.
      	* dbxout.c: Likewise.
      	* dce.c: Likewise.
      	* ddg.c: Likewise.
      	* ddg.h: Likewise.
      	* defaults.h: Likewise.
      	* df-byte-scan.c: Likewise.
      	* df-core.c: Likewise.
      	* df-problems.c: Likewise.
      	* df-scan.c: Likewise.
      	* df.h: Likewise.
      	* dfp.c: Likewise.
      	* diagnostic.c: Likewise.
      	* diagnostic.h: Likewise.
      	* dominance.c: Likewise.
      	* domwalk.c: Likewise.
      	* double-int.c: Likewise.
      	* double-int.h: Likewise.
      	* dse.c: Likewise.
      	* dwarf2asm.c: Likewise.
      	* dwarf2asm.h: Likewise.
      	* dwarf2out.c: Likewise.
      	* ebitmap.c: Likewise.
      	* ebitmap.h: Likewise.
      	* emit-rtl.c: Likewise.
      	* et-forest.c: Likewise.
      	* except.c: Likewise.
      	* except.h: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* final.c: Likewise.
      	* flags.h: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* fwprop.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-dump.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattr.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* genchecksum.c: Likewise.
      	* genconfig.c: Likewise.
      	* genflags.c: Likewise.
      	* gengtype-parse.c: Likewise.
      	* gengtype.c: Likewise.
      	* gengtype.h: Likewise.
      	* genmddeps.c: Likewise.
      	* genmodes.c: Likewise.
      	* genopinit.c: Likewise.
      	* genpreds.c: Likewise.
      	* gensupport.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* ggc.h: Likewise.
      	* gimple-iterator.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-pretty-print.c: Likewise.
      	* gimple.c: Likewise.
      	* gimple.def: Likewise.
      	* gimple.h: Likewise.
      	* gimplify.c: Likewise.
      	* graphds.c: Likewise.
      	* graphite-clast-to-gimple.c: Likewise.
      	* gthr-nks.h: Likewise.
      	* gthr-posix.c: Likewise.
      	* gthr-posix.h: Likewise.
      	* gthr-posix95.h: Likewise.
      	* gthr-single.h: Likewise.
      	* gthr-tpf.h: Likewise.
      	* gthr-vxworks.h: Likewise.
      	* gthr.h: Likewise.
      	* haifa-sched.c: Likewise.
      	* hard-reg-set.h: Likewise.
      	* hooks.c: Likewise.
      	* hooks.h: Likewise.
      	* hosthooks.h: Likewise.
      	* hwint.h: Likewise.
      	* ifcvt.c: Likewise.
      	* incpath.c: Likewise.
      	* init-regs.c: Likewise.
      	* integrate.c: Likewise.
      	* ipa-cp.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-reference.c: Likewise.
      	* ipa-struct-reorg.c: Likewise.
      	* ipa-struct-reorg.h: Likewise.
      	* ipa-type-escape.c: Likewise.
      	* ipa-type-escape.h: Likewise.
      	* ipa-utils.c: Likewise.
      	* ipa-utils.h: Likewise.
      	* ipa.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-conflicts.c: Likewise.
      	* ira-costs.c: Likewise.
      	* ira-emit.c: Likewise.
      	* ira-int.h: Likewise.
      	* ira-lives.c: Likewise.
      	* ira.c: Likewise.
      	* jump.c: Likewise.
      	* lambda-code.c: Likewise.
      	* lambda-mat.c: Likewise.
      	* lambda-trans.c: Likewise.
      	* lambda.h: Likewise.
      	* langhooks.c: Likewise.
      	* lcm.c: Likewise.
      	* libgcov.c: Likewise.
      	* lists.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* loop-init.c: Likewise.
      	* loop-invariant.c: Likewise.
      	* loop-iv.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* lower-subreg.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* lto-compress.c: Likewise.
      	* lto-opts.c: Likewise.
      	* lto-section-in.c: Likewise.
      	* lto-section-out.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* lto-streamer.c: Likewise.
      	* lto-streamer.h: Likewise.
      	* lto-symtab.c: Likewise.
      	* lto-wpa-fixup.c: Likewise.
      	* matrix-reorg.c: Likewise.
      	* mcf.c: Likewise.
      	* mode-switching.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* omega.c: Likewise.
      	* omega.h: Likewise.
      	* omp-low.c: Likewise.
      	* optabs.c: Likewise.
      	* optabs.h: Likewise.
      	* opts-common.c: Likewise.
      	* opts.c: Likewise.
      	* params.def: Likewise.
      	* params.h: Likewise.
      	* passes.c: Likewise.
      	* plugin.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* predict.def: Likewise.
      	* pretty-print.c: Likewise.
      	* pretty-print.h: Likewise.
      	* print-rtl.c: Likewise.
      	* print-tree.c: Likewise.
      	* profile.c: Likewise.
      	* read-rtl.c: Likewise.
      	* real.c: Likewise.
      	* recog.c: Likewise.
      	* reg-stack.c: Likewise.
      	* regcprop.c: Likewise.
      	* reginfo.c: Likewise.
      	* regmove.c: Likewise.
      	* regrename.c: Likewise.
      	* regs.h: Likewise.
      	* regstat.c: Likewise.
      	* reload.c: Likewise.
      	* reload1.c: Likewise.
      	* resource.c: Likewise.
      	* rtl.c: Likewise.
      	* rtl.def: Likewise.
      	* rtl.h: Likewise.
      	* rtlanal.c: Likewise.
      	* sbitmap.c: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-int.h: Likewise.
      	* sched-rgn.c: Likewise.
      	* sched-vis.c: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-dump.h: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* sel-sched-ir.h: Likewise.
      	* sel-sched.c: Likewise.
      	* sel-sched.h: Likewise.
      	* sese.c: Likewise.
      	* sese.h: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stack-ptr-mod.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* stringpool.c: Likewise.
      	* stub-objc.c: Likewise.
      	* sync-builtins.def: Likewise.
      	* target-def.h: Likewise.
      	* target.h: Likewise.
      	* targhooks.c: Likewise.
      	* targhooks.h: Likewise.
      	* timevar.c: Likewise.
      	* tlink.c: Likewise.
      	* toplev.c: Likewise.
      	* toplev.h: Likewise.
      	* tracer.c: Likewise.
      	* tree-affine.c: Likewise.
      	* tree-affine.h: Likewise.
      	* tree-browser.def: Likewise.
      	* tree-call-cdce.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-chrec.c: Likewise.
      	* tree-chrec.h: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-data-ref.c: Likewise.
      	* tree-data-ref.h: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-dump.h: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-flow-inline.h: Likewise.
      	* tree-flow.h: Likewise.
      	* tree-if-conv.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-loop-distribution.c: Likewise.
      	* tree-loop-linear.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-nested.c: Likewise.
      	* tree-nomudflap.c: Likewise.
      	* tree-nrv.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-pass.h: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-predcom.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-ssa-address.c: Likewise.
      	* tree-ssa-alias.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-copy.c: Likewise.
      	* tree-ssa-copyrename.c: Likewise.
      	* tree-ssa-dce.c: Likewise.
      	* tree-ssa-dom.c: Likewise.
      	* tree-ssa-dse.c: Likewise.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-ssa-ifcombine.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-live.h: Likewise.
      	* tree-ssa-loop-ch.c: Likewise.
      	* tree-ssa-loop-im.c: Likewise.
      	* tree-ssa-loop-ivcanon.c: Likewise.
      	* tree-ssa-loop-ivopts.c: Likewise.
      	* tree-ssa-loop-manip.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-loop-unswitch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-operands.c: Likewise.
      	* tree-ssa-operands.h: Likewise.
      	* tree-ssa-phiopt.c: Likewise.
      	* tree-ssa-phiprop.c: Likewise.
      	* tree-ssa-pre.c: Likewise.
      	* tree-ssa-propagate.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-sccvn.c: Likewise.
      	* tree-ssa-sink.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-ter.c: Likewise.
      	* tree-ssa-threadedge.c: Likewise.
      	* tree-ssa-threadupdate.c: Likewise.
      	* tree-ssa-uncprop.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-ssanames.c: Likewise.
      	* tree-switch-conversion.c: Likewise.
      	* tree-tailcall.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-generic.c: Likewise.
      	* tree-vect-loop-manip.c: Likewise.
      	* tree-vect-loop.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-slp.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      	* tree-vectorizer.c: Likewise.
      	* tree-vectorizer.h: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* tree.def: Likewise.
      	* tree.h: Likewise.
      	* treestruct.def: Likewise.
      	* unwind-compat.c: Likewise.
      	* unwind-dw2-fde-glibc.c: Likewise.
      	* unwind-dw2.c: Likewise.
      	* value-prof.c: Likewise.
      	* value-prof.h: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      	* varpool.c: Likewise.
      	* vec.c: Likewise.
      	* vec.h: Likewise.
      	* vmsdbgout.c: Likewise.
      	* web.c: Likewise.
      	* xcoffout.c: Likewise.
      
      From-SVN: r154645
      H.J. Lu committed
  32. 16 Jun, 2009 1 commit
    • df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch. · e1b7793c
      ./:	* df-problems.c (df_simulate_one_insn_forwards): Fix braces in
      	switch.
      	* gcov.c (read_count_file): Add braces around variables declared
      	before label.
      
      	* c.opt (Wjump-misses-init): New warning.
      	* c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
      	-Wall and -Wc++-compat if not already set.
      	(c_common_post_options): Clear warn_jump_misses_init if it was not
      	set.
      	* c-decl.c (struct c_binding): Change type field to a union with
      	new label field.  Make it the first field in the struct.  Update
      	references to type to use u.type instead.
      	(struct c_spot_bindings): Define.
      	(struct c_goto_bindings): Define.
      	(c_goto_bindings_p): Define, along with VECs.
      	(struct c_label_vars): Define.
      	(struct c_scope): Add has_label_bindings field.
      	(bind_label, set_spot_bindings): New static functions.
      	(decl_jump_unsafe, update_spot_bindings): New static functions.
      	(update_label_decls): New static function.
      	(pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
      	Update binding u.label field to shadowed field.
      	(c_binding_start_stmt_expr): New function.
      	(c_binding_end_stmt_expr): New function.
      	(pushdecl): Don't call c_begin_vm_scope.
      	(make_label): Add defining and p_label_vars parameters.  Change
      	all callers.
      	(lookup_label): Correct test for whether a label has not yet been
      	defined.  Call bind_label rather than bind.
      	(warn_about_goto): New static function.
      	(lookup_label_for_goto): New function.
      	(declare_label): Call bind_label rather than bind.
      	(check_earlier_gotos): New static function.
      	(define_label): Don't give errors about jumping into statement
      	expressions or scopes of variably modified types.  Call
      	set_spot_bindings and check_earlier_gotos.  Call bind_label
      	instead of bind.  Don't set label_context_stack_se or
      	label_context_stack_vm.
      	(c_get_switch_bindings): New function.
      	(c_release_switch_bindings): New function.
      	(c_check_switch_jump_warnings): New function.
      	(start_function): Don't set label_context_stack_se or
      	label_context_stack_vm.
      	(finish_function): Likewise.
      	* c-typeck.c (label_context_stack_se): Don't define.
      	(label_context_stack_vm): Don't define.
      	(c_finish_goto_label): Call lookup_label_for_goto rather than
      	lookup_label.  Don't give errors about jumping into a statement
      	expression or the scope of a variably modified type.  Don't set
      	label_context_stack_se or label_context_stack_vm.
      	(struct c_switch): Remove blocked_stmt_expr and blocked_vm
      	fields.  Add bindings field.
      	(c_start_case): Don't set deleted fields.  Set bindings field.
      	(do_case): Rework order of tests.  Don't check blocked_stmt_expr
      	or blocked_vm.  Call c_check_switch_jump_warnings.
      	(c_finish_case): Don't test blocked_stmt_expr field.  Call
      	c_release_switch_bindings.
      	(c_begin_stmt_expr): Don't increment blocked_stmt_expr in
      	c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
      	set label_context_stack_se.  Call c_bindings_start_stmt_expr.
      	(c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
      	c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
      	set label_context_stack_se.  Call c_bindings_end_stmt_expr.
      	(c_begin_vm_scope, c_end_vm_scope): Don't define.
      	* c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
      	(C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
      	(C_DECL_UNJUMPABLE_VM): Don't define.
      	(C_DECL_UNDEFINABLE_VM): Don't define.
      	(struct c_label_list): Don't define.
      	(struct c_label_context_se): Don't define.
      	(struct c_label_context_vm): Don't define.
      	(struct c_spot_bindings): Declare.
      	(c_bindings_start_stmt_expr): Declare.
      	(c_bindings_end_stmt_expr): Declare.
      	(lookup_label_for_goto): Declare.
      	(c_get_switch_bindings, c_release_switch_bindings): Declare.
      	(c_check_switch_jump_warnings): Declare.
      	(label_context_stack_se, label_context_stack_vm): Don't declare.
      	(c_finish_goto_label): Update declaration.
      	(c_begin_vm_scope, c_end_vm_scope): Don't declare.
      	* doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
      	(Warning Options): Document -Wjump-misses-init.
      cp/:
      	* parser.c (cp_parser_direct_declarator): Add braces around
      	variables declared before label.
      objc/:
      	* objc-act.c (objc_start_function): Don't set
      	label_context_stack_se or label_context_stack_vm.
      testsuite/:
      	* gcc.dg/Wjump-misses-init-1.c: New testcase.
      	* gcc.dg/Wjump-misses-init-2.c: New testcase.
      	* gcc.dg/c99-vla-jump-5.c: Adjust expected error messages.
      	Recognize new notes.
      	* gcc.dg/stmt-expr-label-2.c: Likewise.
      	* gcc.dg/c99-vla-jump-1.c: Recognize new notes.  Fix column
      	numbers.
      	* gcc.dg/c99-vla-jump-2.c: Recognize new notes.
      	* gcc.dg/c99-vla-jump-3.c: Recognize new notes.
      	* gcc.dg/c99-vla-jump-4.c: Likewise.
      	* gcc.dg/stmt-expr-label-1.c: Likewise.
      	* gcc.dg/stmt-expr-label-3.c: Likewise.
      	* gcc.dg/vla-8.c: Likewise.  Move error message to different
      	line.
      
      From-SVN: r148512
      Ian Lance Taylor committed
  33. 03 Feb, 2009 1 commit
    • gcc.c (process_command): Update copyright notice dates. · d4f4bc84
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov.c (print_version): Likewise.
      	* gcov-dump.c (print_version): Likewise.
      	* mips-tfile.c (main): Likewise.
      	* mips-tdump.c (main): Likewise.
      
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      
      	* jcf-dump.c (version): Update copyright notice dates.
      
      	* mf-runtime.c (__mf_usage): Update copyright notice dates.
      
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
      
      	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.
      
      From-SVN: r143907
      Jakub Jelinek committed
  34. 03 Oct, 2008 1 commit
  35. 29 Aug, 2008 1 commit
  36. 06 Jun, 2008 1 commit
    • cgraph.c: Fix typos in comments. · fa10beec
      gcc/
      	* cgraph.c: Fix typos in comments.
      	(cgraph_availability_names): Fix string typo.
      	* fold-const.c: Fix typos in comments.
      	(fold_binary): Fix typo in warning.
      	* genautomata.c: Fix typos in comments.
      	(check_presence_pattern_sets): Fix typo in local variable.
      	(output_description): Fix typo in output.
      	* ggc-zone.c (ggc_pch_finish): Fix typo in error message.
      	* hwint.h: Likewise.
      	* matrix-reorg.c (check_allocation_function): Likewise.
      	* omega.c (smooth_weird_equations): Likewise.
      	* auto-inc-dec.c: Fix typos in comments.
      	* bb-reorder.c: Likewise.
      	* builtins.c: Likewise.
      	* c-common.c: Likewise.
      	* c-cppbuiltin.c: Likewise.
      	* c-parser.c: Likewise.
      	* c-pretty-print.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* coverage.c: Likewise.
      	* dbxout.c: Likewise.
      	* df-byte-scan.c: Likewise.
      	* df-core.c: Likewise.
      	* df-problems.c: Likewise.
      	* df-scan.c: Likewise.
      	* dfp.c: Likewise.
      	* dominance.c: Likewise.
      	* domwalk.c: Likewise.
      	* dse.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* et-forest.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattrtab.c: Likewise.
      	* ggc-page.c: Likewise.
      	* gimplify.c: Likewise.
      	* gthr-lynx.h: Likewise.
      	* haifa-sched.c: Likewise.
      	* ipa-cp.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-prop.h: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-struct-reorg.c: Likewise.
      	* ipa-struct-reorg.h: Likewise.
      	* ipa-type-escape.c: Likewise.
      	* ipa.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* mips-tfile.c: Likewise.
      	* mkmap-flat.awk: Likewise.
      	* mkmap-symver.awk: Likewise.
      	* modulo-sched.c: Likewise.
      	* omp-low.c: Likewise.
      	* optabs.c: Likewise.
      	* optabs.h: Likewise.
      	* opts.c: Likewise.
      	* passes.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* pretty-print.h: Likewise.
      	* profile.c: Likewise.
      	* protoize.c: Likewise.
      	* ra-conflict.c: Likewise.
      	* real.c: Likewise.
      	* recog.c: Likewise.
      	* regclass.c: Likewise.
      	* regs.h: Likewise.
      	* reload.c: Likewise.
      	* rtl-error.c: Likewise.
      	* rtlanal.c: Likewise.
      	* scan.h: Likewise.
      	* sched-rgn.c: Likewise.
      	* see.c: Likewise.
      	* stmt.c: Likewise.
      	* target.h: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-flow-inline.h: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-loop-distribution.c: Likewise.
      	* tree-nested.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-pass.h: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-sra.c: Likewise.
      	* tree-ssa-alias-warnings.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-dom.c: Likewise.
      	* tree-ssa-dse.c: Likewise.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-live.h: Likewise.
      	* tree-ssa-loop-im.c: Likewise.
      	* tree-ssa-loop-ivopts.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-phiopt.c: Likewise.
      	* tree-ssa-phiprop.c: Likewise.
      	* tree-ssa-sccvn.c: Likewise.
      	* tree-ssa-ter.c: Likewise.
      	* tree-ssa-threadupdate.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-vect-analyze.c: Likewise.
      	* tree-vect-transform.c: Likewise.
      	* tree-vectorizer.c: Likewise.
      	* tree-vn.c: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* tree.def: Likewise.
      	* tree.h: Likewise.
      	* unwind-dw2-fde.c: Likewise.
      	* unwind.inc: Likewise.
      	* value-prof.c: Likewise.
      	* vmsdbgout.c: Likewise.
      
      From-SVN: r136425
      Ralf Wildenhues committed
  37. 02 Mar, 2008 1 commit
    • re PR driver/35420 (--version copyright date vs. 2008) · 0e5997c0
      	PR driver/35420
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov.c (print_version): Likewise.
      	* gcov-dump.c (print_version): Likewise.
      	* mips-tfile.c (main): Likewise.
      	* mips-tdump.c (main): Likewise.
      
      	* jcf-dump.c (version): Update copyright notice dates.
      
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      
      	* mf-runtime.c (__mf_usage): Update copyright notice dates.
      
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
      
      	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.
      
      From-SVN: r132823
      Jakub Jelinek committed
  38. 21 Aug, 2007 1 commit
    • configure.ac: Add --with-pkgversion and --with-bugurl. · 2f41c1d6
      gcc:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* configure.ac: Add --with-pkgversion and --with-bugurl.
      	* configure: Regenerate.
      	* doc/install.texi: Document them.
      	* version.c (version_string): Remove VERSUFFIX.
      	(VERSUFFIX): Remove.
      	(pkgversion_string): New.
      	(bug_report_url): Do not hard-code initializer.
      	* version.h (pkgversion_string): Declare.
      	* Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
      	Define.
      	(version.o): Define PKGVERSION and BUGURL.
      	(gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
      	(%.pod): Define BUGURL.
      	* gcc.c (process_command, main): Use pkgversion_string.
      	* toplev.c (compile_file, print_version): Likewise.
      	* protoize.c (main): Likewise.
      	* gcov.c (print_version): Likewise.  Update copyright date.
      	* gcov-dump.c (print_version): Likewise.  Update copyright date.
      	* mips-tdump.c (main): Likewise.  Update copyright date.
      	* mips-tfile.c (main): Likewise.  Update copyright date.
      	* doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
      	* doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
      	shorten description.
      	* doc/gcc.texi: Include VERSION_PACKAGE in version description.
      	* doc/gccint.texi: Likewise.
      	* doc/invoke.texi: Use BUGURL for bug-reporting instructions.
      	Update copyright date.
      
      gcc/fortran:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* gfortranspec.c (lang_specific_driver): Use pkgversion_string.
      	* Make-lang.in (gfortran.pod): Define BUGURL.
      	* invoke.texi: Use BUGURL for bug-reporting instructions.
      
      gcc/java:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* jcf-dump.c (version): Use pkgversion_string.  Update copyright
      	date.
      
      gcc/treelang:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* tree1.c (treelang_handle_option): Use pkgversion_string.
      	* treelang.texi (which-treelang): Define to use VERSION_PACKAGE.
      
      maintainer-scripts:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* gcc_release: Do not include copies of bugs.html in releases.
      	* update_web_docs_svn: Set VERSION_PACKAGE and BUGURL in
      	gcc-vers.texi.
      
      Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
      Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
      Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com>
      
      From-SVN: r127667
      Paul Brook committed