From a98571b5acf1942a42a37f28a2d90fe880682195 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 27 Apr 2020 06:25:21 +0200 Subject: [PATCH] - added opt patch (disable i486+ tuning for cvm.c, causes no register to spill) --- pnet-opt.patch | 20 ++++++++++++++++++++ pnet.spec | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 pnet-opt.patch diff --git a/pnet-opt.patch b/pnet-opt.patch new file mode 100644 index 0000000..ba14afb --- /dev/null +++ b/pnet-opt.patch @@ -0,0 +1,20 @@ +cvm.c compilation fails with no register to spill on recent gcc with -march=i[456]86 +--- pnet-0.8.0/engine/Makefile.am.orig 2007-03-07 19:50:41.000000000 +0100 ++++ pnet-0.8.0/engine/Makefile.am 2020-04-26 21:14:07.088867516 +0200 +@@ -186,7 +186,7 @@ + $(NO_UNIT_AT_A_TIME) -I$(top_srcdir)/support \ + -I$(top_srcdir)/libgc/include -I$(top_srcdir)/include \ + $(JIT_INCLUDE) \ +- -I../libffi/include -I. -DBUILD_PROFILE_NAME="\"$(PROFILE_NAME)\"" ++ -I../libffi/include -I. -DBUILD_PROFILE_NAME="\"$(PROFILE_NAME)\"" -Os + + else + +@@ -215,6 +215,7 @@ + cvmc.$(OBJEXT): cvmc.c $(CVMC_INCLUDES) + + cvm.$(OBJEXT): cvm.c $(CVM_INCLUDES) cvm_labels.h ++cvm.$(OBJEXT): CFLAGS += -march=i386 -mtune=i386 + + internal.$(OBJEXT): internal.c $(INTERNAL_INCLUDES) + diff --git a/pnet.spec b/pnet.spec index 3c7ac28..3efafad 100644 --- a/pnet.spec +++ b/pnet.spec @@ -18,6 +18,7 @@ Patch2: format-security.patch Patch3: no-regex_syntax.patch Patch4: %{name}-info.patch Patch5: %{name}-link.patch +Patch6: %{name}-opt.patch URL: http://www.gnu.org/software/dotgnu/pnet.html BuildRequires: autoconf BuildRequires: automake @@ -300,6 +301,9 @@ Header de desenvolviemnto da Portable .NET. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%ifarch %{ix86} +%patch6 -p1 +%endif %{__rm} ilasm/ilasm_grammar.c -- 2.44.0