From 56f669b4d8d5288858d2eb7328dea6d482ca41d3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 17 Jan 2004 01:38:55 +0000 Subject: 2004-01-13 Daniel Jacobowitz * 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. --- sysdeps/powerpc/nofpu/sim-full.c | 9 ++++++--- sysdeps/powerpc/nofpu/soft-supp.h | 12 ++++++++---- sysdeps/powerpc/soft-fp/sfp-machine.h | 10 +++++++--- 3 files changed, 21 insertions(+), 10 deletions(-) (limited to 'sysdeps/powerpc') diff --git a/sysdeps/powerpc/nofpu/sim-full.c b/sysdeps/powerpc/nofpu/sim-full.c index 9f4c96ff20..d018240e6d 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 , 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) diff --git a/sysdeps/powerpc/nofpu/soft-supp.h b/sysdeps/powerpc/nofpu/soft-supp.h index e358eda5c7..3922426bd0 100644 --- a/sysdeps/powerpc/nofpu/soft-supp.h +++ b/sysdeps/powerpc/nofpu/soft-supp.h @@ -1,5 +1,5 @@ /* Internal support stuff for complete soft float. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. Contributed by Aldy Hernandez , 2002. This file is part of the GNU C Library. @@ -27,7 +27,11 @@ typedef union } fenv_union_t; -extern int __sim_exceptions attribute_hidden; -extern int __sim_disabled_exceptions attribute_hidden; -extern int __sim_round_mode attribute_hidden; +extern int __sim_exceptions; +libc_hidden_proto (__sim_exceptions); +extern int __sim_disabled_exceptions; +libc_hidden_proto (__sim_disabled_exceptions); +extern int __sim_round_mode; +libc_hidden_proto (__sim_round_mode); + extern void __simulate_exceptions (int x) attribute_hidden; diff --git a/sysdeps/powerpc/soft-fp/sfp-machine.h b/sysdeps/powerpc/soft-fp/sfp-machine.h index 637dd980b6..44a9184f2f 100644 --- a/sysdeps/powerpc/soft-fp/sfp-machine.h +++ b/sysdeps/powerpc/soft-fp/sfp-machine.h @@ -52,7 +52,11 @@ #define FP_HANDLE_EXCEPTIONS __simulate_exceptions (_fex) #define FP_ROUNDMODE __sim_round_mode -extern int __sim_exceptions attribute_hidden; -extern int __sim_disabled_exceptions attribute_hidden; -extern int __sim_round_mode attribute_hidden; +extern int __sim_exceptions; +libc_hidden_proto (__sim_exceptions); +extern int __sim_disabled_exceptions; +libc_hidden_proto (__sim_disabled_exceptions); +extern int __sim_round_mode; +libc_hidden_proto (__sim_round_mode); + extern void __simulate_exceptions (int x) attribute_hidden; -- cgit 1.4.1