From: Jakub Jelinek Date: Sat, 26 Jan 2008 17:02:44 +0000 (+0100) Subject: pr34966.c (atan): Only use asm on i?86/x86_64. X-Git-Tag: releases/gcc-4.3.0~382 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=680f02e4b47faab19c6f90630a4be1b15122e6fb;p=thirdparty%2Fgcc.git pr34966.c (atan): Only use asm on i?86/x86_64. * gcc.c-torture/compile/pr34966.c (atan): Only use asm on i?86/x86_64. From-SVN: r131867 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 583a15890cf9..6ce05a742c87 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-01-26 Jakub Jelinek + + * gcc.c-torture/compile/pr34966.c (atan): Only use asm + on i?86/x86_64. + 2008-01-26 Thomas Koenig PR libfofortran/34887 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr34966.c b/gcc/testsuite/gcc.c-torture/compile/pr34966.c index 9d68da714d06..6c36fb1e4eda 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr34966.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr34966.c @@ -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; }