aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-03-27 15:31:46 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-03-27 15:31:46 +0000
commit4bc5fbd480352653d10d4056d77750750fd5e0f3 (patch)
tree2e592a2ad0d4637b55b1458012395d2ab9c692b6
parent313e46b92977bedbd2c2ed30e38ceabda495178d (diff)
downloadgcc-4bc5fbd480352653d10d4056d77750750fd5e0f3.zip
gcc-4bc5fbd480352653d10d4056d77750750fd5e0f3.tar.gz
gcc-4bc5fbd480352653d10d4056d77750750fd5e0f3.tar.bz2
system.h: Include symcat.h.
* system.h: Include symcat.h. (STRINGIFY): Don't define. * configure.in: Adjust comment. * builtins.c: Use STRINGX, not STRINGIFY. * gencheck.c: Likewise. * gengenrtl.c: Likewise. * protoize.c: Likewise. * cpplex.c: Don't include symcat.h. * cpplib.c: Likewise. * gansidecl.h (HAVE_STRINGIZE): Don't define. From-SVN: r40875
-rw-r--r--gcc/ChangeLog17
-rw-r--r--gcc/builtins.c2
-rwxr-xr-xgcc/configure4
-rw-r--r--gcc/configure.in2
-rw-r--r--gcc/cpplex.c1
-rw-r--r--gcc/cpplib.c1
-rw-r--r--gcc/gansidecl.h5
-rw-r--r--gcc/gencheck.c2
-rw-r--r--gcc/gengenrtl.c2
-rw-r--r--gcc/protoize.c2
-rw-r--r--gcc/system.h16
11 files changed, 25 insertions, 29 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 17590b2..b67ace6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,20 @@
+2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * system.h: Include symcat.h.
+ (STRINGIFY): Don't define.
+
+ * configure.in: Adjust comment.
+
+ * builtins.c: Use STRINGX, not STRINGIFY.
+ * gencheck.c: Likewise.
+ * gengenrtl.c: Likewise.
+ * protoize.c: Likewise.
+
+ * cpplex.c: Don't include symcat.h.
+ * cpplib.c: Likewise.
+
+ * gansidecl.h (HAVE_STRINGIZE): Don't define.
+
2001-03-27 Alan Modra <alan@linuxcare.com.au>
* c-typeck.c (digest_init): Fold init expression.
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 27804e2..88127ca 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -57,7 +57,7 @@ Boston, MA 02111-1307, USA. */
const char *const built_in_class_names[4]
= {"NOT_BUILT_IN", "BUILT_IN_FRONTEND", "BUILT_IN_MD", "BUILT_IN_NORMAL"};
-#define DEF_BUILTIN(x) STRINGIFY(x),
+#define DEF_BUILTIN(x) STRINGX(x),
const char *const built_in_names[(int) END_BUILTINS] =
{
#include "builtins.def"
diff --git a/gcc/configure b/gcc/configure
index 87562fa..4e8e33c 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -2016,7 +2016,7 @@ EOF
fi
# Find some useful tools
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -3021,7 +3021,7 @@ fi
fi
# See if the stage1 system preprocessor understands the ANSI C
-# preprocessor stringification operator.
+# preprocessor stringification operator. (Used by symcat.h.)
echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
diff --git a/gcc/configure.in b/gcc/configure.in
index a53bd4d..a891a05 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -522,7 +522,7 @@ else
fi
# See if the stage1 system preprocessor understands the ANSI C
-# preprocessor stringification operator.
+# preprocessor stringification operator. (Used by symcat.h.)
AC_C_STRINGIZE
# Use <inttypes.h> only if it exists,
diff --git a/gcc/cpplex.c b/gcc/cpplex.c
index d1b9076..efc0aa5 100644
--- a/gcc/cpplex.c
+++ b/gcc/cpplex.c
@@ -38,7 +38,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "system.h"
#include "cpplib.h"
#include "cpphash.h"
-#include "symcat.h"
/* Tokens with SPELL_STRING store their spelling in the token list,
and it's length in the token->val.name.len. */
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 00fb148..5a523e0 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -26,7 +26,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "cpphash.h"
#include "intl.h"
#include "obstack.h"
-#include "symcat.h"
/* Chained list of answers to an assertion. */
struct answer
diff --git a/gcc/gansidecl.h b/gcc/gansidecl.h
index c64cee5..57d71a6 100644
--- a/gcc/gansidecl.h
+++ b/gcc/gansidecl.h
@@ -43,11 +43,6 @@ Boston, MA 02111-1307, USA. */
# ifndef HAVE_LONG_DOUBLE
# define HAVE_LONG_DOUBLE 1
# endif
-/* Assume that (non-traditional) gcc used in stage2 or later has the
- stringize feature. */
-# if !defined (HAVE_STRINGIZE) && __STDC__
-# define HAVE_STRINGIZE 1
-# endif /* ! HAVE_STRINGIZE && __STDC__ */
#endif /* GCC >= 2.7 */
#ifndef NULL_PTR
diff --git a/gcc/gencheck.c b/gcc/gencheck.c
index df6238b..bfd8c36 100644
--- a/gcc/gencheck.c
+++ b/gcc/gencheck.c
@@ -21,7 +21,7 @@ Boston, MA 02111-1307, USA. */
#include "hconfig.h"
#include "system.h"
-#define DEFTREECODE(SYM, NAME, TYPE, LEN) STRINGIFY(SYM),
+#define DEFTREECODE(SYM, NAME, TYPE, LEN) STRINGX(SYM),
const char *tree_codes[] = {
#include "tree.def"
diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c
index b04d081..d656b4a 100644
--- a/gcc/gengenrtl.c
+++ b/gcc/gengenrtl.c
@@ -98,7 +98,7 @@ struct rtx_definition
const char *enumname, *name, *format;
};
-#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { STRINGIFY(ENUM), NAME, FORMAT },
+#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { STRINGX(ENUM), NAME, FORMAT },
struct rtx_definition defs[] =
{
diff --git a/gcc/protoize.c b/gcc/protoize.c
index aa03edf..08ec752 100644
--- a/gcc/protoize.c
+++ b/gcc/protoize.c
@@ -278,7 +278,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 = STRINGIFY (va_alist);
+static const char *varargs_style_indicator = STRINGX (va_alist);
#endif /* !defined (UNPROTOIZE) */
/* The following two types are used to create hash tables. In this program,
diff --git a/gcc/system.h b/gcc/system.h
index da9046a..516ad5c 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -355,21 +355,6 @@ extern void abort PARAMS ((void));
#endif
-
-/* Define a STRINGIFY macro that's right for ANSI or traditional C.
- Note: if the argument passed to STRINGIFY is itself a macro, eg
- #define foo bar, STRINGIFY(foo) will produce "foo", not "bar".
- Although the __STDC__ case could be made to expand this via a layer
- of indirection, the traditional C case can not do so. Therefore
- this behavior is not supported. */
-#ifndef STRINGIFY
-# ifdef HAVE_STRINGIZE
-# define STRINGIFY(STRING) #STRING
-# else
-# define STRINGIFY(STRING) "STRING"
-# endif
-#endif /* ! STRINGIFY */
-
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
@@ -481,6 +466,7 @@ extern void abort PARAMS ((void));
/* Get libiberty declarations. */
#include "libiberty.h"
+#include "symcat.h"
/* Provide a default for the HOST_BIT_BUCKET.
This suffices for POSIX-like hosts. */