From 382522cb0336edecbfa2ee6445cd43407ebc6776 Mon Sep 17 00:00:00 2001 From: Maxim Kuznetsov Date: Mon, 6 May 2013 19:35:44 +0000 Subject: Support {, } and | in assembly output gcc/ 2013-05-06 Maxim Kuznetsov * final.c (do_assembler_dialects): Don't handle curly braces and vertical bar escaped by % as dialect delimiters. (output_asm_insn): Print curly braces and vertical bar if escaped by % and ASSEMBLER_DIALECT defined. * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes. * doc/tm.texi: Regenerated. gcc/testsuite/ 2013-05-06 Maxim Kuznetsov * gcc.target/i386/asm-dialect-2.c: New testcase. From-SVN: r198641 --- gcc/doc/tm.texi.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/doc/tm.texi.in') diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index a418733..611d681 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -8602,7 +8602,9 @@ first argument of @code{asm_fprintf}. This construct outputs @code{ASSEMBLER_DIALECT} is zero, one, two, etc. Any special characters within these strings retain their usual meaning. If there are fewer alternatives within the braces than the value of -@code{ASSEMBLER_DIALECT}, the construct outputs nothing. +@code{ASSEMBLER_DIALECT}, the construct outputs nothing. If it's needed +to print curly braces or @samp{|} character in assembler output directly, +@samp{%@{}, @samp{%@}} and @samp{%|} can be used. If you do not define this macro, the characters @samp{@{}, @samp{|} and @samp{@}} do not have any special meaning when used in templates or -- cgit v1.1