Commit Graph

971 Commits

Author SHA1 Message Date
christos ab0a78e1a7 - don't define __LIBC12_SOURCE__
- need to SIG_IGN SIGSYS for the version check
- simplify code
2003-09-12 20:42:15 +00:00
christos 8adecf9fbe need __HAVE_SIGINFO to get the right flavor of the sigreturn symbol. 2003-09-12 13:29:46 +00:00
christos 86ad7a15ee __sigreturn14 -> compat_16___sigreturn14; thanks yamt 2003-09-12 12:42:34 +00:00
christos 5a93912d03 No reason for __ in static variable. 2003-09-11 20:24:39 +00:00
christos c18cae3e90 For kernels that have COMPAT_16 enabled, detect that and use the old
sigcontext trampoline code when SA_SIGINFO is not set.
2003-09-11 20:23:46 +00:00
christos ec30b8c224 Add __sigtramp2.S 2003-09-06 22:56:47 +00:00
christos 9c5c2215ea siginfo signal trampoline code. 2003-09-06 22:10:40 +00:00
uwe 2194ee2027 Add a comment that explains that
. this function cannot have _PROF_PROLOGUE
  . this function cannot be called via PLT

Change ENTRY to NENTRY for the former.

XXX: The latter is important in the gcc3 world, that have shared
libraries.  We will need to play tricks with .hidden to make sure
every shared library gets its own private __udivsi3 that it can call
directly, without going through the PLT.
2003-08-27 15:03:06 +00:00
ragge 0303d5ba8a execl, execle and execlp must be weak-aliased. 2003-08-24 21:04:53 +00:00
uwe 42a8e50b21 Add missing prototypes to make softfloat compile with -DSOFTFLOAT_NEED_FIXUNS. 2003-08-21 02:12:33 +00:00
fvdl 6f517be9eb Return the right value for modf(). Fixes PR 22503. 2003-08-16 21:45:50 +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
matt 4907369a14 export size_t __getcachelinesize(void) for memset() 2003-08-11 02:11:23 +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
mrg 05602c761d add a cast appease gcc3.3 2003-07-27 05:04:02 +00:00
salo 99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
marcus 9b73f39949 Generate proper PIC code for libc_pic.a. 2003-07-01 14:35:44 +00:00
uwe 439470c9f0 Registers _REG_Ri defines are numbered backwards, so when we fill
r4-r7 with arguments, use the correct *minus* i to compute the i-th
register index.
2003-06-23 10:45:20 +00:00
kleink 8929f86e50 Delint a use of uintptr_t; not strictly necessary with -current lint(1),
but consistent with makecontext.c.
2003-05-30 07:23:25 +00:00
petrov 09ec250b4c Declare global register. 2003-05-23 18:20:14 +00:00
simonb 5d5afc14d8 Match END label with LEAF label. 2003-05-23 06:36:10 +00:00
thorpej 8969ba6ff5 Build _isinfl() and _isnanl(). 2003-05-17 15:05:52 +00:00
thorpej f9345ff71e Add _isinfl() and _isnanl() routines, currently for internal use only. 2003-05-17 14:51:24 +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 426643832d Build {h,n}to{n,h}{l,s}() into object code; addresses PR port-macppc/21541
from Tsuyoshi MOMOSE.
2003-05-12 09:32:10 +00:00
martin cf437d291f Make _Qp_qtoui return the right value for inputs that do not fit into
an int value, but are valid unsigned ints. This should fix PR 21414.
The same problem exists for _Qp_qtoux, but there is no similar trivial
solution to that (I could think of).
Pointed out by David Laight.
2003-05-01 21:24:13 +00:00
kleink 3b364b9b85 Make sure we reference getcontext() by its internal name. 2003-04-07 21:04:20 +00:00
kleink e77f46b397 Fix stack pointer fixup of oucp (a relict from times when this
was implemented entirely different, and then bit rot commenced).
2003-04-07 19:44:40 +00:00
petrov 64f9771a77 Floating point argument should be in %f0 (sparcv9 ABI says). 2003-04-06 22:56:38 +00:00
bjh21 b9adad89fd Use the correct instruction for returning ffrom a function (MOV rather
than MOVS).
2003-04-05 23:09:58 +00:00
bjh21 c18226d8a8 NetBSD/acorn26 has been using APCS-32 for years, so unifdef -U__APCS_26__. 2003-04-05 23:08:50 +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
hannken 94a50cb223 Make it work on cpus with cachelinesize < 32.
Tested on macppc by Markus W Kilbinger.
2003-03-15 14:10:21 +00:00
fvdl e4189529ce No need to use movq for the small immediate values here, they'll be
zero-extended with movl.
2003-03-15 12:34:33 +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
simonb e32d091ca8 Fix a tyop in a comment. 2003-02-08 04:01:53 +00:00
cgd 57daa57e46 * fix handling of invalid arguments (was jumping to wrong label!)
(found by... running the regress test!)
* clean up punctuation.
* create a proper frame for the child fn that follows the o32 calling
  conventions.  In particular, leave 4 stack slots that the child
  fn can write on, put the GP above them, and invoke .cprestore
  properly in light of the child fn arg area.  (realized it was a
  problem upon inspection, verified using the regress test compiled
  -O0.)
2003-02-08 00:28:25 +00:00
cgd 351f7a02f1 looks like nobody ever seriously tried the _REENTRANT version of this
code (which, uh, seems the default for a fresh build)...  it wasn't
setting up v1 properly (the instruction to set up v1 was after the
return jump, in "reorder" code...  i.e.  after the end of the function).
That would break error returns from 64-bit syscalls (e.g. checks
in dd and who knows what else) to see if input or output are pipes.
It looks like the non-_REENTRANT version was broken (on the nathanw-sa
branch) in rev 1.9.2.1 and fixed in 1.9.2.2, but the _REENTRANT version
was never fixed, and the broken bits were merged back on to the trunk.
2003-02-07 20:35:05 +00:00
petrov 12784e54c3 Correct unsigned to float conversions, add license, adjust style. 2003-02-06 20:23:35 +00:00
martin 912ab5ad59 Check how the compiler expects the return value of this function
by testing SOFTFLOATSPARC64_FOR_GCC.

Should fix PR port-sparc64/20140.
2003-02-01 09:19:58 +00:00
fvdl 894bd3ad9d Add ucontext glue for x86_64. 2003-01-30 02:07:30 +00:00
kleink 326194c69f Update stack frame allocation for XMM state having been added to
mcontext_t; spotted by Frank van der Linden.
While here, also align the on-stack ucontext as required.
2003-01-26 18:14:03 +00:00
kleink 9b24979426 Fix comment typo, and convert to C-style comments. 2003-01-26 17:58:55 +00:00
fvdl 75b44dbf11 Fix comment that wasn't closed because of a typo (but harmless, since followed
by another comment).
2003-01-26 16:22:01 +00:00
fvdl 3a79855417 Fix wrong %esp fixup. 2003-01-26 15:54:35 +00:00
matt 61687fc220 Add the *context.? sources to SRCS.
Make getcontext _getcontext and add a getcontext weak alias.
2003-01-23 23:56:13 +00:00
scw aa338c0862 Now make these actually work. 2003-01-22 13:44:36 +00:00