[PATCH] Add amdgcn support for libgfortran.

Andrew Stubbs ams@codesourcery.com
Fri Jun 7 14:55:00 GMT 2019


From: Kwok Cheung Yeung <kcy@codesourcery.com>

This patch adds enough support for constructors/destructors and OS functions
to be able to link and run gfortran programs on AMD GCN.

There's no actual ability to do I/O operations on this targets, besides
"write" to stdout and stderr, so most of the functions are just stubs.
---
 newlib/configure.host              |  1 +
 newlib/libc/sys/amdgcn/Makefile.am |  3 +-
 newlib/libc/sys/amdgcn/Makefile.in | 52 ++++++++++++++++++++++++++++--
 newlib/libc/sys/amdgcn/fcntl.c     | 24 ++++++++++++++
 newlib/libc/sys/amdgcn/getpid.c    | 20 ++++++++++++
 newlib/libc/sys/amdgcn/kill.c      | 23 +++++++++++++
 newlib/libc/sys/amdgcn/open.c      | 25 ++++++++++++++
 newlib/libc/sys/amdgcn/raise.c     | 20 ++++++++++++
 newlib/libc/sys/amdgcn/stat.c      | 24 ++++++++++++++
 newlib/libc/sys/amdgcn/unlink.c    | 23 +++++++++++++
 10 files changed, 212 insertions(+), 3 deletions(-)
 create mode 100644 newlib/libc/sys/amdgcn/fcntl.c
 create mode 100644 newlib/libc/sys/amdgcn/getpid.c
 create mode 100644 newlib/libc/sys/amdgcn/kill.c
 create mode 100644 newlib/libc/sys/amdgcn/open.c
 create mode 100644 newlib/libc/sys/amdgcn/raise.c
 create mode 100644 newlib/libc/sys/amdgcn/stat.c
 create mode 100644 newlib/libc/sys/amdgcn/unlink.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-amdgcn-support-for-libgfortran.patch
Type: text/x-patch
Size: 12546 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20190607/bbf82a11/attachment.bin>


More information about the Newlib mailing list