diff mbox

[1/2,c-family] : Add 'z' to asm_fprintf_char_table

Message ID CAFULd4bHZUL_vKikga3EL9PjHPXGa2XQ0hdK=vfB7xnPvtYnLQ@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 26, 2017, 12:18 p.m. UTC
Hello!

This patch is the prerequisite for my next patch. It enables %z
extension for asm_fprintf that will emit 'q' or 'l' suffixes for
instructions with word-sized operands.

2017-07-26  Uros Bizjak  <ubizjak@gmail.com>

    * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

OK for mainline?

Uros.

Comments

Uros Bizjak July 30, 2017, 9:23 a.m. UTC | #1
On Wed, Jul 26, 2017 at 2:18 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
> This patch is the prerequisite for my next patch. It enables %z
> extension for asm_fprintf that will emit 'q' or 'l' suffixes for
> instructions with word-sized operands.
>
> 2017-07-26  Uros Bizjak  <ubizjak@gmail.com>
>
>     * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
>
> Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.
>
> OK for mainline?

I went ahead and committed the patch.

Uros.
diff mbox

Patch

Index: c-format.c
===================================================================
--- c-format.c	(revision 250563)
+++ c-format.c	(working copy)
@@ -672,6 +672,7 @@  static const format_char_info asm_fprintf_char_tab
   { "L",   0, STD_C89, NOARGUMENTS, "",      "",   NULL },
   { "U",   0, STD_C89, NOARGUMENTS, "",      "",   NULL },
   { "r",   0, STD_C89, { T89_I,   BADLEN,  BADLEN,  BADLEN,  BADLEN,  BADLEN,  BADLEN,  BADLEN,  BADLEN,  BADLEN,  BADLEN,  BADLEN  }, "",  "", NULL },
+  { "z",   0, STD_C89, NOARGUMENTS, "",      "",   NULL },
   { "@",   0, STD_C89, NOARGUMENTS, "",      "",   NULL },
   { NULL,  0, STD_C89, NOLENGTHS, NULL, NULL, NULL }
 };