Commit a96eb6f2 by Tristan Gingold Committed by Arnaud Charlet

Make-lang.in: Define EH_MECHANISM while building raise-gcc.c.

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

From-SVN: r247339
parent 8ab31c0c
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> 2017-04-27 Eric Botcazou <ebotcazou@adacore.com>
* fe.h (Warn_On_Questionable_Layout): Declare. * fe.h (Warn_On_Questionable_Layout): Declare.
......
...@@ -99,8 +99,6 @@ ADA_TOOLS=gnatbind gnatchop gnat gnatkr gnatlink gnatls gnatmake \ ...@@ -99,8 +99,6 @@ ADA_TOOLS=gnatbind gnatchop gnat gnatkr gnatlink gnatls gnatmake \
ada-warn = $(ADA_CFLAGS) $(filter-out -pedantic, $(STRICT_WARN)) ada-warn = $(ADA_CFLAGS) $(filter-out -pedantic, $(STRICT_WARN))
# Unresolved warnings in specific files. # Unresolved warnings in specific files.
ada/adaint.o-warn = -Wno-error 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 ada/%.o: ada/gcc-interface/%.c
$(COMPILE) $< $(COMPILE) $<
...@@ -611,17 +609,20 @@ TARGET_ADA_SRCS = ...@@ -611,17 +609,20 @@ TARGET_ADA_SRCS =
# Select the right s-excmac according to exception layout (Itanium or arm) # Select the right s-excmac according to exception layout (Itanium or arm)
host_cpu=$(word 1, $(subst -, ,$(host))) host_cpu=$(word 1, $(subst -, ,$(host)))
EH_MECHANISM=-gcc EH_MECHANISM=gcc
ifeq ($(strip $(filter-out arm%,$(host_cpu))),) ifeq ($(strip $(filter-out arm%,$(host_cpu))),)
EH_MECHANISM=-arm EH_MECHANISM=arm
endif 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.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) $< $@ $(CP) $< $@
ada/s-excmac.adb: $(srcdir)/ada/s-excmac$(EH_MECHANISM).adb ada/s-excmac.adb: $(srcdir)/ada/s-excmac-$(EH_MECHANISM).adb
$(CP) $< $@ $(CP) $< $@
# Needs to be built with CC=gcc # Needs to be built with CC=gcc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment