Skip to content

Commit d415431

Browse files
committed
fixup! Add openmp support to System z: Fix unwinding
1 parent 6eadf47 commit d415431

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

openmp/runtime/src/z_Linux_asm.S

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,9 +2310,18 @@ __kmp_invoke_microtask:
23102310
.cfi_startproc
23112311

23122312
stmg %r6,%r14,48(%r15)
2313+
.cfi_offset %r6, -112
2314+
.cfi_offset %r7, -104
2315+
.cfi_offset %r8, -96
2316+
.cfi_offset %r9, -88
2317+
.cfi_offset %r10, -80
2318+
.cfi_offset %r11, -72
2319+
.cfi_offset %r12, -64
2320+
.cfi_offset %r13, -56
2321+
.cfi_offset %r14, -48
2322+
.cfi_offset %r15, -40
23132323
lgr %r11,%r15
2314-
.cfi_def_cfa %r15, 0
2315-
.cfi_offset %r15, 0
2324+
.cfi_def_cfa %r11, 160
23162325

23172326
// Compute the dynamic stack size:
23182327
//
@@ -2342,7 +2351,7 @@ __kmp_invoke_microtask:
23422351
#if OMPT_SUPPORT
23432352
// Save frame pointer into exit_frame
23442353
lg %r8,160(%r11)
2345-
stg %r15,0(%r8)
2354+
stg %r11,0(%r8)
23462355
#endif
23472356

23482357
// Prepare arguments for the pkfn function (first 5 using r2-r6 registers)

0 commit comments

Comments
 (0)