OSDN Git Service

* gcc.c-torture/compile/pr34966.c (atan): Only use asm
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jan 2008 17:02:44 +0000 (17:02 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jan 2008 17:02:44 +0000 (17:02 +0000)
on i?86/x86_64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131867 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr34966.c

index 583a158..6ce05a7 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-26  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.c-torture/compile/pr34966.c (atan): Only use asm
+       on i?86/x86_64.
+
 2008-01-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR libfofortran/34887
index 9d68da7..6c36fb1 100644 (file)
@@ -4,7 +4,11 @@ __inline double
 atan (double __x)
 {
   register double __result;
+#if defined(__i386__) || defined(__x86_64__)
   __asm __volatile__ ("" : "=t" (__result) : "0" (__x));
+#else
+  __result = __x;
+#endif
   return __result;
 }