mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 23:32:21 +08:00
merge from gcc
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-06-21 Zack Weinberg <zack@codesourcery.com>
|
||||||
|
|
||||||
|
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC, HOST_CHARSET):
|
||||||
|
New #defines.
|
||||||
|
|
||||||
2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
* ansidecl.h: Delete HAVE_LONG_DOUBLE GCC bootstrap support.
|
* ansidecl.h: Delete HAVE_LONG_DOUBLE GCC bootstrap support.
|
||||||
|
@ -37,7 +37,24 @@ Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
#ifdef isalpha
|
#ifdef isalpha
|
||||||
#error "safe-ctype.h and ctype.h may not be used simultaneously"
|
#error "safe-ctype.h and ctype.h may not be used simultaneously"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Determine host character set. */
|
||||||
|
#define HC_UNKNOWN 0
|
||||||
|
#define HC_ASCII 1
|
||||||
|
#define HC_EBCDIC 2
|
||||||
|
|
||||||
|
#if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
|
||||||
|
&& 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
|
||||||
|
# define HOST_CHARSET HC_ASCII
|
||||||
#else
|
#else
|
||||||
|
# if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
|
||||||
|
&& 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
|
||||||
|
# define HOST_CHARSET HC_EBCDIC
|
||||||
|
# else
|
||||||
|
# define HOST_CHARSET HC_UNKNOWN
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Categories. */
|
/* Categories. */
|
||||||
|
|
||||||
@ -99,5 +116,4 @@ extern const unsigned char _sch_tolower[256];
|
|||||||
#define TOUPPER(c) _sch_toupper[(c) & 0xff]
|
#define TOUPPER(c) _sch_toupper[(c) & 0xff]
|
||||||
#define TOLOWER(c) _sch_tolower[(c) & 0xff]
|
#define TOLOWER(c) _sch_tolower[(c) & 0xff]
|
||||||
|
|
||||||
#endif /* no ctype.h */
|
|
||||||
#endif /* SAFE_CTYPE_H */
|
#endif /* SAFE_CTYPE_H */
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-06-21 Zack Weinberg <zack@codesourcery.com>
|
||||||
|
|
||||||
|
* safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
|
||||||
|
for charset determination.
|
||||||
|
|
||||||
2003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
|
2003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
|
||||||
|
|
||||||
* configure.in: Add check for malloc.h needed by
|
* configure.in: Add check for malloc.h needed by
|
||||||
@ -8,14 +13,14 @@
|
|||||||
free().
|
free().
|
||||||
|
|
||||||
2003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
|
2003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
|
||||||
|
|
||||||
PR bootstrap/10974
|
PR bootstrap/10974
|
||||||
* physmem.c: Update comment.
|
* physmem.c: Update comment.
|
||||||
* configure.in: Modify test for _system_configuration for older
|
* configure.in: Modify test for _system_configuration for older
|
||||||
AIX systems.
|
AIX systems.
|
||||||
|
|
||||||
* config.in, configure: Regenerated.
|
* config.in, configure: Regenerated.
|
||||||
|
|
||||||
2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||||
|
|
||||||
PR other/10810
|
PR other/10810
|
||||||
@ -109,7 +114,7 @@
|
|||||||
ANSI_PROTOTYPES.
|
ANSI_PROTOTYPES.
|
||||||
* vsprintf.c: Include "ansidecl.h" earlier, rely on
|
* vsprintf.c: Include "ansidecl.h" earlier, rely on
|
||||||
ANSI_PROTOTYPES and possibly include <stdarg.h>.
|
ANSI_PROTOTYPES and possibly include <stdarg.h>.
|
||||||
|
|
||||||
* Makefile.in: Regenerate dependencies.
|
* Makefile.in: Regenerate dependencies.
|
||||||
|
|
||||||
2003-04-15 DJ Delorie <dj@redhat.com>
|
2003-04-15 DJ Delorie <dj@redhat.com>
|
||||||
@ -207,7 +212,7 @@
|
|||||||
2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
Richard Earnshaw <rearnsha@arm.com>
|
Richard Earnshaw <rearnsha@arm.com>
|
||||||
Geoffrey Keating <geoffk@apple.com>
|
Geoffrey Keating <geoffk@apple.com>
|
||||||
|
|
||||||
* configure.in: Check for sys/sysctl.h and sysctl.
|
* configure.in: Check for sys/sysctl.h and sysctl.
|
||||||
* physmem.c: Add support for *bsd and darwin.
|
* physmem.c: Add support for *bsd and darwin.
|
||||||
* Makefile.in: Generate depedency for physmem.o.
|
* Makefile.in: Generate depedency for physmem.o.
|
||||||
@ -236,7 +241,7 @@
|
|||||||
* physmem.c (physmem_total, physmem_available): De-ANSI-fy.
|
* physmem.c (physmem_total, physmem_available): De-ANSI-fy.
|
||||||
* configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
|
* configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
|
||||||
pstat_getdynamic.
|
pstat_getdynamic.
|
||||||
|
|
||||||
2003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
2003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
* Makefile.in (CFILES): Add physmem.c.
|
* Makefile.in (CFILES): Add physmem.c.
|
||||||
|
@ -33,6 +33,10 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#include <safe-ctype.h>
|
#include <safe-ctype.h>
|
||||||
#include <stdio.h> /* for EOF */
|
#include <stdio.h> /* for EOF */
|
||||||
|
|
||||||
|
#if EOF != -1
|
||||||
|
#error "<safe-ctype.h> requires EOF == -1"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Shorthand */
|
/* Shorthand */
|
||||||
#define bl _sch_isblank
|
#define bl _sch_isblank
|
||||||
#define cn _sch_iscntrl
|
#define cn _sch_iscntrl
|
||||||
@ -64,9 +68,7 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#define S (const unsigned short) (nv|sp|bl|pr) /* space */
|
#define S (const unsigned short) (nv|sp|bl|pr) /* space */
|
||||||
|
|
||||||
/* Are we ASCII? */
|
/* Are we ASCII? */
|
||||||
#if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
|
#if HOST_CHARSET == HC_ASCII
|
||||||
&& 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21 \
|
|
||||||
&& EOF == -1
|
|
||||||
|
|
||||||
const unsigned short _sch_istable[256] =
|
const unsigned short _sch_istable[256] =
|
||||||
{
|
{
|
||||||
@ -159,5 +161,9 @@ const unsigned char _sch_toupper[256] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error "Unsupported host character set"
|
# if HOST_CHARSET == HC_EBCDIC
|
||||||
#endif /* not ASCII */
|
#error "FIXME: write tables for EBCDIC"
|
||||||
|
# else
|
||||||
|
#error "Unrecognized host character set"
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user