diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-19 09:58:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-19 09:58:37 +0000 |
commit | 4360eafdd20769fa9d42c075853271debd06f7d1 (patch) | |
tree | 61ed26c90809395172524efc30fc0164fb24c9ef /sysdeps | |
parent | 7db0da77fe057ce4eb3b0477f787c5a6034c23f4 (diff) | |
download | glibc-4360eafdd20769fa9d42c075853271debd06f7d1.tar glibc-4360eafdd20769fa9d42c075853271debd06f7d1.tar.gz glibc-4360eafdd20769fa9d42c075853271debd06f7d1.tar.bz2 glibc-4360eafdd20769fa9d42c075853271debd06f7d1.zip |
Update.
1999-06-18 Zack Weinberg <zack@rabi.columbia.edu>
* include/features.h: Define new macros __GNUC_PREREQ and
__GLIBC_PREREQ which can be used to test the version of gcc
and glibc respectively.
* assert/assert.h: Use __GNUC_PREREQ.
* intl/libintl.h: Likewise.
* math/complex.h: Likewise.
* math/tgmath.h: Likewise.
* misc/sys/cdefs.h: Likewise.
* posix/sys/types.h: Likewise.
* socket/sys/socket.h: Likewise.
* string/bits/string2.h: Likewise.
* sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
* sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1999-06-18 Zack Weinberg <zack@rabi.columbia.edu>
* include/libintl.h: Declare _libc_intl_domainname here.
Define _ and N_ here.
* include/libc-symbols.h: Don't include <libintl.h>. Don't
define _ and N_. Don't declare _libc_intl_domainname.
* Makeconfig (CPPFLAGS): Use -imacros to read libc-symbols.h.
* db2/config.h: Don't include sys/stat.h or define
HAVE_ST_BLKSIZE here...
* db2/compat.h: ...do it here.
* linuxthreads/internals.h: Include bits/libc-tsd.h after all
other headers.
* linuxthreads/no-tsd.c: Include sys/cdefs.h for __P.
* iconv/iconv.c: Include stddef.h for NULL.
* malloc/malloc.h: Include features.h.
* sysdeps/generic/morecore.c: Use __malloc_ptr_t not __ptr_t.
* sysdeps/unix/make_errlist.c: Write an "#include <libintl.h>"
into the generated file.
* sysdeps/gnu/errlist.awk: Likewise.
* sysdeps/gnu/errlist.c: Rebuilt.
* assert/assert-perr.c: Include libintl.h.
* assert/assert.c: Likewise.
* elf/dl-open.c: Likewise.
* elf/dlsym.c: Likewise.
* elf/dlvsym.c: Likewise.
* iconv/iconv_prog.c: Likewise.
* inet/rcmd.c: Likewise.
* inet/ruserpass.c: Likewise.
* locale/programs/charset.c: Likewise.
* locale/programs/ld-collate.c: Likewise.
* locale/programs/ld-ctype.c: Likewise.
* locale/programs/ld-messages.c: Likewise.
* locale/programs/ld-monetary.c: Likewise.
* locale/programs/ld-numeric.c: Likewise.
* locale/programs/ld-time.c: Likewise.
* locale/programs/locfile.c: Likewise.
* locale/programs/repertoire.c: Likewise.
* login/programs/database.c: Likewise.
* login/programs/request.c: Likewise.
* malloc/mcheck.c: Likewise.
* misc/error.c: Likewise.
* nis/nis_call.c: Likewise.
* nis/nis_callback.c: Likewise.
* nis/nis_error.c: Likewise.
* nis/nis_local_names.c: Likewise.
* nis/nis_print.c: Likewise.
* nis/nis_print_group_entry.c: Likewise.
* nis/ypclnt.c: Likewise.
* nis/nss_nisplus/nisplus-publickey.c: Likewise.
* nscd/cache.c: Likewise.
* nscd/connections.c: Likewise.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/nscd_conf.c: Likewise.
* nscd/nscd_stat.c: Likewise.
* nscd/pwdcache.c: Likewise.
* posix/id.c: Likewise.
* resolv/herror.c: Likewise.
* stdio-common/psignal.c: Likewise.
* string/strsignal.c: Likewise.
* sunrpc/auth_unix.c: Likewise.
* sunrpc/clnt_perr.c: Likewise.
* sunrpc/clnt_raw.c: Likewise.
* sunrpc/clnt_tcp.c: Likewise.
* sunrpc/clnt_udp.c: Likewise.
* sunrpc/clnt_unix.c: Likewise.
* sunrpc/get_myaddr.c: Likewise.
* sunrpc/pm_getmaps.c: Likewise.
* sunrpc/pmap_clnt.c: Likewise.
* sunrpc/pmap_rmt.c: Likewise.
* sunrpc/rpc_main.c: Likewise.
* sunrpc/rpc_scan.c: Likewise.
* sunrpc/svc_run.c: Likewise.
* sunrpc/svc_simple.c: Likewise.
* sunrpc/svc_tcp.c: Likewise.
* sunrpc/svc_udp.c: Likewise.
* sunrpc/svc_unix.c: Likewise.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_ref.c: Likewise.
* sysdeps/mach/hurd/mips/dl-machine.c: Likewise.
* sysdeps/posix/gai_strerror.c: Likewise.
* sysdeps/unix/siglist.c: Likewise.
* sysdeps/unix/sysv/linux/siglist.c: Likewise.
* sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c: Likewise.
* timezone/zic.c: Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/alpha/fpu/bits/mathinline.h | 2 | ||||
-rw-r--r-- | sysdeps/generic/morecore.c | 8 | ||||
-rw-r--r-- | sysdeps/gnu/errlist.awk | 1 | ||||
-rw-r--r-- | sysdeps/gnu/errlist.c | 1 | ||||
-rw-r--r-- | sysdeps/i386/fpu/bits/mathinline.h | 4 | ||||
-rw-r--r-- | sysdeps/mach/hurd/mips/dl-machine.c | 1 | ||||
-rw-r--r-- | sysdeps/posix/gai_strerror.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/make_errlist.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/siglist.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/arm/siglist.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/siglist.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c | 1 |
12 files changed, 16 insertions, 7 deletions
diff --git a/sysdeps/alpha/fpu/bits/mathinline.h b/sysdeps/alpha/fpu/bits/mathinline.h index 681ea70cf9..9207d52f6a 100644 --- a/sysdeps/alpha/fpu/bits/mathinline.h +++ b/sysdeps/alpha/fpu/bits/mathinline.h @@ -75,7 +75,7 @@ __inline_copysign(copysign, double) #undef __MATH_INLINE_copysign -#if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)) +#if __GNUC_PREREQ (2, 8) __MATH_INLINE float __fabsf (float __x) { return __builtin_fabsf (__x); } __MATH_INLINE float fabsf (float __x) { return __builtin_fabsf (__x); } __MATH_INLINE double __fabs (double __x) { return __builtin_fabs (__x); } diff --git a/sysdeps/generic/morecore.c b/sysdeps/generic/morecore.c index 1e374da27d..5e1ac58d7e 100644 --- a/sysdeps/generic/morecore.c +++ b/sysdeps/generic/morecore.c @@ -30,7 +30,7 @@ systems with potentially hostile include files. */ #include <stddef.h> -extern __ptr_t __sbrk __P ((ptrdiff_t increment)); +extern __malloc_ptr_t __sbrk __P ((ptrdiff_t increment)); #endif #ifndef NULL @@ -40,12 +40,12 @@ extern __ptr_t __sbrk __P ((ptrdiff_t increment)); /* Allocate INCREMENT more bytes of data space, and return the start of data space, or NULL on errors. If INCREMENT is negative, shrink data space. */ -__ptr_t +__malloc_ptr_t __default_morecore (increment) __malloc_ptrdiff_t increment; { - __ptr_t result = (__ptr_t) __sbrk (increment); - if (result == (__ptr_t) -1) + __malloc_ptr_t result = (__malloc_ptr_t) __sbrk (increment); + if (result == (__malloc_ptr_t) -1) return NULL; return result; } diff --git a/sysdeps/gnu/errlist.awk b/sysdeps/gnu/errlist.awk index 0616b0303d..3b2bd0d44d 100644 --- a/sysdeps/gnu/errlist.awk +++ b/sysdeps/gnu/errlist.awk @@ -40,6 +40,7 @@ BEGIN { print "/* This file is generated from errno.texi by errlist.awk. */" print ""; print "#include <errno.h>"; + print "#include <libintl.h>"; print ""; print "#ifndef SYS_ERRLIST"; print "# define SYS_ERRLIST _sys_errlist"; diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c index c718773d52..4c635d2b97 100644 --- a/sysdeps/gnu/errlist.c +++ b/sysdeps/gnu/errlist.c @@ -1,6 +1,7 @@ /* This file is generated from errno.texi by errlist.awk. */ #include <errno.h> +#include <libintl.h> #ifndef SYS_ERRLIST # define SYS_ERRLIST _sys_errlist diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h index 8fb22d48d2..00fe3c036f 100644 --- a/sysdeps/i386/fpu/bits/mathinline.h +++ b/sysdeps/i386/fpu/bits/mathinline.h @@ -138,7 +138,7 @@ __signbitl (long double __x) /* The gcc, version 2.7 or below, has problems with all this inlining code. So disable it for this version of the compiler. */ -#if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7)) +#if __GNUC_PREREQ (2, 8) #if ((!defined __NO_MATH_INLINES || defined __LIBC_INTERNAL_MATH_INLINES) \ && defined __OPTIMIZE__) @@ -426,7 +426,7 @@ __inline_mathcode2 (pow, __x, __y, \ __inline_mathop (sqrt, "fsqrt") __inline_mathop_ (long double, __sqrtl, "fsqrt") -#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 8) +#if __GNUC_PREREQ (2, 8) __inline_mathcode_ (double, fabs, __x, return __builtin_fabs (__x)) __inline_mathcode_ (float, fabsf, __x, return __builtin_fabsf (__x)) __inline_mathcode_ (long double, fabsl, __x, return __builtin_fabsl (__x)) diff --git a/sysdeps/mach/hurd/mips/dl-machine.c b/sysdeps/mach/hurd/mips/dl-machine.c index 18261e1115..e4955e441d 100644 --- a/sysdeps/mach/hurd/mips/dl-machine.c +++ b/sysdeps/mach/hurd/mips/dl-machine.c @@ -31,6 +31,7 @@ #include <stdarg.h> #include <ctype.h> #include <sys/stat.h> +#include <libintl.h> void weak_function abort (void) diff --git a/sysdeps/posix/gai_strerror.c b/sysdeps/posix/gai_strerror.c index f5b33cb8db..490cd5bc57 100644 --- a/sysdeps/posix/gai_strerror.c +++ b/sysdeps/posix/gai_strerror.c @@ -19,6 +19,7 @@ #include <stdio.h> #include <netdb.h> +#include <libintl.h> static struct { diff --git a/sysdeps/unix/make_errlist.c b/sysdeps/unix/make_errlist.c index 4d93a5d0dc..b73b15230a 100644 --- a/sysdeps/unix/make_errlist.c +++ b/sysdeps/unix/make_errlist.c @@ -58,6 +58,7 @@ main () Boston, MA 02111-1307, USA. */\n\n", year); puts ("#include <stddef.h>\n"); + puts ("#include <libintl.h>\n"); puts ("\n/* This is a list of all known `errno' codes. */\n"); printf ("\nconst int _sys_nerr = %d;\n\n", sys_nerr); diff --git a/sysdeps/unix/siglist.c b/sysdeps/unix/siglist.c index 942f7647ab..3913c538af 100644 --- a/sysdeps/unix/siglist.c +++ b/sysdeps/unix/siglist.c @@ -17,6 +17,7 @@ Boston, MA 02111-1307, USA. */ #include <stddef.h> +#include <libintl.h> /* This is a list of all known signal numbers. */ diff --git a/sysdeps/unix/sysv/linux/arm/siglist.c b/sysdeps/unix/sysv/linux/arm/siglist.c index 9a539604ff..5d3a9afc53 100644 --- a/sysdeps/unix/sysv/linux/arm/siglist.c +++ b/sysdeps/unix/sysv/linux/arm/siglist.c @@ -19,6 +19,7 @@ #include <stddef.h> #include <signal.h> #include <sizes.h> +#include <libintl.h> #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING # define SYS_SIGLIST __new_sys_siglist diff --git a/sysdeps/unix/sysv/linux/siglist.c b/sysdeps/unix/sysv/linux/siglist.c index d14a1b92f1..30d2a4ac60 100644 --- a/sysdeps/unix/sysv/linux/siglist.c +++ b/sysdeps/unix/sysv/linux/siglist.c @@ -19,6 +19,7 @@ #include <stddef.h> #include <signal.h> #include <sizes.h> +#include <libintl.h> #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING # define SYS_SIGLIST __new_sys_siglist diff --git a/sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c b/sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c index 5d642e47f1..fd8a503ef4 100644 --- a/sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c +++ b/sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c @@ -17,6 +17,7 @@ Boston, MA 02111-1307, USA. */ #include <stddef.h> +#include <libintl.h> /* This is a list of all known `errno' codes. */ |