cvs commit: patches/j2sdk j2sdk-1.4.2-fix-inline-asm-1.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Sun Oct 26 09:04:09 PST 2003


jim         03/10/26 10:04:09

  Added:       j2sdk    j2sdk-1.4.2-fix-inline-asm-1.patch
  Log:
  Added: j2sdk-1.4.2-fix-inline-asm-1.patch
  
  Revision  Changes    Path
  1.1                  patches/j2sdk/j2sdk-1.4.2-fix-inline-asm-1.patch
  
  Index: j2sdk-1.4.2-fix-inline-asm-1.patch
  ===================================================================
  Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
  Date: 2003-10-19
  Initial Package Version: 1.4.2
  Origin: Suggestion from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12590
  Description: Fixes inline asm error listed below
  
  	hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp:
  	In  function `jboolean JVM_CX8Field(JNIEnv*, _jobject*, _jfieldID*, long long
          int, long long int)':
  	hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp:50:
  	error: impossible constraint in `asm'
   
  
  diff -Naur java.orig/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp java/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp
  --- java.orig/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp	2003-09-11 01:40:30.000000000 +0000
  +++ java/hotspot/src/os_cpu/linux_i486/vm/atomic_linux_i486.inline.hpp	2003-10-19 17:41:48.000000000 +0000
  @@ -49,7 +49,7 @@
     jlong old_value;
     __asm__ volatile (  "pushl %%ebx;mov 4+%1,%%ecx;mov %1,%%ebx;lock;cmpxchg8b (%3);popl %%ebx"
                       : "=A" (old_value)
  -                    : "o" (exchange_value), "A" (compare_value), "r" (dest)
  +                    : "m" (exchange_value), "A" (compare_value), "r" (dest)
                       : "%ebx", "%ecx", "memory");
     return old_value;
   }
  
  
  



More information about the patches mailing list