From ccc7189d02db07692cedcc82141038304536e5f5 Mon Sep 17 00:00:00 2001 From: ferrieux Date: Mon, 30 Apr 2012 12:55:24 +0000 Subject: Revert introduction of non-portable asm snippet in function TclWinCPUID, to restore compilability on Linux. --- unix/tclUnixCompat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c index d3da962..1c42056 100644 --- a/unix/tclUnixCompat.c +++ b/unix/tclUnixCompat.c @@ -991,9 +991,12 @@ TclWinCPUID( int status = TCL_ERROR; #ifdef HAVE_CPUID + /* disabled in emergency -- fails on linux */ +# if 0 __asm__ __volatile__ ("cpuid":\ "=a" (regsPtr[0]), "=b" (regsPtr[1]), "=c" (regsPtr[2]), "=d" (regsPtr[3]) : "a" (index)); status = TCL_OK; +# endif #endif return status; } -- cgit v0.12