From 6e80200d148b62b824801c87e8934c335bd48191 Mon Sep 17 00:00:00 2001 From: Mark Loeser Date: Sat, 17 Sep 2005 19:45:35 +0000 Subject: Thanks to basic for the patch to fix compilation on x86. Marking ~x86 for testing. bug #73248 (Portage version: 2.0.52-r1) --- .../audacity/files/audacity-1.2.3-x86.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 media-sound/audacity/files/audacity-1.2.3-x86.patch (limited to 'media-sound/audacity/files') diff --git a/media-sound/audacity/files/audacity-1.2.3-x86.patch b/media-sound/audacity/files/audacity-1.2.3-x86.patch new file mode 100644 index 000000000000..be98087980aa --- /dev/null +++ b/media-sound/audacity/files/audacity-1.2.3-x86.patch @@ -0,0 +1,24 @@ +--- audacity-src-1.2.3/lib-src/soundtouch/source/SoundTouch/cpu_detect_x86_gcc.cpp.orig 2005-07-09 19:49:20.000000000 +0800 ++++ audacity-src-1.2.3/lib-src/soundtouch/source/SoundTouch/cpu_detect_x86_gcc.cpp 2005-07-09 20:02:30.000000000 +0800 +@@ -86,6 +86,7 @@ + "\n\txor %%esi, %%esi" // clear %%esi = result register + // check if 'cpuid' instructions is available by toggling eflags bit 21 + ++ "\n\tpushl %%ebx" + "\n\tpushf" // save eflags to stack + "\n\tpop %%eax" // load eax from stack (with eflags) + "\n\tmovl %%eax, %%ecx" // save the original eflags values to ecx +@@ -130,11 +131,12 @@ + + "\n\tend:" + ++ "\n\tpopl %%ebx" + "\n\tmov %%esi, %0" + + : "=rm" (res) + : /* no inputs */ +- : "%edx", "%eax", "%ecx", "%ebx", "%esi" ); ++ : "%edx", "%eax", "%ecx", "%esi" ); + + return res & ~_dwDisabledISA; + #endif -- cgit v1.2.3-65-gdbad