]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pr34966.c (atan): Only use asm on i?86/x86_64.
authorJakub Jelinek <jakub@redhat.com>
Sat, 26 Jan 2008 17:02:44 +0000 (18:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 26 Jan 2008 17:02:44 +0000 (18:02 +0100)
* gcc.c-torture/compile/pr34966.c (atan): Only use asm
on i?86/x86_64.

From-SVN: r131867

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

index 583a15890cf971cfe81613be4aa4250708b9a2e1..6ce05a742c872c529b42831cd49ea3bee6b626a6 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 9d68da714d06ae74b974caeb30690989cea930e6..6c36fb1e4edaffa32e2b01911144d52ca3b05a8a 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;
 }