From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id CA0B73857C6B; Thu, 16 Sep 2021 09:57:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA0B73857C6B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/casm-refactoring-v1)] Do not hide asm_out_file in ASM_OUTPUT_ASCII. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/casm-refactoring-v1 X-Git-Oldrev: b73acf0479217f5ed1b49db7d1cb0512038132ea X-Git-Newrev: 4c6e796f3f66f6651b22934dad0e4cf97e93b799 Message-Id: <20210916095755.CA0B73857C6B@sourceware.org> Date: Thu, 16 Sep 2021 09:57:55 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2021 09:57:55 -0000 https://gcc.gnu.org/g:4c6e796f3f66f6651b22934dad0e4cf97e93b799 commit 4c6e796f3f66f6651b22934dad0e4cf97e93b799 Author: Martin Liska Date: Wed Sep 15 13:52:35 2021 +0200 Do not hide asm_out_file in ASM_OUTPUT_ASCII. Diff: --- gcc/defaults.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gcc/defaults.h b/gcc/defaults.h index ba79a8e48ed..9370fa12f96 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -61,36 +61,34 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #ifndef ASM_OUTPUT_ASCII #define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \ do { \ - FILE *_hide_asm_out_file = (MYFILE); \ const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \ int _hide_thissize = (MYLENGTH); \ { \ - FILE *asm_out_file = _hide_asm_out_file; \ const unsigned char *p = _hide_p; \ int thissize = _hide_thissize; \ int i; \ - fprintf (asm_out_file, "\t.ascii \""); \ + fprintf (MYFILE, "\t.ascii \""); \ \ for (i = 0; i < thissize; i++) \ { \ int c = p[i]; \ if (c == '\"' || c == '\\') \ - putc ('\\', asm_out_file); \ + putc ('\\', MYFILE); \ if (ISPRINT (c)) \ - putc (c, asm_out_file); \ + putc (c, MYFILE); \ else \ { \ - fprintf (asm_out_file, "\\%o", c); \ + fprintf (MYFILE, "\\%o", c); \ /* After an octal-escape, if a digit follows, \ terminate one string constant and start another. \ The VAX assembler fails to stop reading the escape \ after three digits, so this is the only way we \ can get it to parse the data properly. */ \ if (i < thissize - 1 && ISDIGIT (p[i + 1])) \ - fprintf (asm_out_file, "\"\n\t.ascii \""); \ + fprintf (MYFILE, "\"\n\t.ascii \""); \ } \ } \ - fprintf (asm_out_file, "\"\n"); \ + fprintf (MYFILE, "\"\n"); \ } \ } \ while (0)