This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix finite-math-only lgamma functions signgam setting (bug 19211)


Joseph Myers <joseph@codesourcery.com> writes:

> diff --git a/math/test-signgam-finite-c99.c b/math/test-signgam-finite-c99.c
> new file mode 100644
> index 0000000..bdbaf5a
> --- /dev/null
> +++ b/math/test-signgam-finite-c99.c
> @@ -0,0 +1,65 @@
> +/* Test lgamma functions do not set signgam for -ffinite-math-only for ISO C.
> +   Copyright (C) 2015 Free Software Foundation, Inc.
> +   This file is part of the GNU C Library.
> +
> +   The GNU C Library is free software; you can redistribute it and/or
> +   modify it under the terms of the GNU Lesser General Public
> +   License as published by the Free Software Foundation; either
> +   version 2.1 of the License, or (at your option) any later version.
> +
> +   The GNU C Library is distributed in the hope that it will be useful,
> +   but WITHOUT ANY WARRANTY; without even the implied warranty of
> +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> +   Lesser General Public License for more details.
> +
> +   You should have received a copy of the GNU Lesser General Public
> +   License along with the GNU C Library; if not, see
> +   <http://www.gnu.org/licenses/>.  */
> +
> +#undef _LIBC
> +#undef _GNU_SOURCE
> +#define _ISOMAC

That doesn't compile:

In file included from ../math/math.h:472:0,
                 from ../include/math.h:3,
                 from test-signgam-finite-c99.c:24:
../sysdeps/m68k/m680x0/fpu/bits/mathinline.h:153:1: error: â__leaf__â attribute has no effect on unit local functions [-Werror=attributes]
 __inline_mathop(__atan, atan)
 ^

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]