OSDN Git Service

Update FSF address.
[pf3gnuchains/gcc-fork.git] / gcc / config / ia64 / crtfastmath.c
1 /* Copyright (C) 2001 Free Software Foundation, Inc.
2    Contributed by David Mosberger <davidm@hpl.hp.com>.
3
4    The GNU C Library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Library General Public License as
6    published by the Free Software Foundation; either version 2 of the
7    License, or (at your option) any later version.
8
9    The GNU C Library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    Library General Public License for more details.
13
14    You should have received a copy of the GNU Library General Public
15    License along with the GNU C Library; see the file COPYING.LIB.  If not,
16    write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17    Boston, MA 02110-1301, USA.  */
18
19 /* In addition to the permissions in the GNU General Public License, the
20    Free Software Foundation gives you unlimited permission to link the
21    compiled version of this file into combinations with other programs,
22    and to distribute those combinations without any restriction coming
23    from the use of this file.  (The General Public License restrictions
24    do apply in other respects; for example, they cover modification of
25    the file, and distribution when not linked into a combine
26    executable.)  */
27
28 /* We could call fesetenv() here but that would create a confusing
29    dependency on libm (since that is where fesetenv() gets defined.
30    To avoid this, just do everything locally.  */
31 #define FE_NONIEEE_ENV 0x0009a04d0270037f
32
33 static void __attribute__((constructor))
34 __ia64_set_fast_math (void)
35 {
36   __asm__ __volatile__ ("mov.m ar.fpsr=%0" : : "r"(FE_NONIEEE_ENV));
37 }