Skip to content

Commit

Permalink
libffi v3.4.2 of loongarch64 support (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
theaoqi authored Feb 24, 2022
1 parent 2a4c9f4 commit 12ad1e9
Show file tree
Hide file tree
Showing 7 changed files with 966 additions and 1 deletion.
4 changes: 3 additions & 1 deletion native/libffi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ noinst_HEADERS = src/aarch64/ffitarget.h src/aarch64/internal.h \
src/avr32/ffitarget.h src/bfin/ffitarget.h \
src/cris/ffitarget.h src/csky/ffitarget.h src/frv/ffitarget.h \
src/ia64/ffitarget.h src/ia64/ia64_flags.h \
src/loongarch/ffitarget.h \
src/m32r/ffitarget.h src/m68k/ffitarget.h \
src/m88k/ffitarget.h src/metag/ffitarget.h \
src/microblaze/ffitarget.h src/mips/ffitarget.h \
Expand All @@ -72,7 +73,8 @@ EXTRA_libffi_la_SOURCES = src/aarch64/ffi.c src/aarch64/sysv.S \
src/avr32/ffi.c src/avr32/sysv.S src/bfin/ffi.c \
src/bfin/sysv.S src/cris/ffi.c src/cris/sysv.S src/frv/ffi.c \
src/csky/ffi.c src/csky/sysv.S src/frv/eabi.S src/ia64/ffi.c \
src/ia64/unix.S src/m32r/ffi.c src/m32r/sysv.S src/m68k/ffi.c \
src/ia64/unix.S src/loongarch/ffi.c src/loongarch/sysv.S \
src/m32r/ffi.c src/m32r/sysv.S src/m68k/ffi.c \
src/m68k/sysv.S src/m88k/ffi.c src/m88k/obsd.S \
src/metag/ffi.c src/metag/sysv.S src/microblaze/ffi.c \
src/microblaze/sysv.S src/mips/ffi.c src/mips/o32.S \
Expand Down
3 changes: 3 additions & 0 deletions native/libffi/config.guess
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,9 @@ EOF
k1om:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
loongarch32:Linux:*:* | loongarch64:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
m32r*:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
Expand Down
1 change: 1 addition & 0 deletions native/libffi/config.sub
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,7 @@ case $cpu-$vendor in
| k1om \
| le32 | le64 \
| lm32 \
| loongarch32 | loongarch64 \
| m32c | m32r | m32rle \
| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
Expand Down
5 changes: 5 additions & 0 deletions native/libffi/configure.host
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ case "${host}" in
SOURCES="ffi.c sysv.S"
;;

loongarch64-*-*)
TARGET=LOONGARCH; TARGETDIR=loongarch
SOURCES="ffi.c sysv.S"
;;

m32r*-*-*)
TARGET=M32R; TARGETDIR=m32r
SOURCES="ffi.c sysv.S"
Expand Down
Loading

0 comments on commit 12ad1e9

Please sign in to comment.