From d720bd3e1ad446ec21fb75d4726bee6a2d35540f Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 28 Apr 2013 22:21:34 +0000 Subject: Fix register clobber that was breaking WINE with -O2 optimization --- current/gcc/gcc-multilib.SlackBuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'current') diff --git a/current/gcc/gcc-multilib.SlackBuild b/current/gcc/gcc-multilib.SlackBuild index 59bd286..40ca007 100755 --- a/current/gcc/gcc-multilib.SlackBuild +++ b/current/gcc/gcc-multilib.SlackBuild @@ -46,7 +46,7 @@ PKGNAM=gcc VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-2alien} +BUILD=${BUILD:-3alien} # How many jobs to run in parallel: NUMJOBS=" -j7 " @@ -154,7 +154,10 @@ tar xvf $CWD/gcc-$VERSION.tar.?z* ( cd gcc-$VERSION # Restore target headers that were dropped (accidentally?) in gcc-4.8.0: zcat $CWD/gcc.target_h.diff.gz | patch -p1 --verbose || exit 1 -) + # Fix register clobber that was breaking WINE with -O2 optimization + # (and probably affected other code as well): + zcat $CWD/regcprop.fixo2.diff.gz | patch -p2 --verbose || exit 1 +) || exit 1 # Copy ecj.jar into the TLD of the source. Needed for java compiler. # This can be retrieved from ftp://sourceware.org/pub/java -- cgit v1.2.3