summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/lib/gcov.exp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright years in gcc/rsandifo2014-01-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206289 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-06-19 <singhai@google.com>singhai2013-06-201-3/+76
| | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200232 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyright years in gcc/rsandifo2013-01-101-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195098 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/target-supports-dg.exp (testname-for-summary): New.janis2012-06-261-2/+1
| | | | | | | | | | | | | | | | | | | * lib/profopt.exp (profopt_execute): Define testname_with_flags. * lib/gcc-dg.exp (cleanup-coverage-files, cleanup-repo-notes, cleanup-stack-usage, cleanup-dump, cleanup-saved-temps, scan-module, scan-module-absence, output-exists, output-exists-not: Use testname-for-summary. (dg-test): Clean up testname_with_flags. * lib/scanasm.exp (scan-assembler, scan-assembler-not, scan-hidden, scan-not-hidden, scan-file, scan-file-not, scan-stack-usage, scan-stack-usage-not, scan-assembler-times, scan-assembler-dem, scan-assembler-dem-not, object-size: Use testname-for-summary. * lib/gcov.exp (run-gcov): Likewise. * lib/scandump.exp (scan-dump, scan-dump-times, scan-dump-not, scan-dump-dem, scan-dump-dem-note): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188972 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/gcov.exp (verify-lines, verify-branches, verify-calls): Usejanis2012-06-151-26/+35
| | | | | | | | | | testname that includes flags, passed in as new argument, in pass/fail messages. (run_gcov): Get testname from dg-test, use it in pass/fail messages and pass it to verify-* procedures. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188681 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcov.c (struct arc_info): Add is_throw field.nathan2011-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181949 138bc75d-0d04-0410-961f-82ee72b054a4
* PR gcov-profile/51113nathan2011-12-011-16/+31
| | | | | | | | | | | | | | | | | | * coverage.c (build_var): Keep coverage variables static. testsuite/ * lib/gcov.exp (verify-lines): Add support for xfailing. (run-gcov): Likewise. * gcc.misc-tests/gcov-13.c: Xfail weak function. * gcc.misc-tests/gcov-16.c: Remove. * gcc.misc-tests/gcov-17.c: Remove. * g++.dg/gcov-8.C: Remove. * g++.dg/gcov-9.C: Remove. * g++.dg/gcovpart-12b.C: New. * g++.dg/gcov-12.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181892 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/ChangeLog:spark2007-08-161-1/+3
| | | | | | | | | | | | | | | | | | 2007-08-16 Seongbae Park <seongbae.park@gmail.com> * tree-eh.c (lower_try_finally_onedest): Reset the locus of GOTO that's relocated to a different block. gcc/testsuite/ChangeLog: 2007-08-16 Seongbae Park <seongbae.park@gmail.com> * g++.dg/gcov/gcov-4.C: New test. * lib/gcov.exp (verify-lines): Add support for checking no-coverage lines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127562 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c-torture/execute/execute.exp: Change copyright header to refer to versionnickc2007-08-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3 of the GNU General Public License and to point readers at the COPYING3 file and the FSF's license web page. * gcc.c-torture/execute/ieee/ieee.exp, gcc.c-torture/unsorted/unsorted.exp, gcc.c-torture/compile/compile.exp, gcc.c-torture/compile/structs.c, gcc.target/powerpc/powerpc.exp, gcc.target/arm/neon/neon.exp, gcc.target/arm/arm.exp, gcc.target/cris/torture/cris-torture.exp, gcc.target/cris/cris.exp, gcc.target/ia64/ia64.exp, gcc.target/alpha/alpha.exp, gcc.target/m68k/m68k.exp, gcc.target/spu/spu.exp, gcc.target/mips/mips.exp, gcc.target/sparc/sparc.exp, gcc.target/i386/i386.exp, gcc.target/x86_64/abi/abi-x86_64.exp, gnat.dg/specs/specs.exp, gnat.dg/dg.exp, gnat.dg/style/style.exp, gcc.dg/special/mips-abi.exp, gcc.dg/special/special.exp, gcc.dg/pch/pch.exp, gcc.dg/vxworks/vxworks.exp, gcc.dg/dg.exp, gcc.dg/charset/charset.exp, gcc.dg/weak/weak.exp, gcc.dg/tree-ssa/tree-ssa.exp, gcc.dg/tls/tls.exp, gcc.dg/cpp/cpp.exp, gcc.dg/cpp/trad/trad.exp, gcc.dg/matrix/matrix.exp, gcc.dg/vmx/vmx.exp, gcc.dg/compat/struct-layout-1.exp, gcc.dg/compat/compat.exp, gcc.dg/compat/struct-layout-1_generate.c, gcc.dg/debug/debug.exp, gcc.dg/debug/dwarf2/dwarf2.exp, gcc.dg/tree-prof/tree-prof.exp, gcc.dg/ipa/ipa.exp, gcc.dg/dfp/dfp.exp, gcc.dg/noncompile/noncompile.exp, gcc.dg/vect/costmodel/ppc/ppc-costmodel-vect.exp, gcc.dg/vect/costmodel/spu/spu-costmodel-vect.exp, gcc.dg/vect/costmodel/i386/i386-costmodel-vect.exp, gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp, gcc.dg/vect/vect.exp, gcc.dg/format/format.exp, gcc.misc-tests/i386-prefetch.exp, gcc.misc-tests/sort2.exp, gcc.misc-tests/matrix1.exp, gcc.misc-tests/dectest.exp, gcc.misc-tests/options.exp, gcc.misc-tests/gcov.exp, gcc.misc-tests/mg-2.exp, gcc.misc-tests/mg.exp, gcc.misc-tests/bprob.exp, gcc.misc-tests/acker1.exp, gcc.misc-tests/dhry.exp, gcc.misc-tests/linkage.exp, gcc.misc-tests/arm-isr.exp, gcc.misc-tests/sieve.exp, g++.old-deja/g++.niklas/README, g++.old-deja/g++.gb/README, g++.old-deja/old-deja.exp, gfortran.fortran-torture/execute/execute.exp, gfortran.fortran-torture/compile/compile.exp, treelang/output/output-1.c, treelang/output/output-1.tree, treelang/execute/execute.exp, treelang/Makefile.in, treelang/compile/compile.exp, g++.dg/dg.exp, g++.dg/debug/debug.exp, g++.dg/debug/dwarf2/dwarf2.exp, g++.dg/charset/charset.exp, g++.dg/vect/vect.exp, g++.dg/tls/tls.exp, g++.dg/tree-prof/tree-prof.exp, g++.dg/pch/pch.exp, g++.dg/special/ecos.exp, g++.dg/compat/struct-layout-1.exp, g++.dg/compat/struct-layout-1_generate.c, g++.dg/compat/compat.exp, g++.dg/gcov/gcov.exp, g++.dg/bprob/bprob.exp, config/default.exp, gcc.test-framework/test-framework.awk, gcc.test-framework/gen_directive_tests, gcc.test-framework/test-framework.exp, objc.dg/special/special.exp, objc.dg/gnu-encoding/gnu-encoding.exp, objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c, objc.dg/pch/pch.exp, objc.dg/dg.exp, lib/copy-file.exp, lib/profopt.exp, lib/gcc.exp, lib/mike-g++.exp, lib/c-compat.exp, lib/scanrtl.exp, lib/gfortran-dg.exp, lib/g++.exp, lib/obj-c++.exp, lib/wrapper.exp, lib/gnat-dg.exp, lib/compat.exp, lib/c-torture.exp, lib/gcc-dg.exp, lib/scanasm.exp, lib/gnat.exp, lib/treelang-dg.exp, lib/prune.exp, lib/gcov.exp, lib/treelang.exp, lib/dg-pch.exp, lib/scantree.exp, lib/g++-dg.exp, lib/objc-dg.exp, lib/file-format.exp, lib/target-libpath.exp, lib/obj-c++-dg.exp, lib/scandump.exp, lib/target-supports-dg.exp, lib/gcc-defs.exp, lib/fortran-torture.exp, lib/objc.exp, lib/scanipa.exp, lib/mike-gcc.exp, lib/objc-torture.exp, lib/gfortran.exp, lib/target-supports.exp, obj-c++.dg/dg.exp, gfortran.dg/dg.exp, gfortran.dg/vect/vect.exp, objc/execute/execute.exp, objc/execute/exceptions/exceptions.exp, objc/compile/compile.exp: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127127 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-01-11 H.J. Lu <hongjiu.lu@intel.com>hjl2006-01-121-0/+1
| | | | | | | | PR testsuite/25728 * lib/gcov.exp (verify-lines): Add "close $fd". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109627 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/gcov.exp (clean-gcov): Also remove $base.h.gcov files.uros2005-12-011-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107803 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address.kcook2005-06-251-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101316 138bc75d-0d04-0410-961f-82ee72b054a4
* * consistency.vlad/vlad.exp: Remove trailing semicolons.bje2005-03-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * g++.dg/gcov/gcov.exp: Likewise. * gcc.c-torture/execute/ieee/ieee.exp: Likewise. * gcc.target/xstormy16/xstormy16.exp: Likewise. * lib/c-torture.exp: Likewise. * lib/fortran-torture.exp: Likewise. * lib/g++.exp: Likewise. * lib/gcc-defs.exp: Likewise. * lib/gcc-dg.exp: Likewise. * lib/gcc.exp: Likewise. * lib/gcov.exp: Likewise. * lib/gfortran.exp: Likewise. * lib/mike-g++.exp: Likewise. * lib/mike-gcc.exp: Likewise. * lib/objc-torture.exp: Likewise. * lib/objc.exp: Likewise. * lib/profopt.exp: Likewise. * lib/target-libpath.exp: Likewise. * lib/target-supports.exp: Likewise. * lib/treelang.exp: Likewise. * lib/wrapper.exp: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96132 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/bprob/bprob.exp (prof_ext): Update.nathan2003-07-091-1/+1
| | | | | | | | | | | * g77.dg/bprob/bprob.exp (prof_ext): Update. * gcc.misc-tests/bprob.exp (prof_ext): Update. * gcc.misc-tests/gcov.exp: Update * g++.dg/gcov/gcov.exp: Update * lib/gcov.exp: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69145 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcov.c: Add -a & -u options.nathan2003-03-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65090 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/gcov.exp (run-gcov): Add branches and calls options, rathermmitchel2003-03-271-20/+23
| | | | | | | | | | | | | | | | | | | | | than reading .x files. * g++.dg/gcov/gcov-1.C: Use run-gcov options, not .x files. * g77.dg/gcov/gcov-1.f: Likewise. * gcc.misc-tests/gcov-4b.c: Likewise. * gcc.misc-tests/gcov-5b.c: Likewise. * gcc.misc-tests/gcov-6.c: Likewise. * gcc.misc-tests/gcov-7.c: Likewise. * gcc.misc-tests/gcov-8.c: Likewise. * g++.dg/gcov/gcov-1.x: Remove. * g77.dg/gcov/gcov-1.x: Likewise. * gcc.misc-tests/gcov-4b.x: Likewise. * gcc.misc-tests/gcov-5b.x: Likewise. * gcc.misc-tests/gcov-6.x: Likewise. * gcc.misc-tests/gcov-7.x: Likewise. * gcc.misc-tests/gcov-8.x: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64937 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:nathan2002-08-051-93/+28
| | | | | | | | | | | * gcov.c (output_data): Round to % to nearest, tweak formatting. testsuite: * lib/gcov.exp: Tweak expected line formats. * gcc.misc-tests/gcov8.c: New test. * gcc.misc-tests/gcov8.x: New flags. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56059 138bc75d-0d04-0410-961f-82ee72b054a4
* Verify gcov output; most of this file was previously in gcc.misc-tests/janis2001-09-111-0/+360
gcov.exp but was moved so it can be used for other languages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45545 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud