aboutsummaryrefslogtreecommitdiff
path: root/libffi/src/m32r
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-09-18 23:21:05 +0930
committerAlan Modra <amodra@gmail.com>2020-09-24 12:44:08 +0930
commit08cd8d5929eac84b27788d8483fd75ab7ad13129 (patch)
treed1f75adbe7f47d535916b92a0e7efa179ebae7e5 /libffi/src/m32r
parent677b9150f54a0483d3de1182ac40717b7c4431a5 (diff)
downloadgcc-08cd8d5929eac84b27788d8483fd75ab7ad13129.zip
gcc-08cd8d5929eac84b27788d8483fd75ab7ad13129.tar.gz
gcc-08cd8d5929eac84b27788d8483fd75ab7ad13129.tar.bz2
[RS6000] Power10 libffi fixes
Power10 pc-relative code doesn't use or preserve r2 as a TOC pointer. That means calling between pc-relative and TOC using code can't be done without intervening linker stubs, and a call from TOC code to pc-relative code must have a nop after the bl in order to restore r2. Now the PowerPC libffi assembly code doesn't use r2 except for the implicit use when making calls back to C, ffi_closure_helper_LINUX64 and ffi_prep_args64. So changing the assembly to interoperate with pc-relative code without stubs is easily done. * src/powerpc/linux64.S (ffi_call_LINUX64): Don't emit global entry when __PCREL__. Call using @notoc. Add nops. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise. (ffi_go_closure_linux64): Likewise.
Diffstat (limited to 'libffi/src/m32r')
0 files changed, 0 insertions, 0 deletions