Remove use of assignment to multiple struct fields using .fieldname (OMPT)

Remove use of assignment to multiple struct fields using .fieldname syntax. 
This doesn't work with gcc 4.8 and earlier.  Replace with elementwise field assignments.

Patch by John Mellor-Crummey

Differential Revision: http://reviews.llvm.org/D10798

llvm-svn: 240972
This commit is contained in:
Jonathan Peyton 2015-06-29 17:33:03 +00:00
parent ea3e51d73f
commit da7c8ab5a6
1 changed files with 4 additions and 6 deletions

View File

@ -758,10 +758,8 @@ __kmp_task_init_ompt( kmp_taskdata_t * task, int tid )
{
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 @@ __kmp_task_alloc( ident_t *loc_ref, kmp_int32 gtid, kmp_tasking_flags_t *flags,
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