diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-04-04 21:07:17 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-04-04 21:07:17 +0000 |
commit | 7c32404c2db25e8197b4833cec5f06d65b046149 (patch) | |
tree | 625784c48deb575a441aab128604d148c7640563 /gcc | |
parent | c2e407f12ccaa5d73b07e602b1d9dc3b57efcf9f (diff) | |
download | gcc-7c32404c2db25e8197b4833cec5f06d65b046149.zip gcc-7c32404c2db25e8197b4833cec5f06d65b046149.tar.gz gcc-7c32404c2db25e8197b4833cec5f06d65b046149.tar.bz2 |
cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
From-SVN: r32910
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cpplib.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aae5c5a..31da5bb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace. + Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz> * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE, diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 2c24de8..f097f72 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -122,7 +122,8 @@ SCCS_ENTRY instead of void, because some old compilers have trouble with pointers to functions returning void. */ -#define D(name, t, o) static int CONCAT2(do_, name) PARAMS ((cpp_reader *)); +/* Don't invoke CONCAT2 with any whitespace or K&R cc will fail. */ +#define D(name, t, o) static int CONCAT2(do_,name) PARAMS ((cpp_reader *)); DIRECTIVE_TABLE #undef D @@ -134,8 +135,9 @@ enum }; #undef D +/* Don't invoke CONCAT2 with any whitespace or K&R cc will fail. */ #define D(name, t, origin) \ -{ CONCAT2(do_, name), STRINGX(name), sizeof STRINGX(name) - 1, origin }, +{ CONCAT2(do_,name), STRINGX(name), sizeof STRINGX(name) - 1, origin }, static const struct directive dtable[] = { DIRECTIVE_TABLE |