diff options
author | ray <ray@FreeBSD.org> | 2013-12-05 00:57:53 +0000 |
---|---|---|
committer | ray <ray@FreeBSD.org> | 2013-12-05 00:57:53 +0000 |
commit | 1af064917e022f18acbf9fc2942cd40f1b26fbe5 (patch) | |
tree | ef10954b063bcd6939eabdcc7ecba95432634f70 /contrib/gcclibs/libcpp/directives.c | |
parent | 40d47a9dd8116c90080a010ab3483d8917bd0524 (diff) | |
parent | 6e411c7e1916ef76b0aa51ded38fa235d3313371 (diff) | |
download | FreeBSD-src-1af064917e022f18acbf9fc2942cd40f1b26fbe5.zip FreeBSD-src-1af064917e022f18acbf9fc2942cd40f1b26fbe5.tar.gz |
MFC @r258947.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'contrib/gcclibs/libcpp/directives.c')
-rw-r--r-- | contrib/gcclibs/libcpp/directives.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/gcclibs/libcpp/directives.c b/contrib/gcclibs/libcpp/directives.c index 7fb142e..7011842 100644 --- a/contrib/gcclibs/libcpp/directives.c +++ b/contrib/gcclibs/libcpp/directives.c @@ -423,8 +423,13 @@ _cpp_handle_directive (cpp_reader *pfile, int indented) does not cause '#define foo bar' to get executed when compiled with -save-temps, we recognize directives in -fpreprocessed mode only if the # is in column 1. macro.c - puts a space in front of any '#' at the start of a macro. */ + puts a space in front of any '#' at the start of a macro. + + We exclude the -fdirectives-only case because macro expansion + has not been performed yet, and block comments can cause spaces + to preceed the directive. */ if (CPP_OPTION (pfile, preprocessed) + && !CPP_OPTION (pfile, directives_only) && (indented || !(dir->flags & IN_I))) { skip = 0; |