123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- $OpenBSD: patch-gcc_ada_gcc-interface_Makefile_in,v 1.4 2016/12/28 21:48:21 pascal Exp $
- --- gcc/ada/gcc-interface/Makefile.in.orig Tue Oct 11 22:03:58 2016
- +++ gcc/ada/gcc-interface/Makefile.in Fri Dec 23 18:24:59 2016
- @@ -419,6 +419,10 @@ ATOMICS_TARGET_PAIRS = \
- a-szunau.adb<a-szunau-shared.adb \
- a-szuzti.adb<a-szuzti-shared.adb
-
- +# Disable shared strings because of overlapping memcpy issue
- +# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64057
- +ATOMICS_TARGET_PAIRS =
- +
- ATOMICS_BUILTINS_TARGET_PAIRS = \
- s-atocou.adb<s-atocou-builtin.adb
-
- @@ -1505,6 +1509,252 @@ ifeq ($(strip $(filter-out %86 freebsd%,$(target_cpu)
- MISCLIB = -lutil
- endif
-
- +ifeq ($(strip $(filter-out arm openbsd%,$(target_cpu) $(target_os))),)
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- + system.ads<system-openbsd-arm.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- +ifeq ($(strip $(filter-out %86 openbsd%,$(target_cpu) $(target_os))),)
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(X86_TARGET_PAIRS) \
- + system.ads<system-openbsd-x86.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- +ifeq ($(strip $(filter-out %86_64 openbsd%,$(target_cpu) $(target_os))),)
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(X86_64_TARGET_PAIRS) \
- + system.ads<system-openbsd-x86_64.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- +ifeq ($(strip $(filter-out sparc64 openbsd%,$(target_cpu) $(target_os))),)
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- + system.ads<system-openbsd-sparcv9.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- +ifeq ($(strip $(filter-out sparc openbsd%,$(target_cpu) $(target_os))),)
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- + system.ads<system-openbsd-sparc.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- +ifeq ($(strip $(filter-out powerpc openbsd%,$(target_cpu) $(target_os))),)
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- + system.ads<system-openbsd-ppc.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- +ifeq ($(strip $(filter-out mips64 openbsd%,$(target_cpu) $(target_os))),)
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- + system.ads<system-openbsd-mips64.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- +ifeq ($(strip $(filter-out mips64el openbsd%,$(target_cpu) $(target_os))),)
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- + system.ads<system-openbsd-mips64el.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- +ifeq ($(strip $(filter-out hppa openbsd%,$(target_cpu) $(target_os))),)
- + ATOMICS_BUILTINS_TARGET_PAIRS = \
- + s-atocou.adb<s-atocou.adb
- +
- + LIBGNAT_TARGET_PAIRS = \
- + a-intnam.ads<a-intnam-freebsd.ads \
- + s-inmaop.adb<s-inmaop-posix.adb \
- + s-intman.adb<s-intman-posix.adb \
- + s-osinte.ads<s-osinte-openbsd.ads \
- + s-osinte.adb<s-osinte-openbsd.adb \
- + s-osprim.adb<s-osprim-posix.adb \
- + s-taprop.adb<s-taprop-posix.adb \
- + s-taspri.ads<s-taspri-posix.ads \
- + s-tpopsp.adb<s-tpopsp-posix.adb \
- + $(ATOMICS_TARGET_PAIRS) \
- + $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- + system.ads<system-openbsd-hppa.ads
- +
- + TOOLS_TARGET_PAIRS = \
- + mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
- + GNATLIB_SHARED = gnatlib-shared-dual
- +
- + # Empty when not using ZCX
- + EH_MECHANISM=
- + THREADSLIB= -lpthread
- + GMEM_LIB = gmemlib
- + LIBRARY_VERSION := $(LIB_VERSION)
- + MISCLIB = -lutil
- +endif
- +
- # x86-64 FreeBSD
- ifeq ($(strip $(filter-out %86_64 freebsd%,$(target_cpu) $(target_os))),)
- LIBGNAT_TARGET_PAIRS = \
- @@ -2447,7 +2697,7 @@ LIBGNAT_OBJS = adadecode.o adaint.o argv.o aux-io.o
- # from ADA_INCLUDE_SRCS.
-
- LIBGNAT_SRCS = $(patsubst %.o,%.c,$(LIBGNAT_OBJS)) \
- - adadecode.h adaint.h env.h gsocket.h raise.h standard.ads.h \
- + adadecode.h adaint.h env.h gsocket.h raise.h \
- tb-gcc.c thread.c $(EXTRA_LIBGNAT_SRCS)
-
- # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
|