builtin-attrs.def, [...]: Don't use macros from "symcat.h", instead rely on ISO C.
* builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c, cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't use macros from "symcat.h", instead rely on ISO C. * system.h: Don't include "symcat.h". * configure.in (AC_C_STRINGIZE): Delete. * config.in, configure: Regenerate. From-SVN: r68035
This commit is contained in:
parent
786a48dd97
commit
9a23858679
13 changed files with 218 additions and 260 deletions
|
@ -1,3 +1,13 @@
|
|||
2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
|
||||
cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
|
||||
use macros from "symcat.h", instead rely on ISO C.
|
||||
|
||||
* system.h: Don't include "symcat.h".
|
||||
* configure.in (AC_C_STRINGIZE): Delete.
|
||||
* config.in, configure: Regenerate.
|
||||
|
||||
2003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
|
||||
|
|
|
@ -51,13 +51,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|||
|
||||
DEF_ATTR_NULL_TREE (ATTR_NULL)
|
||||
|
||||
/* Note that below we must avoid whitespace in arguments of CONCAT*. */
|
||||
|
||||
/* Construct a tree for a given integer and a list containing it. */
|
||||
#define DEF_ATTR_FOR_INT(VALUE) \
|
||||
DEF_ATTR_INT (CONCAT2 (ATTR_,VALUE), VALUE) \
|
||||
DEF_ATTR_TREE_LIST (CONCAT2 (ATTR_LIST_,VALUE), ATTR_NULL, \
|
||||
CONCAT2 (ATTR_,VALUE), ATTR_NULL)
|
||||
DEF_ATTR_INT (ATTR_##VALUE, VALUE) \
|
||||
DEF_ATTR_TREE_LIST (ATTR_LIST_##VALUE, ATTR_NULL, \
|
||||
ATTR_##VALUE, ATTR_NULL)
|
||||
DEF_ATTR_FOR_INT (0)
|
||||
DEF_ATTR_FOR_INT (1)
|
||||
DEF_ATTR_FOR_INT (2)
|
||||
|
@ -67,8 +65,8 @@ DEF_ATTR_FOR_INT (4)
|
|||
|
||||
/* Construct a tree for a list of two integers. */
|
||||
#define DEF_LIST_INT_INT(VALUE1, VALUE2) \
|
||||
DEF_ATTR_TREE_LIST (CONCAT4 (ATTR_LIST_,VALUE1,_,VALUE2), ATTR_NULL, \
|
||||
CONCAT2 (ATTR_,VALUE1), CONCAT2 (ATTR_LIST_,VALUE2))
|
||||
DEF_ATTR_TREE_LIST (ATTR_LIST_##VALUE1##_##VALUE2, ATTR_NULL, \
|
||||
ATTR_##VALUE1, ATTR_LIST_##VALUE2)
|
||||
DEF_LIST_INT_INT (1,0)
|
||||
DEF_LIST_INT_INT (1,2)
|
||||
DEF_LIST_INT_INT (2,0)
|
||||
|
@ -130,10 +128,10 @@ DEF_ATTR_TREE_LIST (ATTR_MALLOC_NOTHROW_NONNULL_1, ATTR_MALLOC, ATTR_NULL, \
|
|||
|
||||
/* Construct a tree for a format attribute. */
|
||||
#define DEF_FORMAT_ATTRIBUTE(TYPE, FA, VALUES) \
|
||||
DEF_ATTR_TREE_LIST (CONCAT4 (ATTR_,TYPE,_,VALUES), ATTR_NULL, \
|
||||
CONCAT2 (ATTR_,TYPE), CONCAT2 (ATTR_LIST_,VALUES)) \
|
||||
DEF_ATTR_TREE_LIST (CONCAT4 (ATTR_FORMAT_,TYPE,_,VALUES), ATTR_FORMAT, \
|
||||
CONCAT4 (ATTR_,TYPE,_,VALUES), CONCAT2 (ATTR_NOTHROW_NONNULL_,FA))
|
||||
DEF_ATTR_TREE_LIST (ATTR_##TYPE##_##VALUES, ATTR_NULL, \
|
||||
ATTR_##TYPE, ATTR_LIST_##VALUES) \
|
||||
DEF_ATTR_TREE_LIST (ATTR_FORMAT_##TYPE##_##VALUES, ATTR_FORMAT, \
|
||||
ATTR_##TYPE##_##VALUES, ATTR_NOTHROW_NONNULL_##FA)
|
||||
DEF_FORMAT_ATTRIBUTE(PRINTF,1,1_0)
|
||||
DEF_FORMAT_ATTRIBUTE(PRINTF,1,1_2)
|
||||
DEF_FORMAT_ATTRIBUTE(PRINTF,2,2_0)
|
||||
|
@ -150,16 +148,16 @@ DEF_FORMAT_ATTRIBUTE(STRFMON,3,3_4)
|
|||
|
||||
/* Construct a tree for a format_arg attribute. */
|
||||
#define DEF_FORMAT_ARG_ATTRIBUTE(FA) \
|
||||
DEF_ATTR_TREE_LIST (CONCAT2 (ATTR_FORMAT_ARG_,FA), ATTR_FORMAT_ARG, \
|
||||
CONCAT2 (ATTR_LIST_,FA), CONCAT2 (ATTR_NOTHROW_NONNULL_,FA))
|
||||
DEF_ATTR_TREE_LIST (ATTR_FORMAT_ARG_##FA, ATTR_FORMAT_ARG, \
|
||||
ATTR_LIST_##FA, ATTR_NOTHROW_NONNULL_##FA)
|
||||
DEF_FORMAT_ARG_ATTRIBUTE(1)
|
||||
DEF_FORMAT_ARG_ATTRIBUTE(2)
|
||||
#undef DEF_FORMAT_ARG_ATTRIBUTE
|
||||
|
||||
/* Define an attribute for a function, along with the IDENTIFIER_NODE. */
|
||||
#define DEF_FN_ATTR_IDENT(NAME, ATTRS, PREDICATE) \
|
||||
DEF_ATTR_IDENT (CONCAT2(ATTR_,NAME), STRINGX(NAME)) \
|
||||
DEF_FN_ATTR (CONCAT2(ATTR_,NAME), ATTRS, PREDICATE)
|
||||
DEF_ATTR_IDENT (ATTR_##NAME, #NAME) \
|
||||
DEF_FN_ATTR (ATTR_##NAME, ATTRS, PREDICATE)
|
||||
|
||||
/* The ISO C functions are always checked (whether <stdio.h> is
|
||||
included or not), since it is common to call printf without
|
||||
|
|
|
@ -64,7 +64,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|||
const char *const built_in_class_names[4]
|
||||
= {"NOT_BUILT_IN", "BUILT_IN_FRONTEND", "BUILT_IN_MD", "BUILT_IN_NORMAL"};
|
||||
|
||||
#define DEF_BUILTIN(X, N, C, T, LT, B, F, NA, AT, IM) STRINGX(X),
|
||||
#define DEF_BUILTIN(X, N, C, T, LT, B, F, NA, AT, IM) #X,
|
||||
const char *const built_in_names[(int) END_BUILTINS] =
|
||||
{
|
||||
#include "builtins.def"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* config.in. Generated automatically from configure.in by autoheader 2.13. */
|
||||
/* config.in. Generated automatically from configure.in by autoheader. */
|
||||
|
||||
/* Define if using alloca.c. */
|
||||
#undef C_ALLOCA
|
||||
|
@ -23,9 +23,6 @@
|
|||
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
|
||||
#undef HAVE_ALLOCA_H
|
||||
|
||||
/* Define if you have the ANSI # stringizing operator in cpp. */
|
||||
#undef HAVE_STRINGIZE
|
||||
|
||||
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
|
||||
#undef HAVE_SYS_WAIT_H
|
||||
|
||||
|
|
410
gcc/configure
vendored
410
gcc/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -765,10 +765,6 @@ LDEXP_LIB="$LIBS"
|
|||
LIBS="$save_LIBS"
|
||||
AC_SUBST(LDEXP_LIB)
|
||||
|
||||
# See if the stage1 system preprocessor understands the ANSI C
|
||||
# preprocessor stringification operator. (Used by symcat.h.)
|
||||
AC_C_STRINGIZE
|
||||
|
||||
# Use <inttypes.h> only if it exists,
|
||||
# doesn't clash with <sys/types.h>, and declares intmax_t.
|
||||
AC_MSG_CHECKING(for inttypes.h)
|
||||
|
|
|
@ -44,7 +44,7 @@ static const unsigned char *const digraph_spellings[] =
|
|||
{ U"%:", U"%:%:", U"<:", U":>", U"<%", U"%>" };
|
||||
|
||||
#define OP(e, s) { SPELL_OPERATOR, U s },
|
||||
#define TK(e, s) { s, U STRINGX (e) },
|
||||
#define TK(e, s) { s, U #e },
|
||||
static const struct token_spelling token_spellings[N_TTYPES] = { TTYPE_TABLE };
|
||||
#undef OP
|
||||
#undef TK
|
||||
|
|
|
@ -174,8 +174,7 @@ D(sccs, T_SCCS, EXTENSION, 0) /* 0 SVR4? */
|
|||
/* Use the table to generate a series of prototypes, an enum for the
|
||||
directive names, and an array of directive handlers. */
|
||||
|
||||
/* Don't invoke CONCAT2 with any whitespace or K&R cc will fail. */
|
||||
#define D(name, t, o, f) static void CONCAT2(do_,name) PARAMS ((cpp_reader *));
|
||||
#define D(name, t, o, f) static void do_##name PARAMS ((cpp_reader *));
|
||||
DIRECTIVE_TABLE
|
||||
#undef D
|
||||
|
||||
|
@ -187,10 +186,9 @@ enum
|
|||
};
|
||||
#undef D
|
||||
|
||||
/* Don't invoke CONCAT2 with any whitespace or K&R cc will fail. */
|
||||
#define D(name, t, origin, flags) \
|
||||
{ CONCAT2(do_,name), (const uchar *) STRINGX(name), \
|
||||
sizeof STRINGX(name) - 1, origin, flags },
|
||||
{ do_##name, (const uchar *) #name, \
|
||||
sizeof #name - 1, origin, flags },
|
||||
static const directive dtable[] =
|
||||
{
|
||||
DIRECTIVE_TABLE
|
||||
|
|
|
@ -24,7 +24,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|||
#include "coretypes.h"
|
||||
#include "tm.h"
|
||||
|
||||
#define DEFTREECODE(SYM, NAME, TYPE, LEN) STRINGX(SYM),
|
||||
#define DEFTREECODE(SYM, NAME, TYPE, LEN) #SYM,
|
||||
|
||||
static const char *const tree_codes[] = {
|
||||
#include "tree.def"
|
||||
|
|
|
@ -36,7 +36,7 @@ struct rtx_definition
|
|||
const char *const enumname, *const name, *const format;
|
||||
};
|
||||
|
||||
#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { STRINGX(ENUM), NAME, FORMAT },
|
||||
#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { #ENUM, NAME, FORMAT },
|
||||
|
||||
static const struct rtx_definition defs[] =
|
||||
{
|
||||
|
|
|
@ -162,7 +162,7 @@ DEF_MACHMODE (CCmode, "CC", MODE_CC, BITS_PER_UNIT*4, 4, 4, VOIDmode, VOIDmode)
|
|||
|
||||
#ifdef EXTRA_MODES_FILE
|
||||
#define CC(N) \
|
||||
DEF_MACHMODE (CONCAT2 (N,mode), STRINGX (N), \
|
||||
DEF_MACHMODE (N##mode, #N, \
|
||||
MODE_CC, BITS_PER_UNIT*4, 4, 4, VOIDmode, VOIDmode)
|
||||
#include EXTRA_MODES_FILE
|
||||
#undef CC
|
||||
|
|
|
@ -229,7 +229,7 @@ static const char * const other_var_style = "stdarg";
|
|||
static const char * const other_var_style = "varargs";
|
||||
/* Note that this is a string containing the expansion of va_alist.
|
||||
But in `main' we discard all but the first token. */
|
||||
static const char *varargs_style_indicator = STRINGX (va_alist);
|
||||
static const char *varargs_style_indicator = #va_alist;
|
||||
#endif /* !defined (UNPROTOIZE) */
|
||||
|
||||
/* The following two types are used to create hash tables. In this program,
|
||||
|
|
|
@ -491,7 +491,6 @@ extern void abort (void);
|
|||
|
||||
/* Get libiberty declarations. */
|
||||
#include "libiberty.h"
|
||||
#include "symcat.h"
|
||||
|
||||
/* Provide a default for the HOST_BIT_BUCKET.
|
||||
This suffices for POSIX-like hosts. */
|
||||
|
|
Loading…
Add table
Reference in a new issue