Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2002-10-02  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/s390/s390-32/initfini.c: Avoid unterminated string literals.
	* sysdeps/sh/elf/initfini.c: Likewise.
	* sysdeps/mach/hurd/mips/init-first.c: Likewise.
	* sysdeps/hppa/elf/initfini.c: Likewise.
	* sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Likewise.
  • Loading branch information
Ulrich Drepper committed Oct 3, 2002
1 parent 4c98451 commit 62497f9
Show file tree
Hide file tree
Showing 13 changed files with 377 additions and 370 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2002-10-02 Ulrich Drepper <drepper@redhat.com>

* sysdeps/s390/s390-32/initfini.c: Avoid unterminated string literals.
* sysdeps/sh/elf/initfini.c: Likewise.
* sysdeps/mach/hurd/mips/init-first.c: Likewise.
* sysdeps/hppa/elf/initfini.c: Likewise.
* sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Likewise.

2002-10-02 Steven Munroe <sjmunroe@us.ibm.com>
Jakub Jelinek <jakub@redhat.com>

Expand Down
36 changes: 17 additions & 19 deletions FAQ.in
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ a local mirror first.

You should always try to use the latest official release. Older versions
may not have all the features GNU libc requires. The current releases of
gcc (2.95 or newer) should work with the GNU C library (for powerpc see
?powerpc; for ARM see ?arm; for MIPS see ?mips).
gcc (3.2 or newer) should work with the GNU C library (for MIPS see ?mips).

Please note that gcc 2.95 and 2.95.x cannot compile glibc on Alpha due to
problems in the complex float support.
Expand Down Expand Up @@ -98,18 +97,11 @@ them.

??powerpc Which compiler should I use for powerpc?

{GK} You want to use at least gcc 2.95 (together with the right versions
of all the other tools, of course). See also ?excpt.
{} Removed. Does not apply anymore.

??arm Which tools should I use for ARM?

{PB} You should use egcs 1.1 or a later version. For ELF systems some
changes are needed to the compiler; a patch against egcs-1.1.x can be found
at:

<ftp://ftp.netwinder.org/users/p/philb/egcs-1.1.1pre2-diff-981126>

Binutils 2.10.1 or later is also required.
{} Removed. Does not apply anymore.

?? Do I need some more things to compile the GNU C Library?

Expand Down Expand Up @@ -305,9 +297,7 @@ test in the sources.

There are some failures which are not directly related to the GNU libc:
- Some compilers produce buggy code. No compiler gets single precision
complex numbers correct on Alpha. Otherwise, the egcs 1.1 release should be
ok; gcc 2.8.1 might cause some failures; gcc 2.7.2.x is so buggy that
explicit checks have been used so that you can't build with it.
complex numbers correct on Alpha. Otherwise, gcc-3.2 should be ok.
- The kernel might have bugs. For example on Linux/Alpha 2.0.34 the
floating point handling has quite a number of bugs and therefore most of
the test cases in the math subdirectory will fail. Linux 2.2 has
Expand Down Expand Up @@ -367,8 +357,8 @@ newer.

??mips Which tools should I use for MIPS?

{AJ} You should use the current development version of gcc 3.0 or newer from
CVS. gcc 2.95.x does not work correctly on mips-linux.
{AJ} You should use the current development version of gcc 3.2 or newer from
CVS.

You need also recent binutils, anything before and including 2.11 will not
work correctly. Either try the Linux binutils 2.11.90.0.5 from HJ Lu or the
Expand Down Expand Up @@ -635,7 +625,7 @@ you got with your distribution.
glibc 2.x?

{AJ} There's only correct support for glibc 2.0.x in gcc 2.7.2.3 or later.
But you should get at least gcc 2.95.2.1 (or later versions) instead.
But you should get at least gcc 2.95.3 (or later versions) anyway

?? The `gencat' utility cannot process the catalog sources which
were used on my Linux libc5 based system. Why?
Expand Down Expand Up @@ -1025,15 +1015,15 @@ repository.
{BH} You are using g++ 2.95.2? After upgrading to glibc 2.2, you need to
apply a patch to the include files in /usr/include/g++, because the fpos_t
type has changed in glibc 2.2. The patch is at
http://clisp.cons.org/~haible/gccinclude-glibc-2.2-compat.diff

http://www.haible.de/bruno/gccinclude-glibc-2.2-compat.diff

?? When recompiling GCC, I get compilation errors in libio.

{BH} You are trying to recompile gcc 2.95.2? Use gcc 2.95.3 instead.
This version is needed because the fpos_t type and a few libio internals
have changed in glibc 2.2, and gcc 2.95.3 contains a corresponding patch.


?? Why shall glibc never get installed on GNU/Linux systems in
/usr/local?

Expand All @@ -1047,6 +1037,14 @@ installation, use another directory as argument to --prefix. If you like to
install this glibc version as default version, overriding the existing one,
use --prefix=/usr and everything will go in the right places.

?? When recompiling GCC, I get compilation errors in libstdc++.

{BH} You are trying to recompile gcc 3.2? You need to patch gcc 3.2,
because some last minute changes were made in glibc 2.3 which were not
known when gcc 3.2 was released. The patch is at

http://www.haible.de/bruno/gcc-3.2-glibc-2.3-compat.diff

? Source and binary incompatibilities, and what to do about them

?? I expect GNU libc to be 100% source code compatible with
Expand Down
4 changes: 2 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GNU C Library NEWS -- history of user-visible changes. 2002-8-29
GNU C Library NEWS -- history of user-visible changes. 2002-10-2
Copyright (C) 1992-2001, 2002 Free Software Foundation, Inc.
See the end for copying conditions.

Expand Down Expand Up @@ -40,7 +40,7 @@ Version 2.3
Changes by Ulrich Drepper. SH support by Kaz Kojima.

* Bruno Haible contributed iconv converters for ISO-2022-JP-3, SHIFT JIS-X0213,
and EUC-JISX0213.
EUC-JISX0213, and TISCII.

* New header <ifaddrs.h> with functions `getifaddrs' and `freeifaddrs':
BSD-compatible interface for getting all network interface addresses.
Expand Down
3 changes: 2 additions & 1 deletion README.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ configurations:
mips*-*-linux-gnu Linux-2.x on MIPS
ia64-*-linux-gnu Linux-2.x on ia64
s390-*-linux-gnu Linux-2.x on IBM S/390
s390x-*-linux-gnu Linux-2.x on IBM S/390 64-bit
s390x-*-linux-gnu Linux-2.4+ on IBM S/390 64-bit
sh-*-linux-gnu Linux-2.x on Super Hitachi
cris-*-linux-gnu Linux-2.4+ on CRIS
x86-64-*-linux-gnu Linux-2.4+ on x86-64

Former releases of this library (version 1.09.1 and perhaps earlier
versions) used to run on the following configurations:
Expand Down
6 changes: 3 additions & 3 deletions po/libc.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: libc 2.2.94\n"
"POT-Creation-Date: 2002-09-23 22:43-0700\n"
"Project-Id-Version: libc 2.3\n"
"POT-Creation-Date: 2002-10-02 17:22-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -3586,7 +3586,7 @@ msgstr ""
msgid "Unmatched ) or \\)"
msgstr ""

#: posix/regcomp.c:670
#: posix/regcomp.c:673
msgid "No previous regular expression"
msgstr ""

Expand Down
162 changes: 81 additions & 81 deletions sysdeps/hppa/elf/initfini.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Special .init and .fini section support for HPPA
Copyright (C) 2000 Free Software Foundation, Inc.
Copyright (C) 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -39,84 +39,84 @@
making the comparison and indirect call is quite expensive (see the
comment in sysdeps/generic/initfini.c). */

__asm__ ("

#include \"defs.h\"

/*@HEADER_ENDS*/

/*@_init_PROLOG_BEGINS*/
.section .init
.align 4
.globl _init
.type _init,@function
_init:
stw %rp,-20(%sp)
stwm %r4,64(%sp)
stw %r19,-32(%sp)
bl __gmon_start__,%rp
copy %r19,%r4 /* delay slot */
copy %r4,%r19
/*@_init_PROLOG_ENDS*/

/*@_init_EPILOG_BEGINS*/
.text
.align 4
.weak __gmon_start__
.type __gmon_start__,@function
__gmon_start__:
.proc
.callinfo
.entry
bv,n %r0(%r2)
.exit
.procend

/* Here is the tail end of _init. We put __gmon_start before this so
that the assembler creates the .PARISC.unwind section for us, ie.
with the right attributes. */
.section .init
ldw -84(%sp),%rp
copy %r4,%r19
bv %r0(%rp)
_end_init:
ldwm -64(%sp),%r4

/* Our very own unwind info, because the assembler can't handle
functions split into two or more pieces. */
.section .PARISC.unwind
.extern _init
.word _init, _end_init
.byte 0x08, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08

/*@_init_EPILOG_ENDS*/

/*@_fini_PROLOG_BEGINS*/
.section .fini
.align 4
.globl _fini
.type _fini,@function
_fini:
stw %rp,-20(%sp)
stwm %r4,64(%sp)
stw %r19,-32(%sp)
copy %r19,%r4
/*@_fini_PROLOG_ENDS*/

/*@_fini_EPILOG_BEGINS*/
.section .fini
ldw -84(%sp),%rp
copy %r4,%r19
bv %r0(%rp)
_end_fini:
ldwm -64(%sp),%r4

.section .PARISC.unwind
.extern _fini
.word _fini, _end_fini
.byte 0x08, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08

/*@_fini_EPILOG_ENDS*/

/*@TRAILER_BEGINS*/
__asm__ ("\
\n\
#include \"defs.h\"\n\
\n\
/*@HEADER_ENDS*/\n\
\n\
/*@_init_PROLOG_BEGINS*/\n\
.section .init\n\
.align 4\n\
.globl _init\n\
.type _init,@function\n\
_init:\n\
stw %rp,-20(%sp)\n\
stwm %r4,64(%sp)\n\
stw %r19,-32(%sp)\n\
bl __gmon_start__,%rp\n\
copy %r19,%r4 /* delay slot */\n\
copy %r4,%r19\n\
/*@_init_PROLOG_ENDS*/\n\
\n\
/*@_init_EPILOG_BEGINS*/\n\
.text\n\
.align 4\n\
.weak __gmon_start__\n\
.type __gmon_start__,@function\n\
__gmon_start__:\n\
.proc\n\
.callinfo\n\
.entry\n\
bv,n %r0(%r2)\n\
.exit\n\
.procend\n\
\n\
/* Here is the tail end of _init. We put __gmon_start before this so\n\
that the assembler creates the .PARISC.unwind section for us, ie.\n\
with the right attributes. */\n\
.section .init\n\
ldw -84(%sp),%rp\n\
copy %r4,%r19\n\
bv %r0(%rp)\n\
_end_init:\n\
ldwm -64(%sp),%r4\n\
\n\
/* Our very own unwind info, because the assembler can't handle\n\
functions split into two or more pieces. */\n\
.section .PARISC.unwind\n\
.extern _init\n\
.word _init, _end_init\n\
.byte 0x08, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08\n\
\n\
/*@_init_EPILOG_ENDS*/\n\
\n\
/*@_fini_PROLOG_BEGINS*/\n\
.section .fini\n\
.align 4\n\
.globl _fini\n\
.type _fini,@function\n\
_fini:\n\
stw %rp,-20(%sp)\n\
stwm %r4,64(%sp)\n\
stw %r19,-32(%sp)\n\
copy %r19,%r4\n\
/*@_fini_PROLOG_ENDS*/\n\
\n\
/*@_fini_EPILOG_BEGINS*/\n\
.section .fini\n\
ldw -84(%sp),%rp\n\
copy %r4,%r19\n\
bv %r0(%rp)\n\
_end_fini:\n\
ldwm -64(%sp),%r4\n\
\n\
.section .PARISC.unwind\n\
.extern _fini\n\
.word _fini, _end_fini\n\
.byte 0x08, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08\n\
\n\
/*@_fini_EPILOG_ENDS*/\n\
\n\
/*@TRAILER_BEGINS*/\
");
24 changes: 12 additions & 12 deletions sysdeps/mach/hurd/mips/init-first.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ _init:\n\
jal preinit\n\
sd $28, 6*8($29)\n\
move $16, $29 # Save the old stack pointer to s0 ($16)\n\
daddu $4, $29, 4*8
daddu $4, $29, 4*8\n\
jal __init\n\
# Restore saved registers from the old stack.\n\
ld $28, 6*8($16)\n\
Expand Down Expand Up @@ -251,7 +251,7 @@ _init:\n\
jal preinit\n\
sw $28, 24($29)\n\
move $16, $29 # Save the old stack pointer to s0 ($16)\n\
addu $4, $29, 32
addu $4, $29, 32\n\
jal __init\n\
# Restore saved registers from the old stack.\n\
lw $28, 24($16)\n\
Expand Down Expand Up @@ -343,12 +343,12 @@ asm ("\
.globl __libc_init_first\n\
__libc_init_first:\n\
dsubu $29, 8\n\
sd $31, 0($29)
sd $31, 0($29)\n\
jal __mach_init\n\
ld $4, 0($29)
ld $5, 1*8($29)
ld $6, 2*8($29)
ld $7, 3*8($29)
ld $4, 0($29)\n\
ld $5, 1*8($29)\n\
ld $6, 2*8($29)\n\
ld $7, 3*8($29)\n\
j ___libc_init_first\n\
");
#else
Expand All @@ -358,12 +358,12 @@ asm ("\
.globl __libc_init_first\n\
__libc_init_first:\n\
subu $29, 4\n\
sw $31, 0($29)
sw $31, 0($29)\n\
jal __mach_init\n\
lw $4, 0($29)
lw $5, 4($29)
lw $6, 8($29)
lw $7, 12($29)
lw $4, 0($29)\n\
lw $5, 4($29)\n\
lw $6, 8($29)\n\
lw $7, 12($29)\n\
j ___libc_init_first\n\
");
#endif
Expand Down
Loading

0 comments on commit 62497f9

Please sign in to comment.