]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed the inline assembly code such that it also works correctly with gcc 4.4.0....
authorBart Van Assche <bvanassche@acm.org>
Sat, 18 Jul 2009 10:39:14 +0000 (10:39 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 18 Jul 2009 10:39:14 +0000 (10:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10484

none/tests/x86/pushpopseg.c

index 5f84b7331d4d48b5f8fc5eb89a14a2f6379a54e8..352776a542555a6ce56f9c11e1cc48d94be1c488 100644 (file)
@@ -18,8 +18,8 @@ int main(int argc, char **argv)
       "popw %%fs\n"
       "movl %%esp, %2\n"
       "movw %%fs, %3\n"
-      : "=m" (sp1), "=m" (sp2), "=m" (sp3), "=m" (fs2)
-      : "m" (fs1)
+      : "=r" (sp1), "=r" (sp2), "=r" (sp3), "=r" (fs2)
+      : "r" (fs1)
       : "ax"
       );
 
@@ -34,8 +34,8 @@ int main(int argc, char **argv)
       "popl %%fs\n"
       "movl %%esp, %2\n"
       "movw %%fs, %3\n"
-      : "=m" (sp1), "=m" (sp2), "=m" (sp3), "=m" (fs2)
-      : "m" (fs1)
+      : "=r" (sp1), "=r" (sp2), "=r" (sp3), "=r" (fs2)
+      : "r" (fs1)
       : "ax"
       );