OSDN Git Service

uclinux-h8/uclibc-ng.git
15 years agoMerge branch 'master' of git+ssh://carmelo@git.uclibc.org/git/uClibc
Carmelo Amoroso [Tue, 5 May 2009 17:15:27 +0000 (19:15 +0200)]
Merge branch 'master' of git+ssh://carmelo@git.uclibc.org/git/uClibc

15 years agoAdd position independent code for crt1.S.
Carmelo Amoroso [Tue, 5 May 2009 17:07:03 +0000 (19:07 +0200)]
Add position independent code for crt1.S.
This will generate a Scrt1.o that is linked to executabled
when compiled as PIE code (position independent executable) without
requiring relocation in .text section (not allowed on uclibc/sh4).

Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
15 years agoAdd .gitignore
Austin Foxley [Tue, 5 May 2009 14:59:19 +0000 (07:59 -0700)]
Add .gitignore

ignore most of the build output

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
15 years agosh: Fix FPU config option
Peter Griffin [Wed, 29 Apr 2009 10:04:00 +0000 (11:04 +0100)]
sh: Fix FPU config option

Change to UCLIBC_HAS_FPU because UCLIBC_HAS_FLOATS can be used with
UCLIBC_HAS_SOFT_FLOAT option.

15 years agopatch from Joseph S. Meyers
austinf [Mon, 27 Apr 2009 22:47:49 +0000 (22:47 -0000)]
patch from Joseph S. Meyers

This patch merges

2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>

        [BZ #2841]
        * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
        since C99 requires the result to promote to 'int' when uint_least8_t
        and uint_least16_t promote to 'int'.

from glibc to fix a bug in uClibc's stdint.h
(GCC's testsuite will now detect this problem, along with various others
some systems have in their stdint.h headers.)

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
15 years agolibc/string/i386/memset.c: memset 1 byte at a time is a bit gross
Denis Vlasenko [Thu, 23 Apr 2009 11:19:30 +0000 (11:19 -0000)]
libc/string/i386/memset.c: memset 1 byte at a time is a bit gross

15 years agoReinstate {drm,mtd,rdma,sound,video} directory installtion
Denis Vlasenko [Sun, 19 Apr 2009 00:51:04 +0000 (00:51 -0000)]
Reinstate {drm,mtd,rdma,sound,video} directory installtion
pending some explanation from gurus. Expanded comment explaining
_why_ we try to install these exact directories.

15 years agoinstall_kernel_headers: comment out copying of extra directories,
Denis Vlasenko [Sat, 18 Apr 2009 23:45:13 +0000 (23:45 -0000)]
install_kernel_headers: comment out copying of extra directories,
  this seem to be not needed

15 years agolibc/inet/resolv.c:
Denis Vlasenko [Sat, 18 Apr 2009 23:12:40 +0000 (23:12 -0000)]
libc/inet/resolv.c:

Collapse __length_dotted into __length_question (the sole user of it).
Make __length_question and __decode_answer static, they are used only once
  by only one function.
Delete __decode_question, it is unused.
All in all, four less .o files in libc.a.
Document what __dns_lookup returns (length of the packet).
Propagate packet len into __decode_answer, __length_question, __decode_dotted
  and check that we do not use data past the end of the packet.
Rename some variables/parameters to better names (len -> packet_len,
  data -> packet etc).
Add mini-doc how DNS packets look like.
Style cleanup.

15 years agomake sure to block all signals when calling daemon() to prevent delivery while the...
Mike Frysinger [Mon, 13 Apr 2009 00:06:40 +0000 (00:06 -0000)]
make sure to block all signals when calling daemon() to prevent delivery while the parent is sharing the stack

15 years agofor sparc v8 MAGIC1 was defined incorrectly
austinf [Sat, 11 Apr 2009 19:30:04 +0000 (19:30 -0000)]
for sparc v8 MAGIC1 was defined incorrectly

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
15 years agosparc also needs CONSTANT_STRING_GOT_FIXUP for doing debug printing in ldso
austinf [Sat, 11 Apr 2009 00:08:47 +0000 (00:08 -0000)]
sparc also needs CONSTANT_STRING_GOT_FIXUP for doing debug printing in ldso

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
15 years ago- fix typo
Bernhard Reutner-Fischer [Thu, 9 Apr 2009 17:48:17 +0000 (17:48 -0000)]
- fix typo

15 years agoFix the ifdef logic broken by last commit for !defined (__mcoldfire__)
Khem Raj [Thu, 9 Apr 2009 08:45:24 +0000 (08:45 -0000)]
Fix the ifdef logic broken by last commit for !defined (__mcoldfire__)

15 years agoThe attached patches fixes the problems found bringing up uclibc on coldfire
Khem Raj [Thu, 9 Apr 2009 07:38:04 +0000 (07:38 -0000)]
The attached patches fixes the problems found bringing up uclibc on coldfire
M5485 processor

1.  Disable mmap2() if we're compiling for coldfire and fall back to mmap().
    It seems to map a different file area on a 2.6.25 linux kernel.

2.  Uses pc-relative addresing[1], computes ADDR_ALIGN, PAGE_ALIGN
    and OFFSET_ALIGN relatively to _dl_pagesize[3].
    On coldfire/M5485 _dl_pagesize is 0x2000.

Signed-off-by: Groleo Marius <groleo@gmail.com>
15 years agoimplement daemon() using clone() on no-mmu systems as suggested by Jamie Lokier
Mike Frysinger [Tue, 7 Apr 2009 05:52:48 +0000 (05:52 -0000)]
implement daemon() using clone() on no-mmu systems as suggested by Jamie Lokier

15 years agoapply getline() fix from linux kernel
Mike Frysinger [Mon, 6 Apr 2009 06:40:57 +0000 (06:40 -0000)]
apply getline() fix from linux kernel

15 years ago32/64 bit sparc got unified in 2.6.29 the way x86/x86_64 did in 2.6.28.
Rob Landley [Fri, 27 Mar 2009 04:03:20 +0000 (04:03 -0000)]
32/64 bit sparc got unified in 2.6.29 the way x86/x86_64 did in 2.6.28.
The new guard symbol is "__SPARC_POSIX_TYPES_H".

15 years ago- Add strtouq alias (to strtoul) for 64bit
Bernhard Reutner-Fischer [Wed, 25 Mar 2009 20:28:19 +0000 (20:28 -0000)]
- Add strtouq alias (to strtoul) for 64bit

The strtouq alias was only available on 32bit, breaking compilation of stuff
using strtouq on 64bit machines. At the same time use the correct return
type (u_quad_t).

Signed-of-by: Peter Korsgaard <jacmet@sunsite.dk>
15 years ago- do not pass -Wl with -shared in LDFLAGS_NOSTRIP (Peter S. Mazinger)
Bernhard Reutner-Fischer [Wed, 25 Mar 2009 19:27:56 +0000 (19:27 -0000)]
- do not pass -Wl with -shared in LDFLAGS_NOSTRIP (Peter S. Mazinger)

15 years agofix compilation of linuxthreads for sparc
austinf [Wed, 18 Mar 2009 23:05:54 +0000 (23:05 -0000)]
fix compilation of linuxthreads for sparc
add myself to MAINTAINERS for sparc

15 years agoFixed makefiles inclusion flow to pass actual configuration variable values.
Carmelo Amoroso [Mon, 16 Mar 2009 13:36:39 +0000 (13:36 -0000)]
Fixed makefiles inclusion flow to pass actual configuration variable values.
Test build system modified to be similar to uClibc one:
 * test custom logic moved from Makefile to a new Makefile.in (to be included
   by Makefile).
 * Makefile same for all tests and just used for including all other needed
   makefiles.

Signed-off-by: Salvatore Cro <salvatore.cro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agoAdded string.h header for strerr prototype.
Carmelo Amoroso [Mon, 16 Mar 2009 13:33:27 +0000 (13:33 -0000)]
Added string.h header for strerr prototype.

15 years agoenable mprotect() regardless of MMU as some systems have MPUs which allows memory...
Mike Frysinger [Mon, 16 Mar 2009 06:16:15 +0000 (06:16 -0000)]
enable mprotect() regardless of MMU as some systems have MPUs which allows memory protection

15 years agoimport user.h from the kernel as it is no longer exported by the kernel
Mike Frysinger [Mon, 16 Mar 2009 06:14:34 +0000 (06:14 -0000)]
import user.h from the kernel as it is no longer exported by the kernel

15 years agoUpdate copyright header.
Khem Raj [Mon, 16 Mar 2009 06:02:47 +0000 (06:02 -0000)]
Update copyright header.

15 years agodocs/pthreads_hacking.txt: new file
Denis Vlasenko [Mon, 16 Mar 2009 02:56:27 +0000 (02:56 -0000)]
docs/pthreads_hacking.txt: new file

15 years agodefault linux-2.4 module support to off for Blackfin targets
Mike Frysinger [Sat, 14 Mar 2009 11:30:56 +0000 (11:30 -0000)]
default linux-2.4 module support to off for Blackfin targets

15 years agoforce DOPIC for FDPIC ELF targets
Mike Frysinger [Sat, 14 Mar 2009 11:23:28 +0000 (11:23 -0000)]
force DOPIC for FDPIC ELF targets

15 years agoadd GNU extension for select timeouts where the sub-second field is actually longer...
Mike Frysinger [Fri, 13 Mar 2009 06:17:48 +0000 (06:17 -0000)]
add GNU extension for select timeouts where the sub-second field is actually longer than one second

15 years agoadd linuxthreads support for arm. By Will Newton (will.newton AT gmail.com)
Denis Vlasenko [Thu, 12 Mar 2009 23:04:19 +0000 (23:04 -0000)]
add linuxthreads support for arm. By Will Newton (will.newton AT gmail.com)

15 years agolinuxthreads fixes from Will Newton (will.newton AT gmail.com):
Denis Vlasenko [Thu, 12 Mar 2009 20:56:59 +0000 (20:56 -0000)]
linuxthreads fixes from Will Newton (will.newton AT gmail.com):
* share Sys V semaphores in order to get appropriate SEM_UNDO semantics.
* correct guardaddr in pthread_free() for TLS case
* move spinlock unlocking before restart()
* When exit was called from a signal handler, the restart
  from the manager processing the exit request instead restarted the thread
  in pthread_cond_timedwait.
  (see http://sources.redhat.com/ml/libc-ports/2006-05/msg00000.html)

15 years agoresolver:
Denis Vlasenko [Tue, 10 Mar 2009 14:42:54 +0000 (14:42 -0000)]
resolver:
res_query: do not unconditionally set h_errno to TRY_AGAIN (closes bug 173).
cleanups: s/__dn_expand/dn_expand/, remove superfluous dn_expand declaration,
remove libc_hidden_proto junk

15 years agoDefine creat in an independent file
Khem Raj [Thu, 5 Mar 2009 19:07:01 +0000 (19:07 -0000)]
Define creat in an independent file

15 years agoUse __always_inline instead of __inline__
Carmelo Amoroso [Thu, 5 Mar 2009 13:28:55 +0000 (13:28 -0000)]
Use __always_inline instead of __inline__

15 years agoMake long double support available for sh too.
Carmelo Amoroso [Thu, 5 Mar 2009 13:08:35 +0000 (13:08 -0000)]
Make long double support available for sh too.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agomknod: widen the parameters to match kernel
Denis Vlasenko [Tue, 3 Mar 2009 13:00:48 +0000 (13:00 -0000)]
mknod: widen the parameters to match kernel
ustat: same, + remove superfluous "conversion"
 which does nothing at best, loses high dev bits at worst
i386/bits/kernel_stat.h: update to reflect reality (wider dev_t)
h8300/bits/kernel_stat.h: same
arm/bits/kernel_stat.h: cosmetics to match kernel header to the letter

15 years agoAdd EPOLLRDHUP constant
Denis Vlasenko [Mon, 2 Mar 2009 21:10:01 +0000 (21:10 -0000)]
Add EPOLLRDHUP constant

15 years agofix breakage in x86_64 defconfig
Denis Vlasenko [Fri, 27 Feb 2009 22:51:07 +0000 (22:51 -0000)]
fix breakage in x86_64 defconfig

15 years agoReinstate __libc_foo's needed for linuxthreads.old.
Denis Vlasenko [Wed, 25 Feb 2009 11:06:29 +0000 (11:06 -0000)]
Reinstate __libc_foo's needed for linuxthreads.old.
Now they are only enabled if linuxthreads.old are selected.

15 years agoFix thinko in svn 25434.
Rob Landley [Tue, 24 Feb 2009 18:42:38 +0000 (18:42 -0000)]
Fix thinko in svn 25434.

15 years agoMake HARDWIRED_ABSPATH a config option.
Rob Landley [Tue, 24 Feb 2009 07:20:53 +0000 (07:20 -0000)]
Make HARDWIRED_ABSPATH a config option.

15 years agoFix __attribute__ (( __attribute__ ((noreturn)))), which doesn't compile.
Rob Landley [Tue, 24 Feb 2009 00:27:33 +0000 (00:27 -0000)]
Fix __attribute__ (( __attribute__ ((noreturn)))), which doesn't compile.

15 years ago- remove superfluous $(strip)
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 11:18:30 +0000 (11:18 -0000)]
- remove superfluous $(strip)

15 years ago- remove dependency on GNU error functionality
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 10:54:15 +0000 (10:54 -0000)]
- remove dependency on GNU error functionality

15 years ago- disable libcrypt tests if we have no libcrypt
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 10:50:49 +0000 (10:50 -0000)]
- disable libcrypt tests if we have no libcrypt

15 years ago- also filter out headers-y
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 09:23:17 +0000 (09:23 -0000)]
- also filter out headers-y

15 years ago- fix weak ssp symbol on some arches (Peter S. Mazinger)
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 08:37:35 +0000 (08:37 -0000)]
- fix weak ssp symbol on some arches (Peter S. Mazinger)
  Work around alleged binutils glitch with weak symbols on some arches.
  See binutils ML, weak psm and vapier.

15 years agoUse gcc built-in defines for detecting SH cores instead of
Carmelo Amoroso [Mon, 23 Feb 2009 07:00:33 +0000 (07:00 -0000)]
Use gcc built-in defines for detecting SH cores instead of
uclibc config option macros (aligning SH to all other archs).

Changes applied as below:
__CONFIG_SH4__  -> __SH4__
__CONFIG_SH2__  -> __sh2__
__CONFIG_SH2A__ -> __SH2A__

Note: pay attention to capital letters

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agoFix my previous commit to use preprocessor in the right way !
Carmelo Amoroso [Fri, 20 Feb 2009 15:01:42 +0000 (15:01 -0000)]
Fix my previous commit to use preprocessor in the right way !

15 years agoLinuxthreads_old and NPTL must be mutually exclusive.
Carmelo Amoroso [Fri, 20 Feb 2009 14:37:43 +0000 (14:37 -0000)]
Linuxthreads_old and NPTL must be mutually exclusive.

TLS support cannot be enabled when using Linuxthreads_old
(at least until Linuxthreads and Linuxthreads_old will not
me merged togheter)

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agoFix typo.
Carmelo Amoroso [Fri, 20 Feb 2009 14:13:17 +0000 (14:13 -0000)]
Fix typo.

15 years agosh: Fix __SH_SYSCALL_TRAP_BASE for SH2A architecture
Carmelo Amoroso [Fri, 20 Feb 2009 13:31:01 +0000 (13:31 -0000)]
sh: Fix __SH_SYSCALL_TRAP_BASE for SH2A architecture

Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
15 years agoInstall other linux kernel header subdirectories too
Denis Vlasenko [Thu, 19 Feb 2009 01:00:33 +0000 (01:00 -0000)]
Install other linux kernel header subdirectories too

15 years ago- explicitely discourage to use pregenerated locale data.
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 19:47:35 +0000 (19:47 -0000)]
- explicitely discourage to use pregenerated locale data.
  Rob Landley promised to provide them for all arches but didn't do that
  yet so disable it for now since they just do not exist right now (and
  furthermore cause more pain than gain).

15 years agomathcalls.h: remove tons of redundant semicolons; better comment about macros
Denis Vlasenko [Wed, 18 Feb 2009 19:04:18 +0000 (19:04 -0000)]
mathcalls.h: remove tons of redundant semicolons; better comment about macros
math.h: make macro machinery a bit more understandable

No code changes (verified with objdump)

15 years agotest/math/compile_test.c: make it exit with 0 always
Denis Vlasenko [Wed, 18 Feb 2009 14:04:17 +0000 (14:04 -0000)]
test/math/compile_test.c: make it exit with 0 always

15 years agotest/math/compile_test.c: add compile testing of (some) floats
Denis Vlasenko [Tue, 17 Feb 2009 13:05:04 +0000 (13:05 -0000)]
test/math/compile_test.c: add compile testing of (some) floats

15 years agolibm/Makefile.in: reformat the list of wrappers
Denis Vlasenko [Tue, 17 Feb 2009 12:13:38 +0000 (12:13 -0000)]
libm/Makefile.in: reformat the list of wrappers
 so that it is easier to modify, sort, etc;
 use __ in filenames of wrappers which wrap __functions
 (it may be useful to have function and file names ALWAYS match);
 remove names of not implemented wrappers (it was generating useless
 empty .o files).
libm/ldouble_wrappers.c: comment out the wrapper which is
 not compiled anyway
test/math/compile_test.c: improve this test, it was optimizing out some calls,
 and we don't want that.

No actual code changes.

15 years agofix typo in comment
Denis Vlasenko [Tue, 17 Feb 2009 01:54:15 +0000 (01:54 -0000)]
fix typo in comment

15 years agotest/math/compile_test.c: "are long double functions even compile/link?" test
Denis Vlasenko [Tue, 17 Feb 2009 01:45:32 +0000 (01:45 -0000)]
test/math/compile_test.c: "are long double functions even compile/link?" test
*: fix everything which prevents above from building

15 years agoMakefile.in: comment out deletion of include/ucontext.h,
Denis Vlasenko [Mon, 16 Feb 2009 14:08:09 +0000 (14:08 -0000)]
Makefile.in: comment out deletion of include/ucontext.h,
it is included from include/signal.h.

15 years agosuppress bogus ioctl on fd==INT_MAX when vasprintf() is called
Denis Vlasenko [Sun, 15 Feb 2009 05:45:24 +0000 (05:45 -0000)]
suppress bogus ioctl on fd==INT_MAX when vasprintf() is called

15 years agomath.h: fix libm_hidden_proto leak into sanitized headers
Denis Vlasenko [Sat, 14 Feb 2009 03:26:57 +0000 (03:26 -0000)]
math.h: fix libm_hidden_proto leak into sanitized headers
libm/s_nextafterf.c: use /* */ comments

15 years agostrict POSIX requires a path to specified to `find`
Mike Frysinger [Fri, 13 Feb 2009 18:57:43 +0000 (18:57 -0000)]
strict POSIX requires a path to specified to `find`

15 years ago- repair my r25322 that ment to deal with getdomainname()'s visibility
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 15:35:26 +0000 (15:35 -0000)]
- repair my r25322 that ment to deal with getdomainname()'s visibility

15 years ago- scalb{,f,l} depend on UCLIBC_SUSV3_LEGACY
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 15:22:47 +0000 (15:22 -0000)]
- scalb{,f,l} depend on UCLIBC_SUSV3_LEGACY

15 years ago- fix comment style to make it compile again
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 15:04:08 +0000 (15:04 -0000)]
- fix comment style to make it compile again
- add note about "/etc/config/" and the resolver code per se.

15 years ago- we may need getdomainname internally
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 14:12:19 +0000 (14:12 -0000)]
- we may need getdomainname internally

15 years ago- use existing __stringify macro
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 14:10:35 +0000 (14:10 -0000)]
- use existing __stringify macro

15 years ago- fix link failures coming from recently added, misplaced strverscmp.
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 14:09:32 +0000 (14:09 -0000)]
- fix link failures coming from recently added, misplaced strverscmp.

15 years ago- fix fallout from r24140 and r24160 for !CTYPE_TABLES
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 13:29:29 +0000 (13:29 -0000)]
- fix fallout from r24140 and r24160 for !CTYPE_TABLES

15 years ago- fix compilation of !UCLIBC_HAS_CTYPE_TABLES by merging duplicate bits
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 12:59:35 +0000 (12:59 -0000)]
- fix compilation of !UCLIBC_HAS_CTYPE_TABLES by merging duplicate bits
  into ctype.h

15 years ago- workaround oddity with position of function attributes
Bernhard Reutner-Fischer [Fri, 13 Feb 2009 11:11:35 +0000 (11:11 -0000)]
- workaround oddity with position of function attributes

15 years agoPass NO_LONG_DOUBLE flag to basic-test when LONG_DOUBLE
Carmelo Amoroso [Thu, 12 Feb 2009 14:42:20 +0000 (14:42 -0000)]
Pass NO_LONG_DOUBLE flag to basic-test when LONG_DOUBLE
support is not enabled in uclibc to fix build.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agodocs/probe_math_exception.c:
Denis Vlasenko [Wed, 11 Feb 2009 17:37:21 +0000 (17:37 -0000)]
docs/probe_math_exception.c:
update example
libc/sysdeps/linux/i386/bits/mathinline.h:
improve __finite() macro, add __finitef macro
(why they aren't always macros? why aren't they arch independent?)
libm/math_private.h:
much better comments on math_opt_barrier() and math_force_eval()
libm/s_finite[f].c:
improve out-of-line __finite[f]() too (one byte less, yay...)

15 years agoadd comment why do we need _ISbit() macro
Denis Vlasenko [Wed, 11 Feb 2009 17:32:39 +0000 (17:32 -0000)]
add comment why do we need _ISbit() macro

15 years agoRe-add _ISbit macro required to build libstdc++ from gcc toolchain.
Carmelo Amoroso [Tue, 10 Feb 2009 16:56:43 +0000 (16:56 -0000)]
Re-add _ISbit macro required to build libstdc++ from gcc toolchain.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agoinclude more info in error messages so we have a better idea where things are failing
Mike Frysinger [Tue, 10 Feb 2009 04:10:34 +0000 (04:10 -0000)]
include more info in error messages so we have a better idea where things are failing

15 years agoadd mmap()/munmap() implementation for Windows
Mike Frysinger [Tue, 10 Feb 2009 00:09:04 +0000 (00:09 -0000)]
add mmap()/munmap() implementation for Windows

15 years agodo not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windo...
Mike Frysinger [Tue, 10 Feb 2009 00:02:19 +0000 (00:02 -0000)]
do not rely on features.h so that elf.h can be used on non-elf systems (Darwin, Windows, etc...)

15 years agoallow people to run the hostutils targets without having a .config file
Mike Frysinger [Mon, 9 Feb 2009 23:42:23 +0000 (23:42 -0000)]
allow people to run the hostutils targets without having a .config file

15 years agoldouble_wrappers.c: add long and long long optimized wrappers
Denis Vlasenko [Mon, 9 Feb 2009 22:55:08 +0000 (22:55 -0000)]
ldouble_wrappers.c: add long and long long optimized wrappers
float_wrappers.c: add xxxWRAPPER1(func) macros. no code changes,
 but makes this file much shorter.

    text           data     bss     dec     hex filename
-  42504            188       4   42696    a6c8 lib/libm-0.9.30-svn.so
+  42488            188       4   42680    a6b8 lib/libm-0.9.30-svn.so

15 years agounify byte order cruft in bswap.h and porting.h and add a bswap_64() replacement
Mike Frysinger [Mon, 9 Feb 2009 22:51:27 +0000 (22:51 -0000)]
unify byte order cruft in bswap.h and porting.h and add a bswap_64() replacement

15 years agounify the headers/random defines into porting.h to avoid duplication/rot
Mike Frysinger [Mon, 9 Feb 2009 21:48:48 +0000 (21:48 -0000)]
unify the headers/random defines into porting.h to avoid duplication/rot

15 years agodont force -Wl,-s when building host utils -- people can strip themselves
Mike Frysinger [Mon, 9 Feb 2009 21:25:15 +0000 (21:25 -0000)]
dont force -Wl,-s when building host utils -- people can strip themselves

15 years agoreinstate bits/uClibc_arch_features.h in installed headers,
Denis Vlasenko [Mon, 9 Feb 2009 13:26:01 +0000 (13:26 -0000)]
reinstate bits/uClibc_arch_features.h in installed headers,
my cross-compile toolchain based on gcc 4.3.1 broke without it.

15 years agoHand-optimize wrappers on i386:
Denis Vlasenko [Mon, 9 Feb 2009 13:10:12 +0000 (13:10 -0000)]
Hand-optimize wrappers on i386:

-83 ec 10               sub    $0x10,%esp
-db 6c 24 14            fldt   0x14(%esp)
-dd 5c 24 08            fstpl  0x8(%esp)
-dd 44 24 08            fldl   0x8(%esp)
-dd 1c 24               fstpl  (%esp)
-e8 fc ff ff ff         call   __GI_trunc
-83 c4 10               add    $0x10,%esp
+db 6c 24 04            fldt   0x4(%esp)
+dd 5c 24 04            fstpl  0x4(%esp)
+e9 fc ff ff ff         jmp    __GI_trunc
 c3                     ret

    text           data     bss     dec     hex filename
-  42749            176       4   42929    a7b1 lib/libm-0.9.30-svn.so
+  42085            176       4   42265    a519 lib/libm-0.9.30-svn.so

15 years agoldouble_wrappers.c: fix __signbitl, it was calling itself by mistake.
Denis Vlasenko [Mon, 9 Feb 2009 13:07:37 +0000 (13:07 -0000)]
ldouble_wrappers.c: fix __signbitl, it was calling itself by mistake.
 remove wrong casts to long double of long return values.
 remove lots of empty lines.

15 years agoforgot to add libc/string/generic/strverscmp.c
Denis Vlasenko [Sun, 8 Feb 2009 22:45:13 +0000 (22:45 -0000)]
forgot to add libc/string/generic/strverscmp.c

15 years agoAdd strverscmp() and versionsort[64]().
Denis Vlasenko [Sun, 8 Feb 2009 22:40:17 +0000 (22:40 -0000)]
Add strverscmp() and versionsort[64]().
By Hai Zaar (haizaar AT codefidence.com)

15 years agonextafterf: trying to correct FP exception handling
Denis Vlasenko [Sun, 8 Feb 2009 02:04:10 +0000 (02:04 -0000)]
nextafterf: trying to correct FP exception handling

15 years agolibm/s_nextafterf.c: forgot to "svn add" it
Denis Vlasenko [Fri, 6 Feb 2009 01:57:15 +0000 (01:57 -0000)]
libm/s_nextafterf.c: forgot to "svn add" it

15 years agofix nextafterf. by Jie Zhang (jie.zhang AT analog.com)
Denis Vlasenko [Fri, 6 Feb 2009 01:56:25 +0000 (01:56 -0000)]
fix nextafterf. by Jie Zhang (jie.zhang AT analog.com)

15 years agolibm: add scalbf, gammaf, significandf wrappers.
Denis Vlasenko [Thu, 5 Feb 2009 22:40:03 +0000 (22:40 -0000)]
libm: add scalbf, gammaf, significandf wrappers.
 This makes in possible to enable test/math
 (not it compiles, but has lots of test failures).

15 years agoMake TLS configure time variable. Enable it along with NPTL.
Khem Raj [Thu, 5 Feb 2009 07:50:54 +0000 (07:50 -0000)]
Make TLS configure time variable. Enable it along with NPTL.

15 years ago- fix install_headers on hosts where ld does not support gnu hash-style but
Bernhard Reutner-Fischer [Tue, 3 Feb 2009 17:38:53 +0000 (17:38 -0000)]
- fix install_headers on hosts where ld does not support gnu hash-style but
  uClibc is configured to use it.

15 years agolibm/ldouble_wrappers.c: add libm_hidden_def's to fix testsuite build
Denis Vlasenko [Mon, 2 Feb 2009 14:51:48 +0000 (14:51 -0000)]
libm/ldouble_wrappers.c: add libm_hidden_def's to fix testsuite build
test/Rules.mak: don't pass target options to host build
test/math/basic-test.c: fix test build error
patching file test/unistd/errno.c: fix test build warning

15 years agofix ppoll. we forgot to pass 5th parameter to the syscall
Denis Vlasenko [Wed, 28 Jan 2009 23:42:01 +0000 (23:42 -0000)]
fix ppoll. we forgot to pass 5th parameter to the syscall

15 years agoPartially revent "make utils" fix. This version is less intrusive,
Denis Vlasenko [Wed, 28 Jan 2009 23:12:43 +0000 (23:12 -0000)]
Partially revent "make utils" fix. This version is less intrusive,
but still works! :)