Hi Brian,
I've now managed to build svn150 both on x86 and on x64.
I've attached the patches I used to get it to build.
The libgomp and the make patches are trivial.
Your type_for_size patch is interesting, though. It is needed on x64,
otherwise compiling the standard library results in an ICE. However, it
must not be applied to the x86 build, otherwise it segfaults while
compiling the standard library as well. This might be the reason why
Tristan didn't include it - I think we need something that works on all
archs...
NB: the base compiler I used was not vanilla 4.7.2, but what Fedora
ships - it's a checkout from late last year, with some patches applied,
something between 4.7.2 and 4.7.3.
Here's the build:
http://koji.fedoraproject.org/koji/buildinfo?buildID=381832
Thank you for your help!
Thomas
--- libgomp/Makefile.am.orig 2013-01-31 13:28:31.722029106 +0100
+++ libgomp/Makefile.am 2013-01-31 13:28:53.747993506 +0100
@@ -28,7 +28,7 @@
libgomp.ver: $(top_srcdir)/libgomp.map
$(EGREP) -v '#(#| |$$)' $< | \
- $(PREPROCESS) -P -include config.h - > $@ || (rm -f $@ ; exit 1)
+ $(PREPROCESS) -include config.h - > $@ || (rm -f $@ ; exit 1)
if LIBGOMP_BUILD_VERSIONED_SHLIB_GNU
libgomp_version_script = -Wl,--version-script,libgomp.ver
--- libgomp/Makefile.in.orig 2013-01-31 13:28:36.051628972 +0100
+++ libgomp/Makefile.in 2013-01-31 13:29:26.166895582 +0100
@@ -1071,7 +1071,7 @@
@[email protected]: $(top_srcdir)/libgomp.map
@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@ $(EGREP) -v '#(#| |$$)' $< | \
-@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@ $(PREPROCESS) -P -include config.h - > $@ || (rm -f $@ ; exit 1)
+@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@ $(PREPROCESS) -include config.h - > $@ || (rm -f $@ ; exit 1)
@LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE@@[email protected] : libgomp.ver \
@LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@ $(top_srcdir)/../contrib/make_sunver.pl \
@LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@ $(libgomp_la_OBJECTS) $(libgomp_la_LIBADD)
--- gcc/vhdl/Make-lang.in.orig 2013-02-01 11:58:27.033000063 +0100
+++ gcc/vhdl/Make-lang.in 2013-02-01 11:58:49.612915289 +0100
@@ -224,6 +224,8 @@
vhdl.install-normal:
+vhdl.install-plugin:
+
# Install the driver program as ghdl.
vhdl.install-common: ghdl$(exeext)
-mkdir $(DESTDIR)$(bindir)
--- gcc/vhdl/ortho-lang.c.orig 2013-02-01 11:27:40.199726632 +0100
+++ gcc/vhdl/ortho-lang.c 2013-02-01 11:29:00.272327562 +0100
@@ -629,6 +629,10 @@
if (precision <= MAX_BITS_PER_WORD)
signed_and_unsigned_types[precision][unsignedp] = t;
+ else
+ // Handle larger requests by returning a NULL tree and letting
+ // the back end default to another approach.
+ t = NULL_TREE;
return t;
}
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss