diff options
author | Kristian Rietveld <kris@lanedo.com> | 2011-10-15 01:15:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-10-17 08:13:54 +0200 |
commit | e748b096633c5ef747f0630d13708d8dd7308a86 (patch) | |
tree | 647d666db3ce0895e31919d669144dc6551953d9 /bridges | |
parent | 62dd77da0f0e7e1a48078f731ab1a7650c3906f0 (diff) |
Mark ecx register as clobbered
The inline assembly code executes a function call and functions are
free to use eax, ecx and edx without preservation. We must thus mark
ecx as a clobber register.
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx | 2 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx | 2 | ||||
-rw-r--r-- | bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx index 21febefad110..444319030d84 100644 --- a/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx @@ -123,7 +123,7 @@ void callVirtualMethod( : : "m"(nStackLongs), "m"(pStackLongs), "m"(pAdjustedThisPtr), "m"(nVtableIndex), "m"(eax), "m"(edx), "m"(stackptr) - : "eax", "edx" ); + : "eax", "ecx", "edx" ); switch( pReturnTypeDescr->eTypeClass ) { case typelib_TypeClass_VOID: diff --git a/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx index 9f0000587923..89f5381710d2 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx @@ -119,7 +119,7 @@ void callVirtualMethod( : : "m"(nStackLongs), "m"(pStackLongs), "m"(pAdjustedThisPtr), "m"(nVtableIndex), "m"(eax), "m"(edx), "m"(stackptr) - : "eax", "edx" ); + : "eax", "ecx", "edx" ); switch( pReturnTypeDescr->eTypeClass ) { case typelib_TypeClass_VOID: diff --git a/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx b/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx index 4dd6cdefd083..45d20b36e663 100644 --- a/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx +++ b/bridges/source/cpp_uno/mingw_intel/uno2cpp.cxx @@ -112,7 +112,7 @@ void callVirtualMethod( : : "m"(nStackLongs), "m"(pStackLongs), "m"(pAdjustedThisPtr), "m"(nVtableIndex), "m"(eax), "m"(edx), "m"(stackptr) - : "eax", "edx" ); + : "eax", "ecx", "edx" ); switch( returnType->eTypeClass ) { case typelib_TypeClass_VOID: |