aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.c
diff options
context:
space:
mode:
authorJason Merrill <jason@casey.cygnus.com>2000-03-07 08:34:34 +0000
committerJason Merrill <jason@gcc.gnu.org>2000-03-07 03:34:34 -0500
commit7d26bd169890754f5228df0f7f5beb104c4f0081 (patch)
treebef4420b975640f563780401dc3cc768ec639a60 /gcc/cpphash.c
parent5816f88b4b4cc536bb23d981d55ca32e16eb3400 (diff)
downloadgcc-7d26bd169890754f5228df0f7f5beb104c4f0081.zip
gcc-7d26bd169890754f5228df0f7f5beb104c4f0081.tar.gz
gcc-7d26bd169890754f5228df0f7f5beb104c4f0081.tar.bz2
cpphash.c (collect_expansion): Also catch ## at start of macro.
* cpphash.c (collect_expansion): Also catch ## at start of macro. * varasm.c (make_decl_rtl): Don't add a number to members of local classes. (make_function_rtl): Likewise. From-SVN: r32378
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r--gcc/cpphash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c
index bb772eb..bcb5538 100644
--- a/gcc/cpphash.c
+++ b/gcc/cpphash.c
@@ -346,6 +346,8 @@ collect_expansion (pfile, arglist)
else if (last_token == PASTE)
/* ## ## - the second ## is ordinary. */
goto norm;
+ else if (last_token == START)
+ cpp_error (pfile, "`##' at start of macro definition");
/* Discard the token and any hspace before it. */
while (is_hspace (pfile->token_buffer[here-1]))