From 95c6e654ac33a41d0df4d51d7aa80e5d4709b0db Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 5 Jun 2012 15:48:04 +0700 Subject: [PATCH] Update ppc64 optimization hack --- gambc-v4_6_5-reduce-opt.patch | 15 --------------- gambc-v4_6_6-reduce-opt.patch | 11 +++++++++++ gambit-c.spec | 2 +- 3 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 gambc-v4_6_5-reduce-opt.patch create mode 100644 gambc-v4_6_6-reduce-opt.patch diff --git a/gambc-v4_6_5-reduce-opt.patch b/gambc-v4_6_5-reduce-opt.patch deleted file mode 100644 index 756fe5d..0000000 --- a/gambc-v4_6_5-reduce-opt.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- gambc-v4_6_5-devel/configure.reduce-opt 2012-03-15 00:32:35.000000000 +0700 -+++ gambc-v4_6_5-devel/configure 2012-03-31 10:12:56.217457151 +0700 -@@ -22294,11 +22294,7 @@ - { echo "$as_me:$LINENO: result: $DASH_fomit_frame_pointer" >&5 - echo "${ECHO_T}$DASH_fomit_frame_pointer" >&6; } - -- if test "$DASH_O2" != ""; then -- OPT_LEVEL_FLAG="$DASH_O2" -- else -- OPT_LEVEL_FLAG="$DASH_O1" -- fi -+ OPT_LEVEL_FLAG="$DASH_O1" - - # It isn't clear these are useful: - # AC_CHECK_C_COMPILER_OPT(-fexpensive-optimizations,DASH_fexpensive_optimizations) diff --git a/gambc-v4_6_6-reduce-opt.patch b/gambc-v4_6_6-reduce-opt.patch new file mode 100644 index 0000000..ceaff8c --- /dev/null +++ b/gambc-v4_6_6-reduce-opt.patch @@ -0,0 +1,11 @@ +--- gambc-v4_6_6-devel/configure.reduce-opt 2012-05-24 00:18:43.000000000 +0700 ++++ gambc-v4_6_6-devel/configure 2012-06-05 15:45:33.295482005 +0700 +@@ -22314,7 +22314,7 @@ + case "$ENABLE_C_OPT" in + + yes) if test "$DASH_O2" != ""; then +- OPT_LEVEL_FLAG="$DASH_O2" ++ OPT_LEVEL_FLAG="$DASH_O1" + fi + ;; + diff --git a/gambit-c.spec b/gambit-c.spec index ca110f3..fbf7125 100644 --- a/gambit-c.spec +++ b/gambit-c.spec @@ -23,7 +23,7 @@ URL: http://www.iro.umontreal.ca/~gambit Source0: http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/%{dirname}.tgz Source1: gambit-init.el Patch0: gambc-v4_2_8-modtime.patch -Patch1: gambc-v4_6_5-reduce-opt.patch +Patch1: gambc-v4_6_6-reduce-opt.patch BuildRequires: emacs Requires: gcc