OSDN Git Service
Peter S. Mazinger [Tue, 31 Jan 2006 14:41:37 +0000 (14:41 -0000)]
s/IS_IN_linuxthreads/IS_IN_libpthread/, some prototypes, correct Makefile.in, disable __res_state, unavailable in resolv.h
Peter S. Mazinger [Tue, 31 Jan 2006 09:28:52 +0000 (09:28 -0000)]
include math.h to get the prototype
Mike Frysinger [Tue, 31 Jan 2006 05:05:15 +0000 (05:05 -0000)]
initial import of latest linuxthreads
Mike Frysinger [Tue, 31 Jan 2006 02:28:11 +0000 (02:28 -0000)]
make the extra warnings optional
Mike Frysinger [Tue, 31 Jan 2006 01:50:28 +0000 (01:50 -0000)]
John Bowler writes in Bug 385:
The patch fixes up the .align directives to '2' (i.e. a multiple
of 4) not '4' (a multiple of 16 - apparently an error since it seems
to be unnecessary, there is no advantage here in cache line alignment).
this is an arm "feature" ... the value given to .align is not in bytes:
.align 4 in arm means .align 2 ^ 4
Peter S. Mazinger [Tue, 31 Jan 2006 01:42:44 +0000 (01:42 -0000)]
don't include wchar.h if WCHAR is disabled
Mike Frysinger [Tue, 31 Jan 2006 01:41:16 +0000 (01:41 -0000)]
Khem Raj says:
add support for using BX instruction for THUMB aware architectures
Mike Frysinger [Tue, 31 Jan 2006 01:34:21 +0000 (01:34 -0000)]
rename local var brk to _brk
Mike Frysinger [Tue, 31 Jan 2006 01:32:33 +0000 (01:32 -0000)]
John Bowler says: use (!thumb) instead of (arm) since thumb defines arm
Mike Frysinger [Tue, 31 Jan 2006 00:33:26 +0000 (00:33 -0000)]
John Bowler writes in Bug 385:
This is a work round for a fairly serious GCC compiler bug - when
the syscall assembler overwrites r7 (required on thumb) the
compiler fails to protect the register when it is using it as a
frame pointer.
Mike Frysinger [Tue, 31 Jan 2006 00:29:30 +0000 (00:29 -0000)]
John Bowler writes in Bug 385:
This patch changes all cases where the ARM assembler mov pc,rx
instructions are used to ensure that the thumb/arm interwork change of
process more works - in essence mov pc,rx needs to become bx rc.
The ldr pc or ldm rx, {pc} instructions are not changed - this is
fine on ARM >=v5 but will fail to restore thumb mode on ARM v4T,
i.e. this code will not provide support for thumb on ARM v4T.
One mov pc is left in resolve.S, this is fixed in a different patch -
thumb-resolve.patch
The changes are protected by __THUMB_INTERWORK__ - the original
mov instruction will work on newer architectures and is required on
arch v4 (not v4t) and earlier - those which did not support thumb -
so this is safe. See gcc lib1asmfuncs for a more exact test.
Mike Frysinger [Tue, 31 Jan 2006 00:26:22 +0000 (00:26 -0000)]
John Bowler writes in Bug 385:
in various places defined(__arm__) is used to protect/select code which
is ARM specific, that code must also be selected for __thumb__ because
__thumb__ is an ARM but __arm__ is not set...
Peter S. Mazinger [Mon, 30 Jan 2006 22:48:02 +0000 (22:48 -0000)]
strlen is -cheaper- then strnlen
Peter S. Mazinger [Mon, 30 Jan 2006 21:35:42 +0000 (21:35 -0000)]
Add IMA compiling
"Jan-Benedict Glaw" [Mon, 30 Jan 2006 21:23:23 +0000 (21:23 -0000)]
Assebler sources ment to be preprocessed shouldn't contain assembler
comments, but C comments instead...
Peter S. Mazinger [Mon, 30 Jan 2006 21:01:49 +0000 (21:01 -0000)]
Undo -std=c99 and related -D__ASSEMBLER__
Peter S. Mazinger [Mon, 30 Jan 2006 18:09:59 +0000 (18:09 -0000)]
back to inline, mips fails
Peter S. Mazinger [Mon, 30 Jan 2006 16:06:33 +0000 (16:06 -0000)]
some more prototypes
Peter S. Mazinger [Mon, 30 Jan 2006 16:05:33 +0000 (16:05 -0000)]
make regex a little bit smaller
Peter S. Mazinger [Mon, 30 Jan 2006 15:18:45 +0000 (15:18 -0000)]
another attempt to fix sendfile64
Peter S. Mazinger [Mon, 30 Jan 2006 15:04:09 +0000 (15:04 -0000)]
Sync w/ glibc
Peter S. Mazinger [Mon, 30 Jan 2006 13:03:19 +0000 (13:03 -0000)]
Enable -std=c99 if supported, this will define __STDC_VERSION__, have to -D__ASSEMBLER__, bug in all gcc
Peter S. Mazinger [Mon, 30 Jan 2006 09:39:51 +0000 (09:39 -0000)]
make it build if WCHAR is disabled
Peter S. Mazinger [Mon, 30 Jan 2006 07:51:24 +0000 (07:51 -0000)]
Too many sparc versions ;-(, another hidden bcopy removed
Peter S. Mazinger [Mon, 30 Jan 2006 07:45:03 +0000 (07:45 -0000)]
Remove arch specific hidden bcopy
Peter S. Mazinger [Mon, 30 Jan 2006 07:35:34 +0000 (07:35 -0000)]
Change the only bcopy user to memmove and remove internal version of bcopy
Peter S. Mazinger [Mon, 30 Jan 2006 07:33:45 +0000 (07:33 -0000)]
Why this?
Peter S. Mazinger [Mon, 30 Jan 2006 07:21:58 +0000 (07:21 -0000)]
Using hidden_proto solves this internally, my proposal was wrong
Peter S. Mazinger [Mon, 30 Jan 2006 07:09:18 +0000 (07:09 -0000)]
Use memset instead of bzero
Peter S. Mazinger [Mon, 30 Jan 2006 06:44:51 +0000 (06:44 -0000)]
hidden moved to prototype
Mike Frysinger [Sun, 29 Jan 2006 21:02:08 +0000 (21:02 -0000)]
Patch by Joseph S. Myers to add support for ARM EABI
Mike Frysinger [Sun, 29 Jan 2006 20:29:37 +0000 (20:29 -0000)]
use typeof to create the prototype
Peter S. Mazinger [Sun, 29 Jan 2006 18:08:05 +0000 (18:08 -0000)]
Add back the current glibc copyright notice, although the file is far different
Mike Frysinger [Sun, 29 Jan 2006 16:45:42 +0000 (16:45 -0000)]
rename local i var to idx to get rid of shadow warning
Mike Frysinger [Sun, 29 Jan 2006 16:44:25 +0000 (16:44 -0000)]
remove unneeded double reloc_type definition
Mike Frysinger [Sun, 29 Jan 2006 16:43:10 +0000 (16:43 -0000)]
make sure clone/__clone are created properly
Mike Frysinger [Sun, 29 Jan 2006 16:39:39 +0000 (16:39 -0000)]
disable usage of .set
Mike Frysinger [Sun, 29 Jan 2006 16:32:07 +0000 (16:32 -0000)]
rename _sys_result var to get rid of shadow warnings
Mike Frysinger [Sun, 29 Jan 2006 16:30:49 +0000 (16:30 -0000)]
create local prototype
Mike Frysinger [Sun, 29 Jan 2006 16:30:14 +0000 (16:30 -0000)]
move linux-specific header to linux subdir
Mike Frysinger [Sun, 29 Jan 2006 16:28:30 +0000 (16:28 -0000)]
rename resultvar to get rid of shadow warnings
Mike Frysinger [Sun, 29 Jan 2006 16:25:08 +0000 (16:25 -0000)]
declare local prototype since we cant use system malloc.h
Mike Frysinger [Sun, 29 Jan 2006 16:17:19 +0000 (16:17 -0000)]
sync with glibc and rename local socket var to _socket
Mike Frysinger [Sun, 29 Jan 2006 16:08:24 +0000 (16:08 -0000)]
sync func def with glibc and dont include sys/socket.h since we dont use socket()
Mike Frysinger [Sun, 29 Jan 2006 16:05:19 +0000 (16:05 -0000)]
sync comment with glibc and dont include sys/socket.h since we dont use socket()
Mike Frysinger [Sun, 29 Jan 2006 16:01:23 +0000 (16:01 -0000)]
rename to match glibc
Mike Frysinger [Sun, 29 Jan 2006 16:00:49 +0000 (16:00 -0000)]
rename to match glibc
Mike Frysinger [Sun, 29 Jan 2006 15:58:07 +0000 (15:58 -0000)]
sync with glibc and rename socket vars to _socket
Mike Frysinger [Sun, 29 Jan 2006 15:51:14 +0000 (15:51 -0000)]
create local prototype for __libc_sigaction
Mike Frysinger [Sun, 29 Jan 2006 15:44:35 +0000 (15:44 -0000)]
remove unneeded duplicate sid definition
Mike Frysinger [Sun, 29 Jan 2006 15:44:11 +0000 (15:44 -0000)]
sync with glibc
Mike Frysinger [Sun, 29 Jan 2006 15:37:25 +0000 (15:37 -0000)]
rename local tty variable to not shadow tty func
Mike Frysinger [Sun, 29 Jan 2006 15:34:56 +0000 (15:34 -0000)]
no point in redeclaring oldcount locally
Mike Frysinger [Sun, 29 Jan 2006 15:34:07 +0000 (15:34 -0000)]
no point in declaring save_err locally
Mike Frysinger [Sun, 29 Jan 2006 15:32:48 +0000 (15:32 -0000)]
create local prototypes to shutup warnings
Mike Frysinger [Sun, 29 Jan 2006 15:27:02 +0000 (15:27 -0000)]
create a local prototype to shutup warnings
Mike Frysinger [Sun, 29 Jan 2006 15:26:06 +0000 (15:26 -0000)]
just use the common ptrace version
Mike Frysinger [Sun, 29 Jan 2006 15:22:54 +0000 (15:22 -0000)]
rename exp to _exp for sake of shadow warnings
Mike Frysinger [Sun, 29 Jan 2006 15:17:59 +0000 (15:17 -0000)]
change variable names so we dont shadow others
Mike Frysinger [Sun, 29 Jan 2006 15:14:12 +0000 (15:14 -0000)]
use diff variable names so we dont shadow each other
Mike Frysinger [Sun, 29 Jan 2006 15:10:17 +0000 (15:10 -0000)]
rename index variable to idx to "fix" shadow warning
Mike Frysinger [Sun, 29 Jan 2006 15:08:58 +0000 (15:08 -0000)]
the timer_* funcs have been implemented in librt so enable their prototypes
Mike Frysinger [Sun, 29 Jan 2006 15:03:04 +0000 (15:03 -0000)]
undefine stupid defines from the kernel
Mike Frysinger [Sun, 29 Jan 2006 09:12:16 +0000 (09:12 -0000)]
Bernhard Fischer writes: remove unused variable name
Mike Frysinger [Sun, 29 Jan 2006 09:08:02 +0000 (09:08 -0000)]
remove excess whitespace
Mike Frysinger [Sun, 29 Jan 2006 09:00:06 +0000 (09:00 -0000)]
Bernhard Fischer writes: remove unused variables
Mike Frysinger [Sun, 29 Jan 2006 08:58:01 +0000 (08:58 -0000)]
sync iruserfopen() prototype with glibc and remove double setting of cp to NULL by Bernard Fischer
Mike Frysinger [Sun, 29 Jan 2006 08:51:59 +0000 (08:51 -0000)]
Bernhard Fischer writes: remove unused variable __rcmd_errstr
Mike Frysinger [Sun, 29 Jan 2006 08:50:24 +0000 (08:50 -0000)]
small sync with glibc
Peter S. Mazinger [Fri, 27 Jan 2006 22:02:23 +0000 (22:02 -0000)]
Add split up multi sources,IMA compiling,build dependencies
"Jan-Benedict Glaw" [Fri, 27 Jan 2006 21:47:58 +0000 (21:47 -0000)]
TODOs for the VAX port.
Peter S. Mazinger [Fri, 27 Jan 2006 21:26:40 +0000 (21:26 -0000)]
Do not build *64 and llseek, correct some failure when LFS is disabled
"Jan-Benedict Glaw" [Fri, 27 Jan 2006 21:20:28 +0000 (21:20 -0000)]
First round of VAX patches. This isn't complete right now, there are for
sure still bugs (properly hidden, of course), a libm is completely missing
(I've got one that implements some basic stuff, but that's really not
ready for checking in...)
I've also got a list of other things that need touch-ups, but that's mostly
minor stuff that'll be done during the next days.
Peter S. Mazinger [Fri, 27 Jan 2006 21:16:02 +0000 (21:16 -0000)]
use attribute_unused instead of hardcoded
Peter S. Mazinger [Fri, 27 Jan 2006 21:15:19 +0000 (21:15 -0000)]
remove comment
Peter S. Mazinger [Fri, 27 Jan 2006 19:28:18 +0000 (19:28 -0000)]
Disabled NULL error_print_progname, useless
Peter S. Mazinger [Fri, 27 Jan 2006 19:26:42 +0000 (19:26 -0000)]
Update copyright and comment
Peter S. Mazinger [Fri, 27 Jan 2006 17:50:52 +0000 (17:50 -0000)]
Some warnings go away
Peter S. Mazinger [Fri, 27 Jan 2006 15:37:19 +0000 (15:37 -0000)]
Add some prototypes to arch specific pread_write.c, mips has __mips64 questionable ifdefs
Peter S. Mazinger [Fri, 27 Jan 2006 15:18:17 +0000 (15:18 -0000)]
Add back explicit prototype, archs miss sys/io.h, remove m68k exclusion
Peter S. Mazinger [Fri, 27 Jan 2006 14:57:54 +0000 (14:57 -0000)]
s|sys/perm.h|sys/io.h|, thx vapier
"Jan-Benedict Glaw" [Fri, 27 Jan 2006 06:18:25 +0000 (06:18 -0000)]
The VAX gas cannot (yet) cope with the tricks played here, so I'm grounding
linktime warnings for now.
Mike Frysinger [Fri, 27 Jan 2006 05:28:00 +0000 (05:28 -0000)]
update copyright
Mike Frysinger [Fri, 27 Jan 2006 05:22:43 +0000 (05:22 -0000)]
just exec the cat
Mike Frysinger [Fri, 27 Jan 2006 00:08:15 +0000 (00:08 -0000)]
try at crt1 code by tweaking crt0.c and utilizing the -S output of gcc
Mike Frysinger [Thu, 26 Jan 2006 23:52:22 +0000 (23:52 -0000)]
Tobias no longer works for axis
Mike Frysinger [Thu, 26 Jan 2006 23:51:25 +0000 (23:51 -0000)]
disable -z now by default
Mike Frysinger [Thu, 26 Jan 2006 23:51:09 +0000 (23:51 -0000)]
touchup style to match other arch versions
Mike Frysinger [Thu, 26 Jan 2006 23:50:49 +0000 (23:50 -0000)]
make sure we include the local sysdep.h header
Mike Frysinger [Thu, 26 Jan 2006 23:50:01 +0000 (23:50 -0000)]
remove things that libc-symbols.h already defines for us
Mike Frysinger [Thu, 26 Jan 2006 23:49:27 +0000 (23:49 -0000)]
cris uses @ for asm line separations
Mike Frysinger [Thu, 26 Jan 2006 23:48:44 +0000 (23:48 -0000)]
Ricard Wanderlof writes:
Here's a patch to avoid a name clash between include/bits/byteswap.h and the
kernel include file <linux/byteorder/swab.h> . (Normally both aren't
included by the same file, but we've had one case where a conflict occurred
at link time, thus necessitating the patch). I've also taken the opportunity
to make the general structure and namespace of the file similar to the
corresponding file for other archs.
Peter S. Mazinger [Thu, 26 Jan 2006 22:30:50 +0000 (22:30 -0000)]
prototypes for threads too
Peter S. Mazinger [Thu, 26 Jan 2006 22:19:01 +0000 (22:19 -0000)]
Some more prototypes, enable missing-prototypes/declarations warnings for now
Peter S. Mazinger [Thu, 26 Jan 2006 22:04:19 +0000 (22:04 -0000)]
Get rid of missing prototype warnings
"Jan-Benedict Glaw" [Thu, 26 Jan 2006 21:44:45 +0000 (21:44 -0000)]
Really define, not undefine the crash statement...
"Jan-Benedict Glaw" [Thu, 26 Jan 2006 20:50:21 +0000 (20:50 -0000)]
Allow for targets that don't know about signed zero floats.
Peter S. Mazinger [Thu, 26 Jan 2006 18:44:37 +0000 (18:44 -0000)]
Enable gcvt in header, we build it
Peter S. Mazinger [Thu, 26 Jan 2006 10:54:11 +0000 (10:54 -0000)]
Correct mips, does mips ever be similar to others ;-(
Peter S. Mazinger [Wed, 25 Jan 2006 21:00:40 +0000 (21:00 -0000)]
Guard the use of sigreturn as in x86_64, thx blindvt