- PCH support using kurt@'s implementation does work, if you actually enable it

by not making a stupid typo.  From kurt@ (thanks).
- respect version of liblto_plugin
- add %%PIC%% in PLIST-go
This commit is contained in:
pascal 2011-11-20 11:10:36 +00:00
parent 51962ef0a2
commit 2e3d081bf6
6 changed files with 28 additions and 30 deletions

View File

@ -1,7 +1,4 @@
- PCH support (needs mmap at a fixed address)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39618
- test all arches (only sparc and sparc64 left)
- (sub)packaging
- gcj-dbtool hangs on amd64, needs to be killed (disabled at build for now)
apparently, threads and signal handling are to blame:
https://bugzilla.redhat.com/show_bug.cgi?id=179002

View File

@ -1,13 +1,14 @@
$OpenBSD: patch-gcc_config_host,v 1.1.1.1 2011/11/14 13:00:57 pascal Exp $
--- gcc/config.host.orig Sat Nov 12 13:34:15 2011
+++ gcc/config.host Sat Nov 12 13:35:28 2011
@@ -268,6 +268,9 @@ case ${host} in
$OpenBSD: patch-gcc_config_host,v 1.2 2011/11/20 11:10:36 pascal Exp $
--- gcc/config.host.orig Tue Feb 15 10:49:14 2011
+++ gcc/config.host Sun Nov 20 02:07:58 2011
@@ -268,6 +268,10 @@ case ${host} in
out_host_hook_obj=host-solaris.o
host_xmake_file="${host_xmake_file} x-solaris"
;;
+ *-*-openbsd*)
+ out_host_hook_obj=host-openbsd.o
+ host_xmake_file="${host_xmake_file} x-openbsd"
+ ;;
*-*-linux*)
out_host_hook_obj=host-linux.o
host_xmake_file="${host_xmake_file} x-linux"

View File

@ -1,8 +1,8 @@
$OpenBSD: patch-gcc_config_x-openbsd,v 1.1.1.1 2011/11/14 13:00:57 pascal Exp $
--- gcc/config/x-openbsd.orig Mon Jan 31 14:50:47 2005
+++ gcc/config/x-openbsd Mon Jan 31 14:51:13 2005
$OpenBSD: patch-gcc_config_x-openbsd,v 1.2 2011/11/20 11:10:36 pascal Exp $
--- gcc/config/x-openbsd.orig Sun Nov 20 02:06:19 2011
+++ gcc/config/x-openbsd Sun Nov 20 02:07:24 2011
@@ -0,0 +1,4 @@
+host-openbsd.o : $(srcdir)/config/host-openbsd.c $(CONFIG_H) $(SYSTEM_H) \
+ coretypes.h hosthooks.h hosthooks-def.h $(HOOKS_H)
+ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
+ $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
+ $(srcdir)/config/host-openbsd.c

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-libstdc++-v3_configure,v 1.1.1.1 2011/11/14 13:00:56 pascal Exp $
PCH support needs mmap at a fixed location
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39618
--- libstdc++-v3/configure.orig Tue Nov 1 19:02:33 2011
+++ libstdc++-v3/configure Tue Nov 1 19:03:25 2011
@@ -15014,6 +15014,7 @@ else
enable_libstdcxx_pch=$is_hosted
fi
+enable_libstdcxx_pch=no
if test $enable_libstdcxx_pch = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler with PCH support" >&5

View File

@ -1,7 +1,20 @@
$OpenBSD: patch-lto-plugin_Makefile_in,v 1.1.1.1 2011/11/14 13:00:57 pascal Exp $
--- lto-plugin/Makefile.in.orig Sun Nov 13 18:11:38 2011
+++ lto-plugin/Makefile.in Sun Nov 13 18:12:11 2011
@@ -540,7 +540,7 @@ $(in_gcc_libs) : $(gcc_build_dir)/%: %
$OpenBSD: patch-lto-plugin_Makefile_in,v 1.2 2011/11/20 11:10:36 pascal Exp $
--- lto-plugin/Makefile.in.orig Sun Feb 13 12:45:53 2011
+++ lto-plugin/Makefile.in Sun Nov 20 00:02:22 2011
@@ -239,9 +239,11 @@ liblto_plugin_la_SOURCES = lto-plugin.c
liblto_plugin_la_LIBADD = \
$(if $(wildcard ../libiberty/pic/libiberty.a),$(Wc)../libiberty/pic/libiberty.a,)
+include $(top_srcdir)/../libversions
# Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
liblto_plugin_la_LDFLAGS = $(lt_host_flags) -module -bindir $(libexecsubdir) \
- $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
+ $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a) \
+ $(LIBlto_plugin_LTVERSION)
liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \
../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
@@ -540,7 +542,7 @@ $(in_gcc_libs) : $(gcc_build_dir)/%: %
echo WARNING: $* is static, not copying to $@ >&2 ; \
else \
$(mkinstalldirs) $(gcc_build_dir) && \

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST-go,v 1.1 2011/11/19 22:19:53 pascal Exp $
@comment $OpenBSD: PLIST-go,v 1.2 2011/11/20 11:10:36 pascal Exp $
%%SHARED%%
@bin bin/egccgo
@bin bin/${CONFIG}-egccgo
@ -154,4 +154,5 @@ lib/libgo.a
lib/libgo.la
lib/libgobegin.a
@bin libexec/gcc/${CONFIG}/${V}/go1
%%PIC%%
@man man/man1/egccgo.1