Hello community, here is the log from the commit of package ruby2.2 for openSUSE:Factory checked in at 2016-04-03 23:06:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby2.2 (Old) and /work/SRC/openSUSE:Factory/.ruby2.2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby2.2" Changes: -------- --- /work/SRC/openSUSE:Factory/ruby2.2/ruby2.2.changes 2016-01-13 22:44:20.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.ruby2.2.new/ruby2.2.changes 2016-04-03 23:06:30.000000000 +0200 @@ -1,0 +2,8 @@ +Mon Mar 14 23:14:12 UTC 2016 - dval...@suse.com + +- 0001-GC-Use-__builtin_ppc_get_timebase-for-POWER-arch.patch + Use __builtin_ppc_get_timebase on POWER architecture to gain + a little bit of performance improvement. + https://github.com/ruby/ruby/pull/1291 + +------------------------------------------------------------------- New: ---- 0001-GC-Use-__builtin_ppc_get_timebase-for-POWER-arch.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby2.2.spec ++++++ --- /var/tmp/diff_new_pack.rAYKgX/_old 2016-04-03 23:06:31.000000000 +0200 +++ /var/tmp/diff_new_pack.rAYKgX/_new 2016-04-03 23:06:31.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package ruby2.2 # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -120,6 +120,7 @@ Patch0: ruby-1.9.2p290_tcl_no_stupid_rpaths.patch Patch1: make-gem-build-reproducible.patch +Patch2: 0001-GC-Use-__builtin_ppc_get_timebase-for-POWER-arch.patch # Summary: An Interpreted Object-Oriented Scripting Language License: BSD-2-Clause or Ruby @@ -298,6 +299,7 @@ %setup -q -n ruby-%{pkg_version} %patch0 %patch1 -p1 +%patch2 -p1 find sample -type f -print0 | xargs -r0 chmod a-x grep -Erl '^#! */' benchmark bootstraptest ext lib sample test \ | xargs -r perl -p -i -e 's|^#!\s*\S+(\s+.*)?$|#!/usr/bin/ruby%{rb_binary_suffix} $1|' ++++++ 0001-GC-Use-__builtin_ppc_get_timebase-for-POWER-arch.patch ++++++ >From 391bc3ee3f0e27bf586dfeb5f30d2379676d5558 Mon Sep 17 00:00:00 2001 From: Dinar Valeev <dval...@suse.com> Date: Tue, 15 Mar 2016 00:03:48 +0100 Subject: [PATCH] GC: Use __builtin_ppc_get_timebase for POWER arch This gives a little performance improvement user system total real Before: 20.870000 0.000000 20.870000 ( 20.893959) After: 20.720000 0.000000 20.720000 ( 20.733970) Signed-off-by: Dinar Valeev <dval...@suse.com> --- gc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gc.c b/gc.c index 221752a..31a0530 100644 --- a/gc.c +++ b/gc.c @@ -933,6 +933,18 @@ tick(void) return ((unsigned long long)lo)|( ((unsigned long long)hi)<<32); } +#elif defined(__powerpc64__) && \ + ( __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) +typedef unsigned long long tick_t; +#define PRItick "llu" + +static __inline__ tick_t +tick(void) +{ + unsigned long long val = __builtin_ppc_get_timebase(); + return val; +} + #elif defined(_WIN32) && defined(_MSC_VER) #include <intrin.h> typedef unsigned __int64 tick_t; -- 2.1.4