+2017-04-27 Tristan Gingold <gingold@adacore.com>
+
+ * gcc-interface/Make-lang.in: Define EH_MECHANISM while building
+ raise-gcc.c. Fix include search path for raise-gcc.c
+
2017-04-27 Eric Botcazou <ebotcazou@adacore.com>
* fe.h (Warn_On_Questionable_Layout): Declare.
ada-warn = $(ADA_CFLAGS) $(filter-out -pedantic, $(STRICT_WARN))
# Unresolved warnings in specific files.
ada/adaint.o-warn = -Wno-error
-# For unwind-pe.h
-CFLAGS-ada/raise-gcc.o += -I$(srcdir)/../libgcc -Iinclude
ada/%.o: ada/gcc-interface/%.c
$(COMPILE) $<
# Select the right s-excmac according to exception layout (Itanium or arm)
host_cpu=$(word 1, $(subst -, ,$(host)))
-EH_MECHANISM=-gcc
+EH_MECHANISM=gcc
ifeq ($(strip $(filter-out arm%,$(host_cpu))),)
-EH_MECHANISM=-arm
+EH_MECHANISM=arm
endif
+# For unwind-pe.h
+CFLAGS-ada/raise-gcc.o += -I$(srcdir)/../libgcc -DEH_MECHANISM_$(EH_MECHANISM)
+
ada/s-excmac.o: ada/s-excmac.ads ada/s-excmac.adb
-ada/s-excmac.ads: $(srcdir)/ada/s-excmac$(EH_MECHANISM).ads
+ada/s-excmac.ads: $(srcdir)/ada/s-excmac-$(EH_MECHANISM).ads
$(CP) $< $@
-ada/s-excmac.adb: $(srcdir)/ada/s-excmac$(EH_MECHANISM).adb
+ada/s-excmac.adb: $(srcdir)/ada/s-excmac-$(EH_MECHANISM).adb
$(CP) $< $@
# Needs to be built with CC=gcc