OSDN Git Service

uclinux-h8/uclibc-ng.git
15 years ago- move stripping into do_ar resp compile-m for the sake of simplicity
Bernhard Reutner-Fischer [Tue, 17 Jun 2008 14:20:36 +0000 (14:20 -0000)]
- move stripping into do_ar resp compile-m for the sake of simplicity

15 years ago- remove improper comment
Bernhard Reutner-Fischer [Mon, 16 Jun 2008 17:15:20 +0000 (17:15 -0000)]
- remove improper comment

15 years ago- fix build error
Bernhard Reutner-Fischer [Mon, 16 Jun 2008 16:59:13 +0000 (16:59 -0000)]
- fix build error
  brk.c:(.text.__GI_sysconf+0xd4): undefined reference to `clock_getres'

15 years agodes: des_setkey always returns 0, there is no point
Denis Vlasenko [Fri, 13 Jun 2008 15:19:32 +0000 (15:19 -0000)]
des: des_setkey always returns 0, there is no point
in checking whether it returns 1.

    text           data     bss     dec     hex filename
-   4283              0   70209   74492   122fc libcrypt/des.o
+   4273              0   70209   74482   122f2 libcrypt/des.o

15 years agoInclude sys/syscall.h since we are checking for __NR_clock_getres.
Peter Kjellerstedt [Thu, 12 Jun 2008 22:28:03 +0000 (22:28 -0000)]
Include sys/syscall.h since we are checking for __NR_clock_getres.

15 years agoremove a trivial comment. no code changes
Denis Vlasenko [Thu, 12 Jun 2008 11:06:41 +0000 (11:06 -0000)]
remove a trivial comment. no code changes

15 years agoRevert revision 19347, plus libc_hidden_proto for __uc_malloc.
Bernd Schmidt [Thu, 12 Jun 2008 10:31:17 +0000 (10:31 -0000)]
Revert revision 19347, plus libc_hidden_proto for __uc_malloc.
Some of the code is functionally identical before and after, but for now
I'm just mechanically reverting the entire mess.

15 years agoRevert revision 19345 plus libc_hidden_proto for __uc_malloc.
Bernd Schmidt [Thu, 12 Jun 2008 10:14:14 +0000 (10:14 -0000)]
Revert revision 19345 plus libc_hidden_proto for __uc_malloc.

15 years agoRevert revision 19344 plus the libc_hidden_proto for __uc_malloc.
Bernd Schmidt [Thu, 12 Jun 2008 10:06:21 +0000 (10:06 -0000)]
Revert revision 19344 plus the libc_hidden_proto for __uc_malloc.

15 years agoRevert revision 19343 and also remove libc_hidden_proto for __uc_malloc.
Bernd Schmidt [Thu, 12 Jun 2008 10:00:41 +0000 (10:00 -0000)]
Revert revision 19343 and also remove libc_hidden_proto for __uc_malloc.
For now, a straight revert; we can decide later wheter we want to do something
more.

15 years agoMake locale_headers only when doing pregen and not headers
Carmelo Amoroso [Wed, 11 Jun 2008 18:29:48 +0000 (18:29 -0000)]
Make locale_headers only when doing pregen and not headers
due to dependencies against sysnum.h

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
15 years agolibcrypt/md5.c:
Denis Vlasenko [Wed, 11 Jun 2008 16:11:29 +0000 (16:11 -0000)]
libcrypt/md5.c:
Make sp, ep and p variables automatic.
There is no point in having them static,
they never use their values retained from previous call.
Replace strlen(__md5__magic) etc by compile-time constants.

    text           data     bss     dec     hex filename
-   1957              0     132    2089     829 libcrypt/md5.o
+   1905              0     120    2025     7e9 libcrypt/md5.o

15 years agoFix some compiler warnings
Carmelo Amoroso [Wed, 11 Jun 2008 15:03:31 +0000 (15:03 -0000)]
Fix some compiler warnings

15 years ago- disregard any and all $(top_builddir) in deps.
Bernhard Reutner-Fischer [Wed, 11 Jun 2008 14:25:06 +0000 (14:25 -0000)]
- disregard any and all $(top_builddir) in deps.
  Fixes e.g. make -C ldso rebuilding unneeded stuff

15 years agoFix two more cases where a libc_hidden_proto was added to string.h while
Bernd Schmidt [Wed, 11 Jun 2008 12:12:40 +0000 (12:12 -0000)]
Fix two more cases where a libc_hidden_proto was added to string.h while
no libc_hidden_def exists for the function.

15 years agoxtensa: Fix spill routine.
Chris Zankel [Wed, 11 Jun 2008 07:58:57 +0000 (07:58 -0000)]
xtensa: Fix spill routine.

The spill routine to flush all windowed registers was missing a 'mov'
instruction.

Signed-off-by: Chris Zankel <chris@zankel.net>
15 years ago- no need to export the included dependencies generated by cc
Bernhard Reutner-Fischer [Tue, 10 Jun 2008 18:30:43 +0000 (18:30 -0000)]
- no need to export the included dependencies generated by cc

15 years agoRevert revison 19346, except parts needed by later patches (r19347 also added
Bernd Schmidt [Tue, 10 Jun 2008 11:38:53 +0000 (11:38 -0000)]
Revert revison 19346, except parts needed by later patches (r19347 also added
__uc_malloc calls in getnetent.c, so we must retain the include and
libc_hidden_proto).

15 years agoRevert revision 19342, plus one whitespace fix demanded by the pre-commit
Bernd Schmidt [Tue, 10 Jun 2008 11:21:34 +0000 (11:21 -0000)]
Revert revision 19342, plus one whitespace fix demanded by the pre-commit
hook.

15 years ago- Improve prerequisites and avoid spurious reconfigurations.
Bernhard Reutner-Fischer [Mon, 9 Jun 2008 17:18:53 +0000 (17:18 -0000)]
- Improve prerequisites and avoid spurious reconfigurations.
  More details: http://uclibc.org/lists/uclibc/2008-June/019509.html

15 years agoIn string.h, move libc_hidden_proto next to the corresponding declaration.
Bernd Schmidt [Sun, 8 Jun 2008 20:38:53 +0000 (20:38 -0000)]
In string.h, move libc_hidden_proto next to the corresponding declaration.
Filter them out when installing headers.

Tested by building up bfin-*linux toolchains and building our copy of
uClinux-dist.

15 years ago- if UNIX98PTY_ONLY is not set then we're in legacy land anyway which needs
Bernhard Reutner-Fischer [Sat, 7 Jun 2008 15:19:18 +0000 (15:19 -0000)]
- if UNIX98PTY_ONLY is not set then we're in legacy land anyway which needs
  UCLIBC_HAS_GETPT unconditionally for __libc_ptyname{1,2}[] and related bloat.

15 years ago- revert incorrect parts of r22257 and 22259
Bernhard Reutner-Fischer [Sat, 7 Jun 2008 14:51:43 +0000 (14:51 -0000)]
- revert incorrect parts of r22257 and 22259
  since posix_openpt lives in getpt.c it has to stay there unconditionally.

15 years ago- remove __USE_BSD guard from __bsd_getpt().
Bernhard Reutner-Fischer [Sat, 7 Jun 2008 14:29:19 +0000 (14:29 -0000)]
- remove __USE_BSD guard from __bsd_getpt().
  Fixes compilation error for defined UCLIBC_HAS_PTY && !defined UNIX98PTY_ONLY
  which need both __libc_ptyname1 and __libc_ptyname2 for ptsname_r().

15 years ago- UCLIBC_HAS_GETPT pulls in getpt.
Bernhard Reutner-Fischer [Sat, 7 Jun 2008 13:55:32 +0000 (13:55 -0000)]
- UCLIBC_HAS_GETPT  pulls in getpt.
- ptsname_r depends on UCLIBC_HAS_PTY just like ptsname()

15 years agoRemove superfluous attribute_hidden from function
Denis Vlasenko [Fri, 6 Jun 2008 13:25:09 +0000 (13:25 -0000)]
Remove superfluous attribute_hidden from function
definition. I seems to produce spurious warning:
libc/inet/resolv.c:1549: warning: 'visibility' attribute ignored on non-class types
(seems like gcc bug)
and it is not really needed - attribute_hidden was already
specified in function _declaration_ so it is not necessary here.

No code changes (verified with objdump).

15 years agoDocument the reason why ether tests in testsuite may fail.
Denis Vlasenko [Fri, 6 Jun 2008 08:05:50 +0000 (08:05 -0000)]
Document the reason why ether tests in testsuite may fail.
No code changes.

15 years agoFix hard-to-rigger locking bug in vsyslog():
Denis Vlasenko [Fri, 6 Jun 2008 07:45:08 +0000 (07:45 -0000)]
Fix hard-to-rigger locking bug in vsyslog():
SIGPIPE handler was attempting to re-acquire an already taken lock.
While at it, stop checking for sigaction failure which is not possible here.
Sizes:

    text           data     bss     dec     hex filename
-   1123             13       2    1138     472 libc/misc/syslog/syslog.o
+   1112             13       2    1127     467 libc/misc/syslog/syslog.o

Run tested.

15 years agoUse more natural way to return a value in __read_etc_hosts_r:
Denis Vlasenko [Fri, 6 Jun 2008 07:25:12 +0000 (07:25 -0000)]
Use more natural way to return a value in __read_etc_hosts_r:

    text           data     bss     dec     hex filename
-    230              0       9     239      ef libc/inet/gethostent.o
+    224              0       9     233      e9 libc/inet/gethostent.o
-    782              0       0     782     30e libc/inet/read_etc_hosts_r.o
+    767              0       0     767     2ff libc/inet/read_etc_hosts_r.o

Run tested.

15 years agoFix failure in test/inet/gethost_r-align:
Denis Vlasenko [Fri, 6 Jun 2008 07:23:47 +0000 (07:23 -0000)]
Fix failure in test/inet/gethost_r-align:
we were closing a FILE, but did not record that fact by setting
a variable to NULL, and then we used it for reading!
While at it, small reduction in bss.
Run tested.

    text           data     bss     dec     hex filename
-    210              0      12     222      de libc/inet/gethostent.o
+    230              0       9     239      ef libc/inet/gethostent.o

15 years agoshrink getopt a bit by using smallints. Run tested (busybox testsuite)
Denis Vlasenko [Fri, 6 Jun 2008 03:24:45 +0000 (03:24 -0000)]
shrink getopt a bit by using smallints. Run tested (busybox testsuite)

    text           data     bss     dec     hex filename
-   2403             12      40    2455     997 libc/unistd/getopt.o
+   2388             12      28    2428     97c libc/unistd/getopt.o

15 years agoHeed a warning: "string" was assigned to char*, changing that to const char*
Denis Vlasenko [Fri, 6 Jun 2008 02:44:10 +0000 (02:44 -0000)]
Heed a warning: "string" was assigned to char*, changing that to const char*

15 years agoFix spurious testsuite failure
Denis Vlasenko [Fri, 6 Jun 2008 02:42:57 +0000 (02:42 -0000)]
Fix spurious testsuite failure

15 years agoRevert revision 22027 which totally broke getopt.
Bernd Schmidt [Thu, 5 Jun 2008 17:42:11 +0000 (17:42 -0000)]
Revert revision 22027 which totally broke getopt.

15 years ago- forgot to checkin this s/check/FORCE/
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 16:29:50 +0000 (16:29 -0000)]
- forgot to checkin this s/check/FORCE/

15 years ago- revert r22233
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 13:47:35 +0000 (13:47 -0000)]
- revert r22233

15 years ago- make libcrypt optional. Untested.
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 13:46:47 +0000 (13:46 -0000)]
- make libcrypt optional. Untested.

15 years ago- switching thread impls without makeing clean before left the objs of the
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 12:29:36 +0000 (12:29 -0000)]
- switching thread impls without makeing clean before left the objs of the
  previously selected impl lying around on a distclean. Make sure that this
  does not happen.

15 years ago- do a defconfig for the given arch, not unconditionally for alpha
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 11:48:10 +0000 (11:48 -0000)]
- do a defconfig for the given arch, not unconditionally for alpha

15 years ago- drats. The pre-commit hook is broken. No chance to ci a patch other than obfuscated...
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 11:47:09 +0000 (11:47 -0000)]
- drats. The pre-commit hook is broken. No chance to ci a patch other than obfuscated, sorry.

15 years ago- pull kconfig from 2.6.25.4
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 11:43:44 +0000 (11:43 -0000)]
- pull kconfig from 2.6.25.4
  It has nicer "-*-" etc hints

15 years ago- fix keyword "depends on"
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 10:26:40 +0000 (10:26 -0000)]
- fix keyword "depends on"

15 years ago- linuxthreads and linuxthreads.old need nanosleep()
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 08:10:12 +0000 (08:10 -0000)]
- linuxthreads and linuxthreads.old need nanosleep()

15 years agoFix typo that prevented "make clean" from removing objects in libc/misc/locale.
Bernd Schmidt [Wed, 4 Jun 2008 21:17:40 +0000 (21:17 -0000)]
Fix typo that prevented "make clean" from removing objects in libc/misc/locale.

15 years ago- remove duplicate removing of ustat.h
Bernhard Reutner-Fischer [Wed, 4 Jun 2008 17:34:25 +0000 (17:34 -0000)]
- remove duplicate removing of ustat.h

15 years ago- strip the targets and not prerequisites
Bernhard Reutner-Fischer [Wed, 4 Jun 2008 14:57:16 +0000 (14:57 -0000)]
- strip the targets and not prerequisites
- tidy up PTHREADS_DEBUG_SUPPORT by using per-target STRIP_FLAGS for the few

  This fixes the spurious rebuilds bernd and vda were seeing with libpthreads.

15 years agoUndefining __UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL__ did not work, since we
Bernd Schmidt [Wed, 4 Jun 2008 14:04:08 +0000 (14:04 -0000)]
Undefining __UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL__ did not work, since we
were still defining signal to sysv_signal.

15 years agoThis fixes a problem with the move of libc_hidden_proto to string.h.
Bernd Schmidt [Wed, 4 Jun 2008 14:02:56 +0000 (14:02 -0000)]
This fixes a problem with the move of libc_hidden_proto to string.h.

The obsolete functions bcopy, index, etc. are not supposed to be used within
uClibc itself.  Hence, there is no libc_hidden_def for them, but the previous
patch did not just move libc_hidden_protos, it also added new ones for the
legacy functions.  As a result, programs which use these functions can no
longer link with uClibc.

This fixes it by removing the unnecessary libc_hidden_protos.  I've also
removed all inclusions of <strings.h> from uClibc source files: since we
define _GNU_SOURCE, it is sufficient to include <string.h>.  We then do not
need to duplicate the libc_hidden_proto block in <strings.h>.

15 years ago- fix typo (have to check the content, not if true)
Bernhard Reutner-Fischer [Wed, 4 Jun 2008 08:57:14 +0000 (08:57 -0000)]
- fix typo (have to check the content, not if true)

15 years agoFix merge error: mmap.c no longer exists in bfin/.
Bernd Schmidt [Tue, 3 Jun 2008 23:28:43 +0000 (23:28 -0000)]
Fix merge error: mmap.c no longer exists in bfin/.

15 years agoclose bug 473:
Denis Vlasenko [Tue, 3 Jun 2008 19:05:04 +0000 (19:05 -0000)]
close bug 473:
1. names with two consecutive dots are not valid
2. if name ends with a dot, dont try appending search domain(s)
alos a few small optimisations are here.

15 years ago- Revert _dl_exit touch-up.
Bernhard Reutner-Fischer [Tue, 3 Jun 2008 14:56:45 +0000 (14:56 -0000)]
- Revert _dl_exit touch-up.
  It breaks on arches that don't define proper/complete/nice syscall facilities.

15 years ago- add libpthread-nonshared-y to files.dep
Bernhard Reutner-Fischer [Tue, 3 Jun 2008 14:38:18 +0000 (14:38 -0000)]
- add libpthread-nonshared-y to files.dep
  Fixes superfluous rebuild of pthread_atfork.oS.

15 years agosyslog.c: fix a buglet in prev-last commit: logic inversion in closelog
Denis Vlasenko [Tue, 3 Jun 2008 14:37:36 +0000 (14:37 -0000)]
syslog.c: fix a buglet in prev-last commit: logic inversion in closelog

15 years agosyslog.c: fix indentation and style. No code changes.
Denis Vlasenko [Tue, 3 Jun 2008 14:26:55 +0000 (14:26 -0000)]
syslog.c: fix indentation and style. No code changes.

15 years agoFix bug 575 and other small problems noticed along the way.
Denis Vlasenko [Tue, 3 Jun 2008 14:26:12 +0000 (14:26 -0000)]
Fix bug 575 and other small problems noticed along the way.
The bug: this blocks in syslogd is stopped:
#include <syslog.h>
int main() {
        int i;
        for (i = 0; i < 10000; i++)
                syslog(LOG_INFO, "Testing, disregard....................");
        return 0;
}
Fix: set O_NONBLOCK on fd to "/dev/log".
Other fixes: do not try to write to fd -1, do not spin forever or EAGAIN,
use constant sockaddr instead of recreating identical one each time,
eliminate one intermediate function (SUGPIPE sig handler),
use smallints where appropriate, add a few comments.

Size:
    text           data     bss     dec     hex filename
-   1140             16      21    1177     499 libc/misc/syslog/syslog.o
+   1123             13       2    1138     472 libc/misc/syslog/syslog.o

15 years ago- Generate dummy rules for prerequisites.
Bernhard Reutner-Fischer [Tue, 3 Jun 2008 09:02:32 +0000 (09:02 -0000)]
- Generate dummy rules for prerequisites.
  Fixes build-failures in ldso when switching thread-impl because of missing
  rule to make e.g. pthreadtypes.h
  Thanks to Peter Kjellerstedt for the reminder.

15 years ago- adds several config-options to allow for turning off certain features
Bernhard Reutner-Fischer [Tue, 3 Jun 2008 08:11:56 +0000 (08:11 -0000)]
- adds several config-options to allow for turning off certain features
  like
  o UCLIBC_HAS_GNU_ERROR
  o UCLIBC_HAS_BSD_ERR
  o UCLIBC_HAS_PTY
  o UCLIBC_HAS_GETPT (1)
  o UCLIBC_SYSCALL_STUBS
  o UCLIBC_SYSCALL_STUB_WARNING
  o UCLIBC_LINUX_SPECIFIC (2)
  o UCLIBC_BSD_SPECIFIC (3)
  o UCLIBC_NTP_LEGACY (4)
  o UCLIBC_SV4_DEPRECATED (5)
  o UCLIBC_HAVE_REALTIME (6)
  o UCLIBC_HAVE_ADVANCED_REALTIME (7)
  o UCLIBC_HAVE_EPOLL (8)
  o UCLIBC_HAVE_XATTR (9)
  o UCLIBC_HAVE_PROFILING (10)

(1) make non-standard getpt optional and implement standard posix_openpt
(2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(),
    personality()
    ppoll(), setresuid()
(3) mincore(), getdomainname(), setdomainname()
(4) ntp_adjtime(), ntp_gettime() aliases
(5) ustat() [use statfs(2) in your code instead]
(6) All marked as "(REALTIME)" in SUSv3
(7) All marked as "(ADVANCED REALTIME)" in SUSv3
(8) epoll_create(), epoll_ctl(), epoll_wait()
(9) all Extended Attributes
(10) helpers for gcc's -finstrument-functions

- Fixes _dl_exit()
- Implements sleep(3) for !UCLIBC_HAVE_REALTIME
- Implements usleep(3) for !UCLIBC_HAVE_REALTIME
- adds #warning about incorrect posix_fadvise{,64}()
- removes unused and unwanted uselib()

Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead
of formerly 130k.

15 years ago- breakup lines of compile.c and add a variable to hold filter-out PHONY target.
Bernhard Reutner-Fischer [Tue, 3 Jun 2008 07:58:59 +0000 (07:58 -0000)]
- breakup lines of compile.c and add a variable to hold filter-out PHONY target.
  No functional changes.

15 years agoRemove __PRINTF_INFO_NO_BITFIELD hack, UCLIBC_INTERNAL can be used instead,
Denis Vlasenko [Tue, 3 Jun 2008 03:51:30 +0000 (03:51 -0000)]
Remove __PRINTF_INFO_NO_BITFIELD hack, UCLIBC_INTERNAL can be used instead,
and it's slightly shorter.
Also removes stray macros from public <printf.h> header
and uses spaces for comment indentation.

No code changes (verified with objdump).

15 years agofix trivial mismatch in return type of build_wcs_upper_buffer()
Denis Vlasenko [Tue, 3 Jun 2008 00:00:32 +0000 (00:00 -0000)]
fix trivial mismatch in return type of build_wcs_upper_buffer()
(int/enum). clases bug 3234.

15 years agoRename HAVE_NO_SHARED to ARCH_HAS_NO_SHARED, otherwise it's too confusing
Denis Vlasenko [Mon, 2 Jun 2008 23:46:16 +0000 (23:46 -0000)]
Rename HAVE_NO_SHARED to ARCH_HAS_NO_SHARED, otherwise it's too confusing
with HAVE_SHARED

15 years agodlfcn.h exists only if __HAVE_SHARED__ ("we are built with shared lib support"),
Denis Vlasenko [Mon, 2 Jun 2008 23:45:23 +0000 (23:45 -0000)]
dlfcn.h exists only if __HAVE_SHARED__ ("we are built with shared lib support"),
not when !__HAVE_NO_SHARED__ ("arch can theoretically support shred libs")

15 years agolibc/stdlib/stdlib.c: fix whitespace damage. No code changes
Denis Vlasenko [Mon, 2 Jun 2008 23:22:43 +0000 (23:22 -0000)]
libc/stdlib/stdlib.c: fix whitespace damage. No code changes
(verified with objdump)

15 years agofix bug 1577: '`' is not an acceptable digit for strto[u]l().
Denis Vlasenko [Mon, 2 Jun 2008 23:21:40 +0000 (23:21 -0000)]
fix bug 1577: '`' is not an acceptable digit for strto[u]l().
Code size is not changed on i386.

15 years agolibc/inet/resolv.c: use ip6.arpa instead of ip6.int for reverse
Denis Vlasenko [Mon, 2 Jun 2008 22:06:58 +0000 (22:06 -0000)]
libc/inet/resolv.c: use ip6.arpa instead of ip6.int for reverse
IPv6 DNS resolv. rfc4159 mandated this 3 years ago. Closes bug 1020.

Also cleans up some stype inconsistensied and saves 2 bytes of rw data.

15 years agolibc/inet/addr.c: fix broked indentation and bad style. No code changes.
Denis Vlasenko [Mon, 2 Jun 2008 20:46:06 +0000 (20:46 -0000)]
libc/inet/addr.c: fix broked indentation and bad style. No code changes.

16 years agofix fallout from libc_hidden_proto removal
Denis Vlasenko [Mon, 2 Jun 2008 05:49:58 +0000 (05:49 -0000)]
fix fallout from libc_hidden_proto removal

16 years agosuppress a few "might be used uninitialized" warnings. No code growth.
Denis Vlasenko [Sun, 1 Jun 2008 22:11:07 +0000 (22:11 -0000)]
suppress a few "might be used uninitialized" warnings. No code growth.

16 years agoRework smallint machinery so that it will reliably fail to compile
Denis Vlasenko [Sun, 1 Jun 2008 21:52:47 +0000 (21:52 -0000)]
Rework smallint machinery so that it will reliably fail to compile
even if arch overrides smallint size. Makes it easier to spot bugs
on such arches.

16 years agobuild system: stop creating ugly double-slash symlinks like
Denis Vlasenko [Sun, 1 Jun 2008 21:51:12 +0000 (21:51 -0000)]
build system: stop creating ugly double-slash symlinks like
fenv.h -> ../../libc/sysdeps/linux/i386/bits//fenv.h

16 years agofix compile breakage in libc/string/wcscasecmp.c
Denis Vlasenko [Sun, 1 Jun 2008 21:01:14 +0000 (21:01 -0000)]
fix compile breakage in libc/string/wcscasecmp.c
by adding include <wchar.h> in strcasecmp.c

16 years agoadd missing includes of unistd.h for smallint usage
Denis Vlasenko [Sun, 1 Jun 2008 20:44:48 +0000 (20:44 -0000)]
add missing includes of unistd.h for smallint usage
remove a few duplicate includes of unistd.h

16 years agoStill forgot some libraries in one of the previous commits.
Bernd Schmidt [Sun, 1 Jun 2008 17:27:37 +0000 (17:27 -0000)]
Still forgot some libraries in one of the previous commits.

16 years agoA slight improvement over my previous commit which ensured we always rebuild
Bernd Schmidt [Sun, 1 Jun 2008 16:49:23 +0000 (16:49 -0000)]
A slight improvement over my previous commit which ensured we always rebuild
libc when one of the source files changes.

Since there are more places which want to depend on $(libc), fix them all to
use a new variable $(libc.depend), which contains the filename for which we
have a rule.

16 years agoUse $(<D) rather than $(^D), as the latter now contains an element
Bernd Schmidt [Sun, 1 Jun 2008 16:44:52 +0000 (16:44 -0000)]
Use $(<D) rather than $(^D), as the latter now contains an element
corresponding to FORCE, which causes some CFLAGS to be lost.

Include all objects in the dependency calculation, not just the ones in libc.

16 years ago- since we force make into trying to rebuild unconditionally, we have to
Bernhard Reutner-Fischer [Sun, 1 Jun 2008 12:50:21 +0000 (12:50 -0000)]
- since we force make into trying to rebuild unconditionally, we have to
  check for changed prerequisites manually.

16 years ago- store the used compiler plus flags in the .%.dep files too and
Bernhard Reutner-Fischer [Sun, 1 Jun 2008 12:40:25 +0000 (12:40 -0000)]
- store the used compiler plus flags in the .%.dep files too and
  use this info to decide whether or not to rebuild something (if e.g. the
  filestamp of the prereq did not change but the cc or CFLAGS did).

  For files that we did not yet build we have no flags on record, so those
  did change inherently and we rebuild.

  Shouldn't be much slower than before.

16 years agoFix a dependency to mention libc.so, not libc.so.0, as we only have a rule to
Bernd Schmidt [Sat, 31 May 2008 21:39:13 +0000 (21:39 -0000)]
Fix a dependency to mention libc.so, not libc.so.0, as we only have a rule to
build the former.

16 years ago- rm all deps on distclean
Bernhard Reutner-Fischer [Sat, 31 May 2008 17:15:37 +0000 (17:15 -0000)]
- rm all deps on distclean

16 years agoOh, and prepend a dot to the basename so i don't have to change my habit of
Bernhard Reutner-Fischer [Sat, 31 May 2008 17:06:51 +0000 (17:06 -0000)]
Oh, and prepend a dot to the basename so i don't have to change my habit of
calling 'size thefile.o*'

16 years ago- generate deps via gcc
Bernhard Reutner-Fischer [Sat, 31 May 2008 16:49:52 +0000 (16:49 -0000)]
- generate deps via gcc

16 years ago- fix whitespace
Bernhard Reutner-Fischer [Sat, 31 May 2008 11:22:30 +0000 (11:22 -0000)]
- fix whitespace

16 years ago- fix prerequisites of sysnum.h (has to depend on the script that generates it)
Bernhard Reutner-Fischer [Sat, 31 May 2008 11:13:32 +0000 (11:13 -0000)]
- fix prerequisites of sysnum.h (has to depend on the script that generates it)

16 years ago- default kernel-modules funcs to on.
Bernhard Reutner-Fischer [Sat, 31 May 2008 10:58:03 +0000 (10:58 -0000)]
- default kernel-modules funcs to on.

16 years agofix fallout from string.h libc_hidden_proto removal
Denis Vlasenko [Sat, 31 May 2008 10:48:50 +0000 (10:48 -0000)]
fix fallout from string.h libc_hidden_proto removal

16 years agoMakefile.kconfig: whitespace fix
Denis Vlasenko [Sat, 31 May 2008 06:40:48 +0000 (06:40 -0000)]
Makefile.kconfig: whitespace fix
top-level Makefile.in: add TODO

16 years ago- cannot really guarantee proper order, so play safe and compile the problematic
Bernhard Reutner-Fischer [Fri, 30 May 2008 20:38:08 +0000 (20:38 -0000)]
- cannot really guarantee proper order, so play safe and compile the problematic
  sources separately for now.

16 years ago- Fix gcc glitch with mremap and IMA.
Bernhard Reutner-Fischer [Fri, 30 May 2008 20:00:19 +0000 (20:00 -0000)]
- Fix gcc glitch with mremap and IMA.
  For -combine, make sure that we don't pollute our non-varargs mremap decl
  with some vararg decl from later in the TU by putting ours after anybody
  else who is picking up mman.h.
  This is admittedly a small work-around..

smallish testcase:

$ cat bug.h
extern void *mremap (void*, unsigned, unsigned, int, ...);
$ cat bug1.c
#include "bug.h"
int whatever;
$ cat bug2.c
#define mremap _hidemremap
#include "bug.h"
#undef mremap
void *mremap (void*, unsigned, unsigned, int, void*);
$ gcc -c bug1.c bug2.c
$ gcc -c bug1.c bug2.c -combine
bug2.c:4: error: conflicting types for ‘mremap’
bug.h:1: error: previous declaration of ‘mremap’ was here

16 years ago- Avoid warning about undefined preprocessor token. No obj-code changes.
Bernhard Reutner-Fischer [Fri, 30 May 2008 17:58:47 +0000 (17:58 -0000)]
- Avoid warning about undefined preprocessor token. No obj-code changes.

16 years ago- try to pickup UINTMAX_MAX
Bernhard Reutner-Fischer [Fri, 30 May 2008 15:25:40 +0000 (15:25 -0000)]
- try to pickup UINTMAX_MAX

16 years ago- fix the macros rather than the callees as rightfully noted by bernds (duh!)
Bernhard Reutner-Fischer [Fri, 30 May 2008 14:35:31 +0000 (14:35 -0000)]
- fix the macros rather than the callees as rightfully noted by bernds (duh!)

16 years ago- nlist is unsigned. Adjust iterator variables accordingly to avoid signedness warnings.
Bernhard Reutner-Fischer [Fri, 30 May 2008 14:24:54 +0000 (14:24 -0000)]
- nlist is unsigned. Adjust iterator variables accordingly to avoid signedness warnings.

16 years ago- Avoid warning about missing brace. No obj-code changes.
Bernhard Reutner-Fischer [Fri, 30 May 2008 14:22:26 +0000 (14:22 -0000)]
- Avoid warning about missing brace. No obj-code changes.

16 years ago- fix dependencies of ldso.c
Bernhard Reutner-Fischer [Fri, 30 May 2008 14:11:48 +0000 (14:11 -0000)]
- fix dependencies of ldso.c
  Previously a touch ldso/ldso/dl-debug.c && make ldso/ldso/ldso.oS did nothing

16 years ago- Avoid warning about missing brace.
Bernhard Reutner-Fischer [Fri, 30 May 2008 14:11:00 +0000 (14:11 -0000)]
- Avoid warning about missing brace.

16 years ago- Avoid warning about undefined preprocessor token. No obj-code changes.
Bernhard Reutner-Fischer [Fri, 30 May 2008 13:45:38 +0000 (13:45 -0000)]
- Avoid warning about undefined preprocessor token. No obj-code changes.

16 years ago- Avoid warning about missing brace. No obj-code changes.
Bernhard Reutner-Fischer [Fri, 30 May 2008 13:43:55 +0000 (13:43 -0000)]
- Avoid warning about missing brace. No obj-code changes.

16 years ago- Avoid warning about undefined preprocessor token. No obj-code changes.
Bernhard Reutner-Fischer [Fri, 30 May 2008 13:42:54 +0000 (13:42 -0000)]
- Avoid warning about undefined preprocessor token. No obj-code changes.

16 years ago- pull wur settings from upstream. No other changes.
Bernhard Reutner-Fischer [Fri, 30 May 2008 12:29:52 +0000 (12:29 -0000)]
- pull wur settings from upstream. No other changes.