Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
libffi43
pr32277.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pr32277.diff of Package libffi43
2008-10-13 Steve Ellcey <sje@cup.hp.com> PR target/32277 * libgcov.c (__gcov_indirect_call_profiler): Check TARGET_VTABLE_USES_DESCRIPTORS. Index: gcc/libgcov.c =================================================================== --- gcc/libgcov.c (revision 141083) +++ gcc/libgcov.c (working copy) @@ -777,7 +777,12 @@ void __gcov_indirect_call_profiler (gcov_type* counter, gcov_type value, void* cur_func, void* callee_func) { - if (cur_func == callee_func) + /* If the C++ virtual tables contain function descriptors then one + function may have multiple descriptors and we need to dereference + the descriptors to see if they point to the same function. */ + if (cur_func == callee_func + || (TARGET_VTABLE_USES_DESCRIPTORS && callee_func + && *(void **) cur_func == *(void **) callee_func)) __gcov_one_value_profiler_body (counter, value); } #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor