From 4a26e6f2c7b4afe109bb7171e2b892eb74253aad Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 14 Jun 2004 18:15:23 +0000 Subject: [PATCH] gst/gstcpu.c: Fix problem when using Original commit message from CVS: * gst/gstcpu.c: (gst_cpuid_i386): Fix problem when using -fomit-frame-pointer. Appears to generate correct code in other cases as well. --- ChangeLog | 6 ++++++ gst/gstcpu.c | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7626368..d137702 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-06-14 David Schleef + + * gst/gstcpu.c: (gst_cpuid_i386): Fix problem when using + -fomit-frame-pointer. Appears to generate correct code in + other cases as well. + 2004-06-14 Johan Dahlin * tools/gst-inspect.c (main): Add two new command line options: -a diff --git a/gst/gstcpu.c b/gst/gstcpu.c index 8824309..c8e0075 100644 --- a/gst/gstcpu.c +++ b/gst/gstcpu.c @@ -72,11 +72,11 @@ gst_cpuid_i386 (int x, unsigned long *eax, unsigned long *ebx, asm ( /* GCC-3.2 (and possibly others) don't clobber ebx properly, * so we save/restore it directly. */ -" pushl %%ebx\n" " cpuid\n" " movl %%eax, %0\n" " movl %%ebx, %1\n" " movl %%ecx, %2\n" " movl %%edx, %3\n" " popl %%ebx\n":"=o" (regs[0]), - "=o" (regs[1]), - "=o" (regs[2]), "=o" (regs[3]) +" movl %%ebx, %%esi\n" " cpuid\n" " movl %%eax, %0\n" " movl %%ebx, %1\n" " movl %%ecx, %2\n" " movl %%edx, %3\n" " movl %%esi, %%ebx\n":"=o" (regs[0]), "=o" (regs[1]), "=o" (regs[2]), + "=o" (regs + [3]) : "a" (x) -: "ecx", "edx"); +: "ecx", "edx", "esi"); *eax = regs[0]; *ebx = regs[1]; -- 2.7.4