aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/nofpu/sim-full.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-01-17 01:38:55 +0000
committerRoland McGrath <roland@gnu.org>2004-01-17 01:38:55 +0000
commit56f669b4d8d5288858d2eb7328dea6d482ca41d3 (patch)
treec83f003b80617f5512b3fdea87ea6aeead3cd3f5 /sysdeps/powerpc/nofpu/sim-full.c
parent6bae8725fff4129b5a97c0b8a73fd2a711bdf63e (diff)
downloadglibc-56f669b4d8d5288858d2eb7328dea6d482ca41d3.zip
glibc-56f669b4d8d5288858d2eb7328dea6d482ca41d3.tar.gz
glibc-56f669b4d8d5288858d2eb7328dea6d482ca41d3.tar.bz2
2004-01-13 Daniel Jacobowitz <drow@mvista.com>
* sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions) (__sim_disabled_exceptions, __sim_round_mode): Declare with hidden data and nocommon. * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions) (__sim_disabled_exceptions, __sim_round_mode): Use libc_hidden_proto. * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions) (__sim_disabled_exceptions, __sim_round_mode): Likewise.
Diffstat (limited to 'sysdeps/powerpc/nofpu/sim-full.c')
-rw-r--r--sysdeps/powerpc/nofpu/sim-full.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/powerpc/nofpu/sim-full.c b/sysdeps/powerpc/nofpu/sim-full.c
index 9f4c96f..d018240 100644
--- a/sysdeps/powerpc/nofpu/sim-full.c
+++ b/sysdeps/powerpc/nofpu/sim-full.c
@@ -1,5 +1,5 @@
/* Software floating-point exception handling emulation.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2004 Free Software Foundation, Inc.
Contributed by Aldy Hernandez <aldyh@redhat.com>, 2002.
This file is part of the GNU C Library.
@@ -23,12 +23,15 @@
#include "soft-supp.h"
/* Global to store sticky exceptions. */
-int __sim_exceptions;
+int __sim_exceptions __attribute__ ((nocommon));
+libc_hidden_data_def (__sim_exceptions);
/* By default, no exceptions should trap. */
int __sim_disabled_exceptions = 0xffffffff;
+libc_hidden_data_def (__sim_disabled_exceptions);
-int __sim_round_mode;
+int __sim_round_mode __attribute__ ((nocommon));
+libc_hidden_data_def (__sim_round_mode);
void
__simulate_exceptions (int x)