r207707 - in /branches/google/gcc-4_8/gcc: cove...
wmi@gcc.gnu.org
wmi@gcc.gnu.org
Wed Feb 12 00:55:00 GMT 2014
Author: wmi
Date: Wed Feb 12 00:55:36 2014
New Revision: 207707
URL: http://gcc.gnu.org/viewcvs?rev=207707&root=gcc&view=rev
Log:
This patch is to prevent gcov counter related ssa name from being used
as induction variables. gcov counter may have data race in multithread
program. It is compiler's responsiblity to prevent gcov counter related
variables from affecting program's correctness, so gcov counter related
ssa name cannot be used as IV in IVOPT.
2014-02-11 Wei Mi <wmi@google.com>
* tree-ssa-loop-ivopts.c (defined_by_gcov_counter): New.
(contains_abnormal_ssa_name_p): Add defined_by_gcov_counter
check for ssa name.
* coverage.c (build_var): Set DECL_ARTIFICIAL(gcov var decl)
to be 1.
* testsuite/gcc.dg/profile-generate-4.c: New.
Added:
branches/google/gcc-4_8/gcc/testsuite/gcc.dg/profile-generate-4.c
Modified:
branches/google/gcc-4_8/gcc/coverage.c
branches/google/gcc-4_8/gcc/tree-ssa-loop-ivopts.c
More information about the Gcc-cvs
mailing list