mirror of git://gcc.gnu.org/git/gcc.git
configure.in: Add AC_CHECK_TYPE(ssize_t).
* configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented out check for wchar_t. * acconfig.h: Add template for ssize_t. Remove @TOP@. * system.h: Add infrastructure for defining missing TYPE_MAX/TYPE_MIN macros. Use it to provide fallback definitions of UCHAR_MAX and SSIZE_MAX. * configure: Regenerate. * config.in: Regenerate. From-SVN: r34212
This commit is contained in:
parent
c190ed67f7
commit
f12bc141e1
|
|
@ -1,5 +1,14 @@
|
||||||
2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
|
2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
|
||||||
|
|
||||||
|
* configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
|
||||||
|
out check for wchar_t.
|
||||||
|
* acconfig.h: Add template for ssize_t. Remove @TOP@.
|
||||||
|
* system.h: Add infrastructure for defining missing
|
||||||
|
TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
|
||||||
|
definitions of UCHAR_MAX and SSIZE_MAX.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* config.in: Regenerate.
|
||||||
|
|
||||||
* Makefile.in (libgcc2.ready): Rename to libgcc.ready.
|
* Makefile.in (libgcc2.ready): Rename to libgcc.ready.
|
||||||
Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
|
Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
|
||||||
headers.
|
headers.
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,5 @@
|
||||||
/* Define if your assembler uses the old HImode fild and fist notation. */
|
/* Define if your assembler uses the old HImode fild and fist notation. */
|
||||||
#undef HAVE_GAS_FILDS_FISTS
|
#undef HAVE_GAS_FILDS_FISTS
|
||||||
|
|
||||||
@TOP@
|
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||||
|
#undef ssize_t
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,4 @@
|
||||||
/* config.in. Generated automatically from configure.in by autoheader. */
|
/* config.in. Generated automatically from configure.in by autoheader. */
|
||||||
/* Define to 1 if NLS is requested. */
|
|
||||||
#undef ENABLE_NLS
|
|
||||||
|
|
||||||
/* Define as 1 if you have catgets and don't want to use GNU gettext. */
|
|
||||||
#undef HAVE_CATGETS
|
|
||||||
|
|
||||||
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
|
|
||||||
#undef HAVE_GETTEXT
|
|
||||||
|
|
||||||
/* Define if your locale.h file contains LC_MESSAGES. */
|
|
||||||
#undef HAVE_LC_MESSAGES
|
|
||||||
|
|
||||||
/* Define as 1 if you have the stpcpy function. */
|
|
||||||
#undef HAVE_STPCPY
|
|
||||||
|
|
||||||
/* Define if your assembler supports specifying the maximum number
|
|
||||||
of bytes to skip when using the GAS .p2align command. */
|
|
||||||
#undef HAVE_GAS_MAX_SKIP_P2ALIGN
|
|
||||||
|
|
||||||
/* Define if your assembler supports .balign and .p2align. */
|
|
||||||
#undef HAVE_GAS_BALIGN_AND_P2ALIGN
|
|
||||||
|
|
||||||
/* Define if your assembler uses the old HImode fild and fist notation. */
|
|
||||||
#undef HAVE_GAS_FILDS_FISTS
|
|
||||||
|
|
||||||
|
|
||||||
/* Define if using alloca.c. */
|
/* Define if using alloca.c. */
|
||||||
#undef C_ALLOCA
|
#undef C_ALLOCA
|
||||||
|
|
@ -92,6 +67,34 @@
|
||||||
/* Define vfork as fork if vfork does not work. */
|
/* Define vfork as fork if vfork does not work. */
|
||||||
#undef vfork
|
#undef vfork
|
||||||
|
|
||||||
|
/* Define to 1 if NLS is requested. */
|
||||||
|
#undef ENABLE_NLS
|
||||||
|
|
||||||
|
/* Define as 1 if you have catgets and don't want to use GNU gettext. */
|
||||||
|
#undef HAVE_CATGETS
|
||||||
|
|
||||||
|
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
|
||||||
|
#undef HAVE_GETTEXT
|
||||||
|
|
||||||
|
/* Define if your locale.h file contains LC_MESSAGES. */
|
||||||
|
#undef HAVE_LC_MESSAGES
|
||||||
|
|
||||||
|
/* Define as 1 if you have the stpcpy function. */
|
||||||
|
#undef HAVE_STPCPY
|
||||||
|
|
||||||
|
/* Define if your assembler supports specifying the maximum number
|
||||||
|
of bytes to skip when using the GAS .p2align command. */
|
||||||
|
#undef HAVE_GAS_MAX_SKIP_P2ALIGN
|
||||||
|
|
||||||
|
/* Define if your assembler supports .balign and .p2align. */
|
||||||
|
#undef HAVE_GAS_BALIGN_AND_P2ALIGN
|
||||||
|
|
||||||
|
/* Define if your assembler uses the old HImode fild and fist notation. */
|
||||||
|
#undef HAVE_GAS_FILDS_FISTS
|
||||||
|
|
||||||
|
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||||
|
#undef ssize_t
|
||||||
|
|
||||||
/* Define if you have the __argz_count function. */
|
/* Define if you have the __argz_count function. */
|
||||||
#undef HAVE___ARGZ_COUNT
|
#undef HAVE___ARGZ_COUNT
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -473,8 +473,7 @@ AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
|
||||||
sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
|
sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
|
||||||
fputs_unlocked getrusage valloc)
|
fputs_unlocked getrusage valloc)
|
||||||
|
|
||||||
# Make sure wchar_t is available
|
AC_CHECK_TYPE(ssize_t, int)
|
||||||
#AC_CHECK_TYPE(wchar_t, unsigned int)
|
|
||||||
|
|
||||||
gcc_AC_FUNC_VFPRINTF_DOPRNT
|
gcc_AC_FUNC_VFPRINTF_DOPRNT
|
||||||
gcc_AC_FUNC_PRINTF_PTR
|
gcc_AC_FUNC_PRINTF_PTR
|
||||||
|
|
|
||||||
20
gcc/system.h
20
gcc/system.h
|
|
@ -234,6 +234,26 @@ extern int errno;
|
||||||
# endif /* defined(HOST_BITS_PER_LONG) && defined(HOST_BITS_PER_LONGLONG) */
|
# endif /* defined(HOST_BITS_PER_LONG) && defined(HOST_BITS_PER_LONGLONG) */
|
||||||
#endif /* ! HOST_WIDEST_INT */
|
#endif /* ! HOST_WIDEST_INT */
|
||||||
|
|
||||||
|
/* Infrastructure for defining missing _MAX and _MIN macros. Note that
|
||||||
|
macros defined with these cannot be used in #if. */
|
||||||
|
|
||||||
|
/* The extra casts work around common compiler bugs. */
|
||||||
|
#define INTTYPE_SIGNED(t) (! ((t) 0 < (t) -1))
|
||||||
|
/* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
|
||||||
|
It is necessary at least when t == time_t. */
|
||||||
|
#define INTTYPE_MINIMUM(t) ((t) (INTTYPE_SIGNED (t) \
|
||||||
|
? ~ (t) 0 << (sizeof(t) * CHAR_BIT - 1) : (t) 0))
|
||||||
|
#define INTTYPE_MAXIMUM(t) ((t) (~ (t) 0 - INTTYPE_MINIMUM (t)))
|
||||||
|
|
||||||
|
/* Use that infrastructure to provide a few constants. */
|
||||||
|
#ifndef UCHAR_MAX
|
||||||
|
# define UCHAR_MAX INTTYPE_MAXIMUM (unsigned char)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SSIZE_MAX
|
||||||
|
# define SSIZE_MAX INTTYPE_MAXIMUM (ssize_t)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TIME_WITH_SYS_TIME
|
#ifdef TIME_WITH_SYS_TIME
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue