Skip to content
Snippets Groups Projects
  1. Jun 05, 2018
  2. May 29, 2018
    • Martin Liska's avatar
      libgcov: report about a different timestamp (PR gcov-profile/85759). · 0e8f29da
      Martin Liska authored
      2018-05-29  Martin Liska  <mliska@suse.cz>
      
              PR gcov-profile/85759
      	* doc/gcov.texi: Document GCOV_ERROR_FILE and GCOV_EXIT_AT_ERROR
      	env variables.
      2018-05-29  Martin Liska  <mliska@suse.cz>
      
              PR gcov-profile/85759
      	* libgcov-driver-system.c (gcov_error): Introduce usage of
              GCOV_EXIT_AT_ERROR env. variable.
      	* libgcov-driver.c (merge_one_data): Print error that we
              overwrite a gcov file with a different timestamp.
      
      From-SVN: r260895
      0e8f29da
  3. Jan 03, 2018
  4. Jan 01, 2017
  5. Jun 06, 2016
  6. Jun 02, 2016
    • Aaron Conole's avatar
      On behalf of Aaron Conole <aconole@redhat.com> · 8aa5bdd6
      Aaron Conole authored
      On behalf of  Aaron Conole  <aconole@redhat.com>
      	* libgcov-driver-system.c (__gcov_error_file): New.
      	(get_gcov_error_file): New.
      	(gcov_error): Use and set __gcov_error_file.
      	(gcov_error_exit): New.
      	* libgcov-driver.c (gcov_exit): Call gcov_error_exit.
      
      From-SVN: r237033
      8aa5bdd6
  7. Jan 04, 2016
  8. Feb 10, 2015
  9. Jan 05, 2015
  10. Jul 27, 2014
    • Nathan Sidwell's avatar
      libgcov-driver.c (struct gcov_filename_aux): Rename ... · 6dc33097
      Nathan Sidwell authored
      	* libgcov-driver.c (struct gcov_filename_aux): Rename ...
      	(struct gcov_filename): ... here.  Include buffer and max length
      	fields.
      	(gcov_max_filename): Remove.
      	(gi_filename): Remove.
      	(gcov_exit_compute_summary): Compute max filename here.
      	(gcov_exit_merge_gcda): Add filename parm, adjust.
      	(gcov_exit_merge_summary): Likewise.
      	(gcov_exit_dump_gcov): Adjust for struct gcov_filename changes.
      	(gcov_exit): Likewise.
      	(__gcov_init): Don't calculate max length here.
      	* libgcov_util.c (max_filename_len): Remove.
      	(read_gcda_file): Don't calculate max length here.
      	(gcov_read_profile_dir): Don't propagate here.
      	* libgcov-driver-system.c (alloc_filename_struct): Adjust for
      	struct gcov_filename changes.
      	(gcov_exit_open_gcda_file): Likewise.
      
      From-SVN: r213092
      6dc33097
  11. Jan 08, 2014
    • Rong Xu's avatar
      gcov-io.c (gcov_var): Move from gcov-io.h. · 40d6b753
      Rong Xu authored
      2014-01-08  Rong Xu  <xur@google.com> 
      
      	* gcc/gcov-io.c (gcov_var): Move from gcov-io.h.
      	(gcov_position): Ditto.
      	(gcov_is_error): Ditto.
      	(gcov_rewrite): Ditto.
      	* gcc/gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
      	only part to libgcc/libgcov.h.
      	* libgcc/libgcov-driver.c: Use libgcov.h.
      	(buffer_fn_data): Use xmalloc instead of malloc.
      	(gcov_exit_merge_gcda): Ditto.
      	* libgcc/libgcov-driver-system.c (allocate_filename_struct): Ditto.
      	* libgcc/libgcov.h: New common header files for libgcov-*.h.
      	* libgcc/libgcov-interface.c: Use libgcov.h
      	* libgcc/libgcov-merge.c: Ditto.
      	* libgcc/libgcov-profiler.c: Ditto.
      	* libgcc/Makefile.in: Add dependence to libgcov.h
      
      From-SVN: r206435
      40d6b753
  12. Jan 02, 2014
  13. Nov 13, 2013
    • Rong Xu's avatar
      The patch re-factors libgcov.c to make it better modulelized. · d6d3f033
      Rong Xu authored
      2013-11-12  Rong Xu  <xur@google.com>
      
      The patch re-factors libgcov.c to make it better modulelized.
      It contains two pieces of work:
      1. break gcov_exit() into the following structure:
         gcov_exit()
            --> gcov_exit_compute_summary()
            --> allocate_filename_struct()
                for gi_ptr in gcov_list
                  --> gcov_exit_dump_gcov()
                         --> gcov_exit_open_gcda_file()
                         --> gcov_exit_merge_gcda ()
                         --> gcov_exit_merge_summary ()
                         --> gcov_exit_write_gcda ()
      2. split libgcov.c into the following files:
           libgcov-profiler.c
           libgcov-merge.c
           libgcov-interface.c
           libgcov-driver.c
             libgcov-driver-system.c (source included into libgcov-driver.c)
      
      	* libgcc/libgcov.c: Delete as part of re-factoring.
      	* gcc/gcov-io.h (__gcov_indirect_call_profiler): Add the decl to
              avoid warning.
      	* libgcc/libgcov-interface.c (init_mx): Moved from libgcov.c.
      	(init_mx_once): Ditto.
      	(__gcov_flush): Ditto.
      	(__gcov_reset): Ditto.
      	(__gcov_dump): Ditto.
      	(__gcov_fork): Ditto.
      	(__gcov_execl): Ditto.
      	(__gcov_execlp): Ditto.
      	(__gcov_execle): Ditto.
      	(__gcov_execv): Ditto.
      	(__gcov_execvp): Ditto.
      	(__gcov_execve): Ditto.
              * libgcc/libgcov-merge.c (__gcov_merge_time_profile): Moved from
              libgcov.c.
      	(__gcov_merge_add): Ditto.
      	(__gcov_merge_ior): Ditto.
      	(__gcov_merge_single): Ditto.
      	(__gcov_merge_delta): Ditto.
      	* libgcc/libgcov-profiler.c 
      	(__gcov_interval_profiler): Ditto.
      	(__gcov_pow2_profiler): Ditto.
      	(__gcov_one_value_profiler_body): Ditto.
      	(__gcov_one_value_profiler): Ditto.
      	(__gcov_indirect_call_profiler): Ditto.
      	(__gcov_indirect_call_profiler_v2): Ditto.
      	(__gcov_time_profiler): Ditto.
      	(__gcov_average_profiler): Ditto.
      	(__gcov_ior_profiler): Ditto.
      	* libgcc/libgcov-driver.c (set_gcov_list): New.
      	(get_gcov_dump_complete): Ditto.
      	(set_gcov_dump_complete):Ditto.
      	(reset_gcov_dump_complete):Ditto.
      	(gcov_exit_compute_summary): New function split from gcov_exit().
      	(gcov_exit_merge_gcda): Ditto.
      	(gcov_exit_write_gcda): Ditto.
      	(gcov_exit_merge_summary): Ditto.
      	(gcov_exit_dump_gcov): Ditto.
      	(struct gcov_fn_buffer): Moved from libgcov.c
      	(struct gcov_summary_buffer): Ditto.
      	(free_fn_data): Ditto.
      	(buffer_fn_data): Ditto.
      	(crc32_unsigned): Ditto.
      	(gcov_version): Ditto.
      	(gcov_histogram_insert): Ditto.
      	(gcov_compute_histogram): Ditto.
      	(gcov_exit): Ditto.
      	(gcov_clear): Ditto.
      	(__gcov_init): Ditto.
              (this_prg): Make it file scope static variable.
              (all_prg): Ditto.
              (crc32): Ditto.
              (gi_filename): Ditto.
              (fn_buffer): Ditto.
              (sum_buffer): Ditto.
              (struct gcov_filename_aux): New types to store auxiliary information
              for gi_filename.
      	* libgcc/libgcov-driver-system.c (gcov_error): New utility function.
      	(allocate_filename_struct): New function split from gcov_exit().
      	(gcov_exit_open_gcda_file): Ditto.
      	(create_file_directory): Moved from libgcov.c
      	* libgcc/Makefile.in: Change to build newly added files.
      
      From-SVN: r204730
      d6d3f033
Loading