aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index fe78993bc4d..24b522d0b4f 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -897,7 +897,7 @@ replace_args (pfile, node, macro, args)
count = arg->expanded_count, from = arg->expanded;
/* Padding on the left of an argument (unless RHS of ##). */
- if (!pfile->state.in_directive
+ if ((!pfile->state.in_directive || pfile->state.directive_wants_padding)
&& src != macro->exp.tokens && !(src[-1].flags & PASTE_LEFT))
*dest++ = padding_token (pfile, src);