common.opt (fprofile-dir=, [...]): New options
authorSeongbae Park <seongbae.park@gmail.com>
Mon, 31 Mar 2008 21:52:10 +0000 (21:52 +0000)
committerSeongbae Park <spark@gcc.gnu.org>
Mon, 31 Mar 2008 21:52:10 +0000 (21:52 +0000)
commit2f908293e243324e97499a2889a0b208673b34f7
treed9fedd3a8f1f63959b283643213b8eec14e77278
parent1def9c3f7d418a9e197ac24ce97ab20335c7660a
common.opt (fprofile-dir=, [...]): New options

gcc/ChangeLog:
2008-03-31  Seongbae Park <seongbae.park@gmail.com>

* common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
New options
(fprofile-use): Add var flag_profile_use
* coverage.c (coverage_begin_output): Do not open a gcno file for output
only if -ftest-coverage is set.
Do not add getpwd() to gcda file path.
(build_gcov_info): Check the new flag
flag_profile_datafile_relative_path.
(coverage_init): Use profile_data_prefix.
Read profile counter only if flag_profile_use is set.
* opts.c (common_handle_option): New option fprofile-use=,
fprofile-dir=, fprofile-generate=.
* toplev.c (profile_data_prefix): New variable definition.
* toplev.h (profile_data_prefix): New declaration.
* doc/invoke.tex (Option Summary, Optimization Options):
Add new options.

gcc/testsuite/ChangeLog:
2008-03-31  Seongbae Park <seongbae.park@gmail.com>

* g++.db/bprob/bprob.exp: Do not check gcno files.
Use -fprofile-use for profile use.
* gcc.misc-tests/bprob.exp: Ditto.
* g++.dg/tree-pro/tree-prof.exp: Do not check gcno files.
* gcc.dg/matrix/matrix.exp: Ditto.
* gcc.dg/struct/struct-reorg.exp: Ditto.
* gcc.dg/tree-prof/tree-prof.exp: Ditto.
* gcc.dg/profile-dir-1.c: New test.
* gcc.dg/profile-dir-2.c: New test.
* gcc.dg/profile-dir-3.c: New test.

ChangeLog:
2008-03-31  Seongbae Park <seongbae.park@gmail.com>

* Makefile.tpl (.NOTPARALLEL): Serialize stageprofile libiberty.
* Makefile.in (.NOTPARALLEL): Regenerate.

From-SVN: r133774
20 files changed:
ChangeLog
Makefile.in
Makefile.tpl
gcc/ChangeLog
gcc/common.opt
gcc/coverage.c
gcc/doc/invoke.texi
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/bprob/bprob.exp
gcc/testsuite/g++.dg/tree-prof/tree-prof.exp
gcc/testsuite/gcc.dg/matrix/matrix.exp
gcc/testsuite/gcc.dg/profile-dir-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/profile-dir-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/profile-dir-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/struct/struct-reorg.exp
gcc/testsuite/gcc.dg/tree-prof/tree-prof.exp
gcc/testsuite/gcc.misc-tests/bprob.exp
gcc/toplev.c
gcc/toplev.h