[Openmp-commits] [PATCH] Improve OMPT code: remove use of assignment to multiple struct fields using .fieldname
Jonathan Peyton
jonathan.l.peyton at intel.com
Mon Jun 29 10:33:22 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D10798
Files:
openmp/trunk/runtime/src/kmp_tasking.c
Index: openmp/trunk/runtime/src/kmp_tasking.c
===================================================================
--- openmp/trunk/runtime/src/kmp_tasking.c
+++ openmp/trunk/runtime/src/kmp_tasking.c
@@ -758,10 +758,8 @@
{
task->ompt_task_info.task_id = __ompt_task_id_new(tid);
task->ompt_task_info.function = NULL;
- task->ompt_task_info.frame = (ompt_frame_t) {
- .exit_runtime_frame = NULL,
- .reenter_runtime_frame = NULL
- };
+ task->ompt_task_info.frame.exit_runtime_frame = NULL;
+ task->ompt_task_info.frame.reenter_runtime_frame = NULL;
}
#endif
@@ -1035,8 +1033,8 @@
if (ompt_status & ompt_status_track) {
taskdata->ompt_task_info.task_id = __ompt_task_id_new(gtid);
taskdata->ompt_task_info.function = (void*) task_entry;
- taskdata->ompt_task_info.frame = (ompt_frame_t)
- { .exit_runtime_frame = NULL, .reenter_runtime_frame = NULL };
+ taskdata->ompt_task_info.frame.exit_runtime_frame = NULL;
+ taskdata->ompt_task_info.frame.reenter_runtime_frame = NULL;
}
#endif
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10798.28687.patch
Type: text/x-patch
Size: 1086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20150629/e2324f88/attachment.bin>
More information about the Openmp-commits
mailing list