diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-29 17:33:03 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-29 17:33:03 +0000 |
commit | da7c8ab5a661b7cf775f1aabe05faee4ef91f7e9 (patch) | |
tree | d86b0acd2acfcf459851ffb028b6104bf30a0c6b /openmp/runtime/src | |
parent | ea3e51d73f01de908030e9dc5c7654cc657a19cc (diff) | |
download | bcm5719-llvm-da7c8ab5a661b7cf775f1aabe05faee4ef91f7e9.tar.gz bcm5719-llvm-da7c8ab5a661b7cf775f1aabe05faee4ef91f7e9.zip |
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
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r-- | openmp/runtime/src/kmp_tasking.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/openmp/runtime/src/kmp_tasking.c b/openmp/runtime/src/kmp_tasking.c index b43bf1e3068..d1a94f690aa 100644 --- a/openmp/runtime/src/kmp_tasking.c +++ b/openmp/runtime/src/kmp_tasking.c @@ -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 |