summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* aarch64: rewrite range syntax into list to appease ClangYavor Georgiev2015-01-161-4/+4
| | | | Clang's assembler in Xcode 6 appears to choke when the operand of st4 is a range, but is happy with a list.
* New test case for old aarch64 bugAnthony Green2015-01-131-0/+127
|
* Merge pull request #166 from chevah/masterAnthony Green2015-01-101-5/+7
|\ | | | | Fix expr error in Solaris 10 when using gcc.
| * Fix expr error in Solaris 10 when using gcc.Mișu Moldovan2015-01-071-5/+7
| |
* | Merge pull request #165 from rth7680/pccAnthony Green2015-01-104-84/+124
|\ \ | | | | | | Support PCC as producer and consumer
| * | x86: Avoid fastcall when building with pccRichard Henderson2015-01-053-39/+71
| | | | | | | | | | | | | | | | | | Apparently, PCC doesn't support the fastcall calling convention. Nor does it issue a warning or error for the attribute that it does not understand.
| * | x86: Load structure return address into eaxRichard Henderson2015-01-053-48/+56
| | |
* | | Merge pull request #164 from rth7680/darwinAnthony Green2015-01-107-1280/+896
|\ \ \ | |/ / | | | Fix build on darwin
| * | x86: Reinstate hand-written unwind info for sysv.SRichard Henderson2015-01-051-82/+334
| | |
| * | x86: Expand FFI_GO_CLOSURERichard Henderson2015-01-051-22/+49
| | | | | | | | | | | | | | | If we're going to have to hand-write unwind info for darwin, these macros make the job harder.
| * | x86: More Darwin unwind fixupsIain Sandoe2015-01-051-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EHFrame{N} IIRC is a special cue to ld64 that it should treat the unwind in the object as "special/legacy" .. [these days everything is .cfi_xxxx (except, cctools-as, as you noted)] .. without that much confusion arises with ld64's atom-isation of the eh_frame section. xxxx.eh labels are not needed for darwin ld64 >= 85.2.1 (i.e. darwin9, xcode 3.1.4) to all intents and purposes, that's all that matters now, since I think that anyone trying to build on 10.4/darwin8/xcode2.5 would have to use a later ld64 (from odcctools) for other reasons.
| * | x86: Reinstate hand-written unwind info for unix64.SRichard Henderson2015-01-051-26/+151
| | | | | | | | | | | | One more try to get default Darwin to work.
| * | x86: Avoid using gas local labelsRichard Henderson2015-01-052-221/+247
| | | | | | | | | | | | | | | Which are unsupported by Darwin cctools as. Thankfully this doesn't uglify the source too much.
| * | x86: Remove use of .cfi_escapeRichard Henderson2015-01-051-10/+5
| | | | | | | | | | | | | | | | | | The unwind info isn't 100% correct at all points during the epilogue, and not annotating is just as incorrect as the annotation. This works better on systems that do not support DW_OP_call_frame_cfa.
| * | x86: Honor alignment of argumentsRichard Henderson2015-01-051-2/+27
| | | | | | | | | | | | | | | | | | | | | Darwin aligns long-double to 16, and thus all of the long double tests were failing due to not honoring that. We ought to be able to devise a test case for GCC using __attribute__((aligned)) that would have failed too.
| * | x86: Use .balign not .alignRichard Henderson2015-01-052-25/+25
| | | | | | | | | | | | | | | | | | The Apple assembler defaults to power of two alignment, rather than byte alignment like everyone else. Force byte alignment by using the proper directive.
| * | x86: Disable .org for DarwinRichard Henderson2015-01-052-2/+2
| | |
| * | x86: Best guess at update for DarwinRichard Henderson2015-01-056-924/+99
| |/
* | Merge pull request #160 from nobu/msvc-no-complexAnthony Green2015-01-101-0/+2
|\ \ | | | | | | x86: MSVC does not support Complex type
| * | x86: MSVC does not support Complex typeNobuyoshi Nakada2014-12-221-0/+2
| | |
* | | Merge pull request #159 from nobu/fix-void-arithAnthony Green2015-01-101-1/+1
|\ \ \ | |_|/ |/| | x86: Fix void pointer arithmetic
| * | x86: Fix void pointer arithmeticNobuyoshi Nakada2014-12-221-1/+1
| |/
* | Merge pull request #158 from rth7680/s390Anthony Green2014-12-205-682/+566
|\ \ | |/ |/| S390
| * s390: Inline and tidy ffi_prep_argsRichard Henderson2014-12-192-180/+135
| | | | | | | | | | | | As per discussion with Ulrich Weigand, document the restrictions on the code within ffi_call_int as we simultaneously prepare stack frames for ffi_call_SYSV and the target function.
| * s390: Use pc-relative insns in 31-bit modeRichard Henderson2014-12-182-2/+34
| | | | | | | | | | | | It's silly to stick to esa/390 features when the compiler won't. Detect when brasl and larl are used by the compiler and then use them in the assembly.
| * s390: Reorganize assemblyRichard Henderson2014-12-183-456/+286
| | | | | | | | | | | | Avoid using ffi_prep_args as a callback; do all the work setting up the frame within ffi_call_int directly. Save fewer registers in ffi_closure_SYSV.
| * s390: Avoid aliasing warningsRichard Henderson2014-12-181-17/+16
| |
| * s390: Kill trailing whitespaceRichard Henderson2014-12-172-80/+80
| |
| * s390: Go closure supportDominik Vogt2014-12-173-235/+303
|/
* Merge pull request #157 from rth7680/x86Anthony Green2014-12-122-2/+6
|\ | | | | Two fixes for x86
| * x86: Handle void arguments as if an empty structureRichard Henderson2014-12-111-0/+4
| | | | | | | | | | | | Since libffi currently doesn't allow empty structures, libgo currently maps them to ffi_type_void. Given that we'll abort on this case, handle it gracefully.
| * x86: Fix some unwind errorsRichard Henderson2014-12-111-2/+2
| |
* | Merge pull request #156 from rth7680/sparcAnthony Green2014-12-122-9/+30
|\ \ | |/ |/| sparc: Define FFI_TARGET_SPECIFIC_VARIADIC for v9
| * sparc: Define FFI_TARGET_SPECIFIC_VARIADIC for v9Richard Henderson2014-11-182-9/+30
| | | | | | | | | | | | | | | | | | | | | | This is a port of http://gcc.gnu.org/viewcvs?rev=207763&root=gcc&view=rev aka GCC PR libffi/60073, to the rewritten Sparc codebase. Supposedly, we should have seen failures with the existing libffi.call/cls_double_va.c testcase, but I hadn't. Perhaps a gcc newer than 4.6.3 is required to see that...
* | Fix for https://github.com/atgreen/libffi/issues/141James Greenhalgh2014-12-061-0/+5
| |
* | Merge pull request #151 from amodra/masterAnthony Green2014-11-199-321/+418
|\ \ | | | | | | powerpc: go closures for linux
| * | powerpc: Fix ffi_go_closure_linux64Richard Henderson2014-11-201-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike ffi_closure_LINUX64, this entry point is called normally, so we already have the TOC in R2 and the closure in R11. * powerpc/linux64_closure.S (ffi_closure_LINUX64): Remove a register dependency chain. (ffi_go_closure_linux64): Don't load r11 or r2.
| * | GO closures for powerpc linuxAlan Modra2014-11-209-313/+403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plus .cfi async unwind info, rearrangement of ffi_call_linux64 and ffi_call_SYSV function params to avoid register copies, tweaks to trampolines. * src/powerpc/ffitarget.h (FFI_GO_CLOSURES): Define. * src/powerpc/ffi.c (ffi_call_int): New function with extra closure param, and args rearranged on ffi_call_linux64 and ffi_call_SYSV calls, extracted from .. (ffi_call): ..here. (ffi_call_go, ffi_prep_go_closure): New functions. * src/powerpc/ffi_linux64.c (ffi_prep_closure_loc_linux64): Make hidden. Only flush insn part of ELFv2 trampoline. Don't shuffle ELFv1 trampoline. (ffi_closure_helper_LINUX64): Replace closure param with cif, fun, user_data params. * src/powerpc/ffi_powerpc.h (ffi_go_closure_sysv): Declare. (ffi_go_closure_linux64): Declare. (ffi_call_SYSV, fi_call_LINUX64): Update. (ffi_prep_closure_loc_sysv, ffi_prep_closure_loc_linux64): Declare. (ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Update. * src/powerpc/ffi_sysv.c (ASM_NEEDS_REGISTERS): Increase to 6. (ffi_prep_closure_loc_sysv): Use bcl in trampoline, put data words last, flush just the insn part. (ffi_closure_helper_SYSV): Replace closure param with cif, fun and user_data params. * src/powerpc/linux64.S (ffi_call_LINUX64): Replace hand-written .eh_frame with .cfi directives. Adjust for changed param order. Pass extra "closure" param to user function in static chain. Add .cfi directives to describe epilogue. Don't provide traceback table for ELFv2 or _CALL_LINUX. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Replace hand-written .eh_frame with .cfi directives. Adjust for changed ffi_closure_helper_LINUX64 params. Add .cfi directives to describe epilogue. Don't provide traceback table for ELFv2 or _CALL_LINUX. (ffi_go_closure_linux64): New function. * src/powerpc/sysv.S: Remove redundant .globl ffi_prep_args_SYSV. (ffi_call_SYSV): Make hidden. Replace hand-written .eh_frame with .cfi directives. Adjust for changed params. Pass extra "closure" param to user function in static chain. Add .cfi directives to describe epilogue. * src/powerpc/ppc_closure.S (ffi_closure_SYSV): Make hidden. Replace hand-written .eh_frame with .cfi directives. Adjust for changed ffi_closure_helper_SYSV params. Add .cfi directives to describe epilogue. Don't just use nops in the dead __NO_FPRS__ epilogues. (ffi_go_closure_sysv): New function.
| * | Fix powerpc breakage from 6e8a4460Alan Modra2014-11-201-7/+18
|/ / | | | | | | | | | | | | | | * src/powerpc/ffitarget.h: #error on unexpected FFI_TYPE_LAST. (FFI_PPC_TYPE_LAST): Define. (FFI_TYPE_UINT128): Define in terms of FFI_PPC_TYPE_LAST. (FFI_SYSV_TYPE_SMALL_STRUCT, FFI_V2_TYPE_FLOAT_HOMOG): Likewise. (FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Likewise.
* | Merge pull request #148 from gpakosz/dlmalloc-preprocessor-fixAnthony Green2014-11-191-2/+2
|\ \ | |/ |/| dlmalloc: change defined(i386) to defined(__i386__)
| * dlmalloc: change defined(i386) to defined(__i386__)Gregory Pakosz2014-11-181-2/+2
|/ | | | When compiling with --std==c99, GCC and clang don't define i386 but __i386__
* Merge pull request #147 from rth7680/go/alphaAnthony Green2014-11-171-1/+1
|\ | | | | testsuite: Fix alpha static chain register name
| * testsuite: Fix alpha static chain register nameRichard Henderson2014-11-161-1/+1
|/
* Merge pull request #145 from rth7680/masterAnthony Green2014-11-1555-869/+567
|\ | | | | Configure and testsuite cleanups, v2
| * x86: Fix typo in ffi_prep_go_closureRichard Henderson2014-11-141-1/+1
| | | | | | | | Used the wrong register for THISCALL and FASTCALL.
| * testsuite: Add trivial tests for Go closuresRichard Henderson2014-11-145-0/+118
| |
| * testsuite: Move complex tests to their own subdirectoryRichard Henderson2014-11-1443-9/+37
| | | | | | | | | | It seems a bit silly to isolate them by globbing vs "*complex*" when we can just as easily put them in their own subdirectory.
| * testsuite: Use feature test rather than enumeration for complexRichard Henderson2014-11-142-9/+19
| |
| * testsuite: Detect clangRichard Henderson2014-11-141-38/+38
| | | | | | | | | | Clang doesn't like the -Wno-psabi argument that we want to pass to GCC. Since clang is detected as GCC via __GNUC__, use ax_cv_c_compiler_vendor.
| * configure: Move target source selection into configure.hostRichard Henderson2014-11-144-206/+161
| | | | | | | | | | | | | | | | This eliminates the AM_CONDITIONAL ugliness, which eliminates just a bit of extra boilerplate for a new target. At the same time, properly categorize the EXTRA_DIST files into SOURCES and HEADERS, for the generation of ctags.