PR gas/11507
[deliverable/binutils-gdb.git] / gas / macro.c
index b5c1824d2f0d816443f6219d19036428cce3e345..97f341473d6c5e96314f769a255f5d125be98f7e 100644 (file)
@@ -868,7 +868,9 @@ macro_expand_body (sb *in, sb *out, formal_entry *formals,
          if (! macro
              || src + 5 >= in->len
              || strncasecmp (in->ptr + src, "LOCAL", 5) != 0
-             || ! ISWHITE (in->ptr[src + 5]))
+             || ! ISWHITE (in->ptr[src + 5])
+             /* PR 11507: Skip keyword LOCAL if it is found inside a quoted string.  */
+             || inquote)
            {
              sb_reset (&t);
              src = sub_actual (src, in, &t, formal_hash,
This page took 0.022931 seconds and 4 git commands to generate.