summaryrefslogtreecommitdiff
path: root/translate/ghdldrv
diff options
context:
space:
mode:
authorTristan Gingold2014-09-06 06:43:21 +0200
committerTristan Gingold2014-09-06 06:43:21 +0200
commit75fcb55685369ab176541cdce4b0874bd1774f55 (patch)
tree7fd55fc6c2ce1dc35966ed1413545c55eca5c2e3 /translate/ghdldrv
parentfe6ff5794545ce9f7d00985b55cf9d5b18725ea0 (diff)
downloadghdl-75fcb55685369ab176541cdce4b0874bd1774f55.tar.gz
ghdl-75fcb55685369ab176541cdce4b0874bd1774f55.tar.bz2
ghdl-75fcb55685369ab176541cdce4b0874bd1774f55.zip
First run of OSVVM_2014_01 with gcc backend.
Diffstat (limited to 'translate/ghdldrv')
-rw-r--r--translate/ghdldrv/Makefile18
-rw-r--r--translate/ghdldrv/ghdlrun.adb4
2 files changed, 20 insertions, 2 deletions
diff --git a/translate/ghdldrv/Makefile b/translate/ghdldrv/Makefile
index fc24312..c446426 100644
--- a/translate/ghdldrv/Makefile
+++ b/translate/ghdldrv/Makefile
@@ -15,7 +15,7 @@
# along with GCC; see the file COPYING. If not, write to the Free
# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
-GNATFLAGS=-gnaty3befhkmr -gnata -gnatwae -aI../.. -aI.. -aI../../psl -aI../grt -aO.. -g -gnatf -gnat05
+GNATFLAGS=-gnaty3befhkmr -gnata -gnatwael -aI../.. -aI.. -aI../../psl -aI../grt -aO.. -g -gnatf -gnat05
GRT_FLAGS=-g
LIB_CFLAGS=-g -O2
GNATMAKE=gnatmake
@@ -142,18 +142,32 @@ else
$(RM) std_standard.s
endif
+$(LIB08_DIR)/std/std_standard.o: $(GHDL1)
+ifeq ($(GHDL),ghdl_llvm)
+ $(GHDL1) --std=08 -quiet $(LIB_CFLAGS) -c -o $@ --compile-standard
+else
+ $(GHDL1) --std=08 -quiet $(LIB_CFLAGS) -o std_standard.s \
+ --compile-standard
+ $(CC) -c -o $@ std_standard.s
+ $(RM) std_standard.s
+endif
+
install.v93: std.v93 ieee.v93 synopsys.v93 mentor.v93
install.v87: std.v87 ieee.v87 synopsys.v87
install.v08: std.v08 ieee.v08
install.standard: $(LIB93_DIR)/std/std_standard.o \
- $(LIB87_DIR)/std/std_standard.o
+ $(LIB87_DIR)/std/std_standard.o \
+ $(LIB08_DIR)/std/std_standard.o
grt.links:
cd ../lib; ln -sf $(GRTSRCDIR)/grt.lst .; ln -sf $(GRTSRCDIR)/libgrt.a .; ln -sf $(GRTSRCDIR)/grt.ver .
install.all: install.v87 install.v93 install.standard
+install.gcc:
+ $(MAKE) GHDL=ghdl_gcc install.v08 #install.v87 install.v93 install.v08
+
install.mcode:
$(MAKE) GHDL=ghdl_mcode install.v87 install.v93 install.v08
diff --git a/translate/ghdldrv/ghdlrun.adb b/translate/ghdldrv/ghdlrun.adb
index cc01c83..5bcb2b7 100644
--- a/translate/ghdldrv/ghdlrun.adb
+++ b/translate/ghdldrv/ghdlrun.adb
@@ -553,6 +553,10 @@ package body Ghdlrun is
Grt.Images.Ghdl_To_String_F64'Address);
Def (Trans_Decls.Ghdl_To_String_F64_Digits,
Grt.Images.Ghdl_To_String_F64_Digits'Address);
+ Def (Trans_Decls.Ghdl_BV_To_Ostring,
+ Grt.Images.Ghdl_BV_To_Ostring'Address);
+ Def (Trans_Decls.Ghdl_BV_To_Hstring,
+ Grt.Images.Ghdl_BV_To_Hstring'Address);
-- Find untruncated_text_read, if any.
Decl := Find_Untruncated_Text_Read;