This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Add aarch64 support for ada
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org, bosch at gnat dot com, charlet at act-europe dot fr
- Date: Wed, 23 Apr 2014 09:37:41 +0200
- Subject: Re: [RFC] Add aarch64 support for ada
- Authentication-results: sourceware.org; auth=none
- References: <1397631733-10377-1-git-send-email-rth at redhat dot com>
> diff --git a/gcc/ada/gcc-interface/Makefile.in
> b/gcc/ada/gcc-interface/Makefile.in index dc5e912..302d9a3 100644
> --- a/gcc/ada/gcc-interface/Makefile.in
> +++ b/gcc/ada/gcc-interface/Makefile.in
> @@ -2123,6 +2123,44 @@ ifeq ($(strip $(filter-out alpha% linux%,$(arch)
> $(osys))),) LIBRARY_VERSION := $(LIB_VERSION)
> endif
>
> +# AArch64 Linux
> +ifeq ($(strip $(filter-out aarch64% linux%,$(arch) $(osys))),)
> + LIBGNAT_TARGET_PAIRS = \
> + a-exetim.adb<a-exetim-posix.adb \
> + a-exetim.ads<a-exetim-default.ads \
> + a-intnam.ads<a-intnam-linux.ads \
> + a-synbar.adb<a-synbar-posix.adb \
> + a-synbar.ads<a-synbar-posix.ads \
> + s-inmaop.adb<s-inmaop-posix.adb \
> + s-intman.adb<s-intman-posix.adb \
> + s-linux.ads<s-linux.ads \
> + s-mudido.adb<s-mudido-affinity.adb \
> + s-osinte.ads<s-osinte-linux.ads \
> + s-osinte.adb<s-osinte-posix.adb \
> + s-osprim.adb<s-osprim-posix.adb \
> + s-taprop.adb<s-taprop-linux.adb \
> + s-tasinf.ads<s-tasinf-linux.ads \
> + s-tasinf.adb<s-tasinf-linux.adb \
> + s-tpopsp.adb<s-tpopsp-tls.adb \
> + s-taspri.ads<s-taspri-posix.ads \
> + g-sercom.adb<g-sercom-linux.adb \
> + $(ATOMICS_TARGET_PAIRS) \
> + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
> + system.ads<system-linux-x86_64.ads
> + ## ^^ Note the above is a pretty-close placeholder.
> +
> + TOOLS_TARGET_PAIRS = \
> + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
> + indepsw.adb<indepsw-gnu.adb
> +
> + EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
> + EH_MECHANISM=-gcc
> + THREADSLIB=-lpthread -lrt
> + GNATLIB_SHARED=gnatlib-shared-dual
> + GMEM_LIB = gmemlib
> + LIBRARY_VERSION := $(LIB_VERSION)
> +endif
> +
> # x86-64 Linux
> ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
> LIBGNAT_TARGET_PAIRS = \
This patch was not made on the mainline but got nevertheless applied on the
mainline, breaking the build on x86 and x86-64 at least as a result.
--
Eric Botcazou