Commit Graph

61 Commits

Author SHA1 Message Date
drochner
fa073991b3 build frexp/ldexp/modf in the "compat" part (code is identical)
(These are the easy cases where no assembler implementations exist.)
2006-06-28 14:46:32 +00:00
uwe
46daac62de G/c KMSRCS and KMINCLUDES now that we have common/lib/libc 2006-06-17 18:04:23 +00:00
skrll
6f5914a550 __sigtramp1.S moved to the new compat layout so we should try and build
it here.
2006-04-05 12:23:51 +00:00
drochner
f81322cf18 build erand48_ieee754.c on everything but vax 2006-03-22 22:03:58 +00:00
kleink
bc89c06cbf Add strtof(3) and strtold(3); welcome libc 12.137. 2006-03-15 17:35:17 +00:00
christos
2b52112d5a Remove files moved to the new compat layout. 2006-03-11 19:16:07 +00:00
christos
b1732b7a63 make these consistent. 2006-02-19 05:06:02 +00:00
kleink
804e6c96a2 Add machine-dependent definitions for gdtoa. 2006-01-25 15:33:28 +00:00
perry
4e11af46bc Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 21:11:15 +00:00
christos
e5548b402a Use reach-over sources from common/lib/libc 2005-12-20 19:31:47 +00:00
lukem
88c3eadbfa Add missing __RCSID() 2005-06-12 05:21:25 +00:00
kleink
b2cb7fcd8a Push back the descriptions of NaN formats, and descriptions of the
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.

IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
2005-04-15 22:39:10 +00:00
drochner
0341f6a45e the WARN_REFERENCES text "include <signal.h> for correct reference" is pointless
as <signal.h> won't help you, so remove it
2004-03-26 22:15:03 +00:00
drochner
85fa9b7250 fix references to the syscall formerly known as SYS___sigreturn14 2004-03-26 20:35:37 +00:00
drochner
cd85223ee2 save errno while trying to install a !SA_SIGINFO trampoline -- this
is expected to fail with !COMPAT_16 kernels, and we shouldn't
overwrite errno in this case
2004-03-23 16:19:40 +00:00
scw
d25d657094 sigreturn14 is deprecated, so don't use it in longjmp. 2004-03-17 00:35:08 +00:00
kleink
8e54f10bf7 * Turn isinf(3) and isnan(3) into C99-style macros.
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
2004-03-04 23:42:38 +00:00
kleink
d82e732345 Add C99 fpclassify(), isfinite(), isnormal(), and signbit() macros. 2004-01-15 19:43:44 +00:00
scw
29b106093d Swap WEAK_ALIAS args to how they should be. 2003-12-07 19:37:23 +00:00
kleink
9f3dbee22c Add __infinityf and __infinityl, float respectively long double analogs
of __infinity.
2003-10-25 22:31:20 +00:00
kleink
17bcc01b65 Oops, re-add line continuation. 2003-10-24 19:50:13 +00:00
kleink
712c8de209 * Since there is no single portable IEEE 754 format for a long double,
keep a common implementation of isinfl() and isnanl() to be used by
  platforms where `long double' == `double'; move others into
  machine-dependent code.
* In due course, consider __VFP_FP__ on arm.
2003-10-24 00:58:01 +00:00
scw
5238256a02 s/sigcontext/siginfo/ 2003-10-05 10:46:41 +00:00
scw
b469b163b9 libc bits for siginfo on sh5. 2003-10-05 10:01:49 +00:00
scw
ac6cbd4ac3 Pop the caller's PIC prologue and push our own, as we can be called
by other shared libraries with different GOTs (e.g. libposix).
2003-08-12 13:28:55 +00:00
scw
6ba9f44930 Repeat after me: Thou shalt run the regression tests. 2003-08-10 20:39:15 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
lukem
a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
thorpej
8969ba6ff5 Build _isinfl() and _isnanl(). 2003-05-17 15:05:52 +00:00
kleink
db907cb577 Rename ieee754_function.c to function_ieee754.c, following the convention
used in exec_format.c, loadfile_format.c, subsys_machdep.c etc.
Per discussion with Christos.
2003-05-12 15:15:11 +00:00
kleink
3b364b9b85 Make sure we reference getcontext() by its internal name. 2003-04-07 21:04:20 +00:00
scw
3617381164 Sign-extend the return value, as required by the ABI. 2003-03-26 11:59:36 +00:00
scw
825e47398e Much rototilling to add PIC support. 2003-03-24 14:29:34 +00:00
nathanw
4fb740b8de Implement pthread_atfork() (in libc, because the required threadlib
stub behavior is exactly the same as the usual behavior).
2003-02-13 02:50:48 +00:00
scw
aa338c0862 Now make these actually work. 2003-01-22 13:44:36 +00:00
kleink
cd9f53e12c Add swapcontext() lint stub. 2003-01-21 20:14:07 +00:00
scw
fd2dcace1f Make these compile. 2003-01-21 11:29:29 +00:00
scw
11e9fa3a9b Initialise the FPSCR to a sane value. 2003-01-20 20:09:59 +00:00
scw
bcbbc4f87e SH5 libc ucontext/lwp support.
Untested for now, until I get the libpthread stuff done and
an SA userland built.
2003-01-19 23:05:01 +00:00
thorpej
c7cb871964 These files are obsolete; setlogin() is now implemented in C with a
small syscall stub.
2003-01-18 18:28:44 +00:00
scw
94932a0f44 SH5 asm versions of some low-level libc routines.
Most of these copied from libkern.
2002-12-08 09:48:36 +00:00
scw
63199a5984 Fix a botched offset. 2002-10-08 20:19:00 +00:00
scw
d832585f39 Always save/restore the FP status register. 2002-09-28 10:38:55 +00:00
scw
ba98c8c290 Various setjmp/longjmp fixes.
Synchronise with the kernel's sh5 signal code.
2002-09-06 15:33:48 +00:00
scw
e4ff59faf1 Round-up the supplied length *before* aligning. 2002-09-06 15:31:19 +00:00
scw
fd955ca5d6 Make it plain to the compiler that __sigtramp_sigcontext_1() really is
an external function, instead of an array. Otherwise, it won't set
bit 0 of the trampoline's address to indicate SHmedia mode.
2002-09-04 21:44:07 +00:00
scw
891c86cef4 Use r4 to preserve the filedes pointer across the syscall instead of r3. 2002-09-04 19:19:07 +00:00
scw
2675306718 Add IEEE FP mode control functions and definitions for SH5. 2002-07-12 12:20:24 +00:00
scw
11c9d0366e Fix a tryping error. 2002-07-11 17:41:40 +00:00
scw
8c43a4afe4 Userland side of SH5 signals/setjmp. 2002-07-11 14:23:04 +00:00