]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 1 Jun 1998 13:41:16 +0000 (13:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 1 Jun 1998 13:41:16 +0000 (13:41 +0000)
1998-05-31  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/arm/sysdep.S: Use C_SYMBOL_NAME when
referring to errno and _errno.

* sysdeps/arm/fpu/feholdexcpt.c: New file.

* sysdeps/i386/fpu_control.h: Fix typo.

* sysdeps/arm/bits/setjmp.h (__jmp_buf): Remove floating-point support.
(_JMPBUF_UNWINDS): Added.
* sysdeps/arm/fpu/bits/setjmp.h: New file.

1998-05-25  Gordon Matzigkeit  <gord@profitpress.com>

* sysdeps/mach/hurd/Makefile: Use the `before-compile' target in
order to build header files, not `generated'.

* Rules (before-compile): New target which depends on all
$(before-compile) files.

ChangeLog
Rules
sysdeps/arm/bits/setjmp.h
sysdeps/arm/fpu/bits/setjmp.h [new file with mode: 0644]
sysdeps/arm/fpu/feholdexcpt.c [new file with mode: 0644]
sysdeps/i386/fpu_control.h
sysdeps/mach/hurd/Makefile
sysdeps/unix/sysv/linux/arm/sysdep.S
timezone/README

index fe910c2e7a4d664e46142481b1c3be9bd2648007..92354a5e6b3742fc7c4367d52107478c86dd966b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+1998-05-31  Philip Blundell  <philb@gnu.org>
+
+       * sysdeps/unix/sysv/linux/arm/sysdep.S: Use C_SYMBOL_NAME when
+       referring to errno and _errno.
+
+       * sysdeps/arm/fpu/feholdexcpt.c: New file.
+
+       * sysdeps/i386/fpu_control.h: Fix typo.
+
+       * sysdeps/arm/bits/setjmp.h (__jmp_buf): Remove floating-point support.
+       (_JMPBUF_UNWINDS): Added.
+       * sysdeps/arm/fpu/bits/setjmp.h: New file.
+
+1998-05-25  Gordon Matzigkeit  <gord@profitpress.com>
+
+       * sysdeps/mach/hurd/Makefile: Use the `before-compile' target in
+       order to build header files, not `generated'.
+
+       * Rules (before-compile): New target which depends on all
+       $(before-compile) files.
+
 1998-06-01  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
 
        * nis/nis_call.c: Make directory search faster.
diff --git a/Rules b/Rules
index d50072b27e0435872d5d488c1d0262e040effcdd..0f9116b628e9a84fa2bc27f36a4b42c774a1681c 100644 (file)
--- a/Rules
+++ b/Rules
@@ -176,6 +176,11 @@ subdir_dist: dist
 generated: $(addprefix $(common-objpfx),$(common-generated)) \
        $(addprefix $(objpfx),$(generated))
 
+# Target required by the Hurd to ensure that all the MiG-generated
+# headers are in place before building a subdirectory.
+.PHONY: before-compile
+before-compile: $(before-compile)
+
 define o-iterator-doit
 $(common-objpfx)empty$o: $(common-objpfx)empty.c $(before-compile);
        $$(compile-command.c)
index ea25a9ba8733f9ff63a82e94ed28eb989be24ecf..6d8737970b8cea4ed5be4dd0e27b14b25d8d772d 100644 (file)
 #endif
 
 #ifndef _ASM
-/* Jump buffer contains v1-v6, sl, fp, sp, pc and (f4-f7) if we do FP. */
-# if __ARM_USES_FP
-typedef int __jmp_buf[22];
-# else
+/* Jump buffer contains v1-v6, sl, fp, sp and pc.  Other registers are not
+   saved.  */
 typedef int __jmp_buf[10];
-# endif
 #endif
+
+#define __JMP_BUF_SP           8
+
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address) \
+  ((void *) (address) < (void *) (jmpbuf[__JMP_BUF_SP]))
diff --git a/sysdeps/arm/fpu/bits/setjmp.h b/sysdeps/arm/fpu/bits/setjmp.h
new file mode 100644 (file)
index 0000000..895356f
--- /dev/null
@@ -0,0 +1,36 @@
+/* Copyright (C) 1997, 1998 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 Library General Public License as
+   published by the Free Software Foundation; either version 2 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
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+/* Define the machine-dependent type `jmp_buf'.  ARM version. */
+
+#ifndef _SETJMP_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
+#ifndef _ASM
+/* Jump buffer contains v1-v6, sl, fp, sp and pc.  Other registers are not
+   saved.  */
+typedef int __jmp_buf[22];
+#endif
+
+#define __JMP_BUF_SP           8
+
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address) \
+  ((void *) (address) < (void *) (jmpbuf[__JMP_BUF_SP]))
diff --git a/sysdeps/arm/fpu/feholdexcpt.c b/sysdeps/arm/fpu/feholdexcpt.c
new file mode 100644 (file)
index 0000000..5679ccc
--- /dev/null
@@ -0,0 +1,37 @@
+/* Store current floating-point environment and clear exceptions.
+   Copyright (C) 1997, 1998 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 Library General Public License as
+   published by the Free Software Foundation; either version 2 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
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#include <fenv.h>
+#include <fpu_control.h>
+
+int
+feholdexcept (fenv_t *envp)
+{
+  unsigned long int temp;
+
+  /* Store the environment.  */
+  _FPU_GETCW(temp);
+  envp->cw = temp;
+
+  /* Now set all exceptions to non-stop.  */
+  temp &= ~(FE_ALL_EXCEPT << FE_EXCEPT_SHIFT);
+  _FPU_SETCW(temp);
+
+  return 1;
+}
index f0fb2fe9c12aa26172ea3c58974c4d4bc5e378f9..8474f7199bf7fd818b5095170a8d43aa7f5dce3c 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef _FPU_CONTROL_H
 #define _FPU_CONTROL_H 1
 
-/* Here is the dirty part. Settup up your 387 through the control word
+/* Here is the dirty part. Set up your 387 through the control word
  * (cw) register.
  *
  *     15-13    12  11-10  9-8     7-6     5    4    3    2    1    0
index 7e5dee6740fb9683c064db53d3af147bbc7da14e..55b333f929bc65eed030ac505c2865e731ed8f91 100644 (file)
@@ -47,13 +47,13 @@ hurd-objpfx = $(common-objpfx)hurd/
 # These are all the generated headers that <hurd.h> includes.
 before-compile += $(patsubst %,$(hurd-objpfx)hurd/%.h,auth io fs process)
 $(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process):
-       $(MAKE) -C $(..)hurd generated no_deps=t
+       $(MAKE) -C $(..)hurd before-compile no_deps=t
 endif
 
 # Hurd profil.c includes this file, so give a rule to make it.
 ifeq ($(subdir),gmon)
 $(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c:
-       $(MAKE) -C $(..)mach generated no_deps=t
+       $(MAKE) -C $(..)mach before-compile no_deps=t
 endif
 
 \f
index 482535bea5cc864029b5daed4068aec63b36d1ea..f6cb3e4648c2974f1155ed3940343fbcb4c9c999 100644 (file)
 
 /* We define errno here, to be consistent with Linux/i386.  */
        .bss
-       .globl errno
-       .type errno,%object
-       .size errno,4
-errno: .zero 4
-       .globl _errno
-       .type _errno,%object
-_errno = errno /* This name is expected by hj's libc.so.5 startup code.  */
+       .globl C_SYMBOL_NAME(errno)
+       .type C_SYMBOL_NAME(errno),%object
+       .size C_SYMBOL_NAME(errno),4
+C_SYMBOL_NAME(errno):  .zero 4
+       .globl C_SYMBOL_NAME(_errno)
+       .type C_SYMBOL_NAME(_errno),%object
+/* This name is expected by hj's libc.so.5 startup code.  It seems to be needed
+   by pthreads as well.  */
+C_SYMBOL_NAME(_errno) = C_SYMBOL_NAME(errno)
        .text
 
 /* The syscall stubs jump here when they detect an error.
index 009a7973bc3fd60f08d32449ce949b38eef68a25..8d043ba6276e300febe3f9c18093612def28e190 100644 (file)
@@ -1,14 +1,14 @@
 The files
        zic.c zdump.c ialloc.c scheck.c tzfile.h
        private.h tzselect.ksh checktab.awk
-come from the tzcode1998b package by Arthur David Olson et.al.
+come from the tzcode1998f package by Arthur David Olson et.al.
 
 The files
        africa antarctica asia australasia europe
        northamerica southamerica pacificnew etcetera factory
        backward systemv solar87 solar88 solar89
        iso3166.tab zone.tab leapseconds yearistype
-come from the tzdata1998b package by Arthur David Olson et.al.
+come from the tzdata1998e package by Arthur David Olson et.al.
 
 These packages may be found at ftp://elsie.nci.nih.gov/pub/.  Commentary
 should be addressed to tz@elsie.nci.nih.gov.