aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-06-16 19:14:22 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-06-16 19:14:22 +0000
commit9a23858679e48d0b7568e25ebd2a5c92ed250b31 (patch)
tree03f4154c601d605201e4a3d1cc5920b07d982fde /gcc/cpplib.c
parent786a48dd970b9fb5825bd092278989b0cecacbc7 (diff)
downloadgcc-9a23858679e48d0b7568e25ebd2a5c92ed250b31.zip
gcc-9a23858679e48d0b7568e25ebd2a5c92ed250b31.tar.gz
gcc-9a23858679e48d0b7568e25ebd2a5c92ed250b31.tar.bz2
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
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index bd69642..a729a22 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -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