diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1997-01-03 08:19:34 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1997-01-03 08:19:34 -0500 |
commit | d8bfa78c42e84d9c2cce3153a588166b690053ef (patch) | |
tree | e67de6222d352af0c69de74db967ee4387e4e77d /gcc/cpplib.c | |
parent | a7ad699e3d7d831cc16bda7cbce61e74a93b3cfc (diff) | |
download | gcc-d8bfa78c42e84d9c2cce3153a588166b690053ef.zip gcc-d8bfa78c42e84d9c2cce3153a588166b690053ef.tar.gz gcc-d8bfa78c42e84d9c2cce3153a588166b690053ef.tar.bz2 |
(macroexpand): Delete any no-reexpansion marker that follows an identifier at...
(macroexpand): Delete any no-reexpansion marker that follows an
identifier at the beginning of an argument that is concatenated with
what precedes it.
From-SVN: r13356
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 07c44e2..7bc5c8c 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1,7 +1,7 @@ /* CPP Library. - Copyright (C) 1986, 87, 89, 92-5, 1996 Free Software Foundation, Inc. + Copyright (C) 1986, 87, 89, 92-6, 1997 Free Software Foundation, Inc. Written by Per Bothner, 1994-95. - Based on CCCP program by by Paul Rubin, June 1986 + Based on CCCP program by Paul Rubin, June 1986 Adapted to ANSI C, Richard Stallman, Jan 1987 This program is free software; you can redistribute it and/or modify it @@ -2892,6 +2892,11 @@ macroexpand (pfile, hp) while (p1 != l1 && is_space[*p1]) p1++; while (p1 != l1 && is_idchar[*p1]) xbuf[totlen++] = *p1++; + /* Delete any no-reexpansion marker that follows + an identifier at the beginning of the argument + if the argument is concatenated with what precedes it. */ + if (p1[0] == '@' && p1[1] == '-') + p1 += 2; } if (ap->raw_after) { |