File tree 1 file changed +10
-2
lines changed 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -232,10 +232,18 @@ ompt_label_##id:
232
232
// On s390x the NOP instruction is 2 bytes long. For non-void runtime
233
233
// functions Clang inserts a STY instruction (but only if compiling under
234
234
// -fno-PIC which will be the default with Clang 8.0, another 6 bytes).
235
+ //
236
+ // Another possibility is:
237
+ //
238
+ // brasl %r14,__kmpc_end_master@plt
239
+ // a7 f4 00 02 j 0f
240
+ // 47 00 00 00 0: nop
241
+ // a7 f4 00 02 j addr
242
+ // addr:
235
243
#define print_possible_return_addresses (addr ) \
236
- printf("%" PRIu64 ": current_address=%p or %p\n", \
244
+ printf("%" PRIu64 ": current_address=%p or %p or %p \n", \
237
245
ompt_get_thread_data()->value, ((char *)addr) - 2, \
238
- ((char *)addr) - 8)
246
+ ((char *)addr) - 8, ((char *)addr) - 12 )
239
247
#else
240
248
#error Unsupported target architecture, cannot determine address offset!
241
249
#endif
You can’t perform that action at this time.
0 commit comments