+2019-11-12 Olivier Hainque <hainque@adacore.com>
+
+ * config/t-gthr-vxworksae: New file, add all the gthr-vxworks
+ sources except the cxx0x support to LIB2ADDEH. We don't support
+ cxx0x on AE/653.
+ * config/t-vxworksae: New file.
+ * config.host: Handle *-*-vxworksae: Add the two aforementioned
+ Makefile fragment files at their expected position in the tmake_file
+ list, in accordance with what is done for other VxWorks variants.
+
2019-11-12 Corentin Gay <gay@adacore.com>
Jerome Lambourg <lambourg@adacore.com>
Olivier Hainque <hainque@adacore.com>
*-*-vxworks7*)
tmake_file=t-vxworks7
;;
+*-*-vxworksae*)
+ tmake_file=t-vxworksae
+ ;;
*-*-vxworks*)
tmake_file=t-vxworks
;;
case ${target_thread_file} in
vxworks)
case ${host} in
+ *-*-vxworksae)
+ tmake_file="${tmake_file} t-gthr-vxworksae"
+ ;;
*-*-vxworks*)
tmake_file="${tmake_file} t-gthr-vxworks"
;;
--- /dev/null
+# Extra libgcc2 modules used by gthr-vxworks.h functions. We don't
+# support the C++ threads on vx653.
+
+LIB2ADDEH += $(srcdir)/config/gthr-vxworks.c\
+ $(srcdir)/config/gthr-vxworks-cond.c\
+ $(srcdir)/config/gthr-vxworks-tls.c
+
--- /dev/null
+# Don't build libgcc.a with debug info
+LIBGCC2_DEBUG_CFLAGS =
+
+# We do not have access to the cache library when building a vThreads
+# application.
+
+# This ensures that the correct target headers are used; some VxWorks
+# system headers have names that collide with GCC's internal (host)
+# headers, e.g. regs.h. Make sure the local libgcc headers still
+# prevail (e.g. unwind.h), and that gcc provided header files intended
+# to be user visible eventually are visible as well.
+LIBGCC2_INCLUDES = -nostdinc -I. \
+ -I$(MULTIBUILDTOP)../../gcc/include \
+ `case "/$(MULTIDIR)" in \
+ */mvthreads*) echo -I$(WIND_BASE)/target/vThreads/h -I$(WIND_BASE)/target/val/h -I$(WIND_BASE)/target/h/wrn/coreip ;; \
+ *) echo -I$(WIND_BASE)/target/h -I$(WIND_BASE)/target/h/wrn/coreip ;; \
+ esac`